Files
vault171/app/views/rooms/edit.html.erb
David Böhm 2931314cd1
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled
More layout adjustments and more dry refactor
2026-05-30 03:02:31 +02:00

22 lines
1.0 KiB
Plaintext

<% content_for :title, "Raum bearbeiten: #{@room.name}" %>
<% content_for :top_bar_actions do %>
<%= link_to rooms_path, class: "py-2 px-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 flex items-center gap-1.5 shadow-sm transition" do %>
<svg class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M10.5 19.5L3 12m0 0l7.5-7.5M3 12h18" /></svg>
<div class="hidden md:inline">
Zurück zur Übersicht
</div>
<% end %>
<% end %>
<div class="space-y-6 p-4 md:p-6">
<%= render "form", room: @room %>
<%= render "layouts/danger_zone",
title: "Raum löschen",
description: "In diesem Raum gelistete Artikel verlieren ihren Standort und werden automatisch ins Hauptlager umgebucht.",
button_text: "Raum löschen",
confirm_message: "Möchtest du diesen Standort wirklich löschen?",
path: room_path(@room) %>
</div>