More layout adjustments and more dry refactor
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user