Fox checklist entry dispaly
Some checks failed
/ Run tests (push) Failing after 16s
/ Run system tests (push) Failing after 15s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-10-26 02:24:27 +02:00
parent f1e1e3766a
commit c52845e988
3 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@
</div>
<div class="d-inline-flex flex-grow-1">
<%# checklist_entry.position %>
<%= link_to(checklist_entry.check.name, checklist_entry.check, data: { turbo_frame: "_top" }, class: "flex-grow-1") %>
<%= link_to([checklist_entry.position, checklist_entry.check.number, checklist_entry.check.name_de].join(" "), checklist_entry.check, data: { turbo_frame: "_top" }, class: "flex-grow-1") %>
<%= button_to tag.i(class: "bi bi-trash"), checklist_entry_path(checklist_entry), method: :delete, class: "btn btn-link" %>
<%= link_to tag.i(class: "bi bi-pencil"), edit_checklist_entry_path(checklist_entry), class: "btn btn-link" %>
</div>

View file

@ -2,6 +2,6 @@
<%= link_to "Abbrechen", checklist_entry.persisted? ? checklist_entry : checklist_entry.checklist, class: "btn btn-outline-secondary float-end", data: { turbo_frame: "checklist_entries" } %>
<%= form.submit class: "btn btn-secondary float-end me-2" %>
<%= form.hidden_field :checklist_id %>
<%= form.collection_select :check_id, Check.all.order(:name), :id, :name %>
<%= form.collection_select :check_id, Check.all.order(:name_de), :id, :name_de %>
<%# form.number_field :position %>
<% end %>

View file

@ -82,8 +82,8 @@ de-CH:
one: Check
other: Checks
checklist_entry:
one: Check
other: Checks
one: Zuweisung
other: Zuweisungen
checklist:
one: Checkliste
other: Checklisten