Added Category and User Passwort Change
This commit is contained in:
14
app/views/categories/edit.html.erb
Normal file
14
app/views/categories/edit.html.erb
Normal file
@@ -0,0 +1,14 @@
|
||||
<% content_for :title, "Kategorie bearbeiten" %>
|
||||
|
||||
<div class="p-4 md:p-6 space-y-6">
|
||||
<%= render "form", category: @category %>
|
||||
|
||||
<!-- Gefahrenbereich: Kategorie löschen (Nur wenn keine Items drin sind) -->
|
||||
<div class="max-w-2xl mx-auto bg-red-50/50 border border-red-200 rounded-xl p-6 flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4">
|
||||
<div>
|
||||
<h3 class="text-sm font-bold text-red-800">Kategorie löschen</h3>
|
||||
<p class="text-xs text-red-600 mt-0.5">Dies kann nicht rückgängig gemacht werden. Nur möglich, wenn die Kategorie komplett leer ist.</p>
|
||||
</div>
|
||||
<%= link_to "Löschen", @category, data: { turbo_method: :delete, turbo_confirm: "Möchtest du diese Kategorie wirklich unwiderruflich löschen?" }, class: "py-2 px-3 text-xs font-semibold text-white bg-red-600 hover:bg-red-700 rounded-lg shadow-sm transition" %>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user