More layout adjustments and more dry refactor
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

This commit is contained in:
2026-05-30 03:02:31 +02:00
parent d8c6a7ab82
commit 2931314cd1
10 changed files with 111 additions and 112 deletions

View File

@@ -1,15 +1,4 @@
<!-- <%# content_for :title, "New item" %>
<div class="md:w-2/3 w-full">
<h1 class="font-bold text-4xl">New item</h1>
<%#= render "form", item: @item %>
<%= link_to "Back to items", items_path, class: "w-full sm:w-auto text-center mt-2 sm:mt-0 sm:ml-2 rounded-md px-3.5 py-2.5 bg-gray-100 hover:bg-gray-50 inline-block font-medium" %>
</div>
-->
<% content_for :title, "Neuen Artikel hinzufügen" %>
<% content_for :title, "Artikel anlegen" %>
<!-- OBERE LEISTE (Zurück-Button in der Top-Bar via Layout-Yield) -->
<% content_for :top_bar_actions do %>
@@ -21,7 +10,6 @@
<% end %>
<div class="p-4 md:p-6">
<!-- Lädt das Formular-Partial und übergibt das leere Artikel-Objekt -->
<%= render "form", item: @item %>
</div>