cosmetics
This commit is contained in:
parent
bd22ad2852
commit
2d95db5d52
6 changed files with 56 additions and 36 deletions
|
|
@ -110,6 +110,32 @@ $enable-rounded: false;
|
|||
|
||||
}
|
||||
|
||||
trix-toolbar .trix-dialog {
|
||||
background: var(--bs-secondary-bg) !important;
|
||||
background-color: var(--bs-secondary-bg) !important;
|
||||
color: var(--bs-secondary-color) !important;
|
||||
border: var(--bs-border-width) solid var(--bs-border-color) !important;
|
||||
border-radius: 0 !important;
|
||||
box-shadow: none;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
trix-toolbar .trix-button {
|
||||
background: var(--bs-secondary-bg) !important;
|
||||
background-color: var(--bs-secondary-bg) !important;
|
||||
color: var(--bs-secondary-color) !important;
|
||||
border: var(--bs-border-width) solid var(--bs-border-color) !important;
|
||||
border-radius: 0 !important;
|
||||
|
||||
}
|
||||
|
||||
trix-toolbar .trix-input--dialog {
|
||||
background: var(--bs-secondary-bg) !important;
|
||||
background-color: var(--bs-secondary-bg) !important;
|
||||
color: var(--bs-secondary-color) !important;
|
||||
border: var(--bs-border-width) solid var(--bs-border-color) !important;
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
/* trix-editor.trix-content {
|
||||
min-height: 350px;
|
||||
overflow-y: auto;
|
||||
|
|
|
|||
|
|
@ -99,4 +99,8 @@ class Check < ApplicationRecord
|
|||
def display_applicabilities
|
||||
%i[applicable_to_analogue applicable_to_app applicable_to_document applicable_to_non_web applicable_to_web].select { |a| send(:"#{a}?") }.map { |a| I18n.t("applicability.#{a}") }.join(", ")
|
||||
end
|
||||
|
||||
def display_label
|
||||
"#{name_de} (#{[number, external_number].compact_blank.join("/")})"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -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