2024-07-16 20:22:59 +02:00
|
|
|
<h1><%= t("scaffold.pagetitle_edit", model: Checklist.model_name.human) %></h1>
|
|
|
|
|
|
2024-07-19 02:29:18 +02:00
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col">
|
|
|
|
|
<%= render "form", checklist: @checklist %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col">
|
|
|
|
|
<h2>Checks</h2>
|
|
|
|
|
<div class="mb-2">
|
|
|
|
|
<%= turbo_frame_tag "new_checklist_entry" do %>
|
|
|
|
|
<%= link_to tag.i(class: "bi bi-plus"), new_checklist_entry_path(checklist_id: @checklist.id), class: "btn btn-primary", data: { turbo_frame: "new_checklist_entry"} %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% @checklist.checklist_entries.each do |entry| %>
|
|
|
|
|
<%= turbo_frame_tag dom_id(entry, :frame) do %>
|
|
|
|
|
<%= render entry %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-07-16 20:22:59 +02:00
|
|
|
|
|
|
|
|
<div class="action-row">
|
|
|
|
|
<%= link_to t("scaffold.link_show", model: Checklist.model_name.human), @checklist %>
|
|
|
|
|
<%= link_to t("scaffold.link_index", model: Checklist.model_name.human(count: 2)), checklists_path %>
|
|
|
|
|
</div>
|