cosmetics
This commit is contained in:
parent
bd22ad2852
commit
2d95db5d52
6 changed files with 56 additions and 36 deletions
|
|
@ -9,7 +9,7 @@
|
|||
</div>
|
||||
<div class="d-inline-flex flex-grow-1">
|
||||
<%# checklist_entry.position %>
|
||||
<%= 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") %>
|
||||
<%= link_to([checklist_entry.position, checklist_entry.check.display_label].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>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<%= render entry %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%= tag.i "Es sind (noch) keine Checks definiert." if @checklist.empty? %>
|
||||
<%= tag.i "Es sind keine Checks zugewiesen." if @checklist.empty? %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -43,37 +43,27 @@ h1
|
|||
table.table.table-striped
|
||||
thead
|
||||
tr
|
||||
th ID
|
||||
th
|
||||
= Check.human_attribute_name(:number)
|
||||
th
|
||||
= Check.human_attribute_name(:name)
|
||||
th
|
||||
= Check.human_attribute_name(:standard_ids)
|
||||
th
|
||||
= Check.human_attribute_name(:target_disability)
|
||||
= Check.human_attribute_name(:target_disabilities)
|
||||
th
|
||||
= Check.human_attribute_name(:applicability)
|
||||
th
|
||||
= Check.human_attribute_name(:external_number)
|
||||
th
|
||||
= Check.human_attribute_name(:conformity_level)
|
||||
tbody
|
||||
- @checks.each do |check|
|
||||
tr
|
||||
td = link_to check.id, check
|
||||
td
|
||||
= link_to(check.number, check)
|
||||
td
|
||||
= link_to check.t_name&.truncate(64), check
|
||||
= link_to check.display_label&.truncate(64), check
|
||||
td
|
||||
= link_to check.standards.map(&:t_name).join(", "), check
|
||||
td
|
||||
= link_to check.display_target_disabilities, check
|
||||
td
|
||||
= link_to check.display_applicabilities, check
|
||||
td
|
||||
= link_to check.external_number, check
|
||||
td
|
||||
= safe_display(check.conformity_level) { link_to _1, check }
|
||||
.my-3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue