Fox checklist entry dispaly
This commit is contained in:
parent
f1e1e3766a
commit
c52845e988
3 changed files with 4 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 %>
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue