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 {
|
/* trix-editor.trix-content {
|
||||||
min-height: 350px;
|
min-height: 350px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
|
||||||
|
|
@ -99,4 +99,8 @@ class Check < ApplicationRecord
|
||||||
def display_applicabilities
|
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(", ")
|
%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
|
end
|
||||||
|
|
||||||
|
def display_label
|
||||||
|
"#{name_de} (#{[number, external_number].compact_blank.join("/")})"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="d-inline-flex flex-grow-1">
|
<div class="d-inline-flex flex-grow-1">
|
||||||
<%# checklist_entry.position %>
|
<%# 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" %>
|
<%= 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" %>
|
<%= link_to tag.i(class: "bi bi-pencil"), edit_checklist_entry_path(checklist_entry), class: "btn btn-link" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<%= render entry %>
|
<%= render entry %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= tag.i "Es sind (noch) keine Checks definiert." if @checklist.empty? %>
|
<%= tag.i "Es sind keine Checks zugewiesen." if @checklist.empty? %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -43,37 +43,27 @@ h1
|
||||||
table.table.table-striped
|
table.table.table-striped
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
th ID
|
|
||||||
th
|
|
||||||
= Check.human_attribute_name(:number)
|
|
||||||
th
|
th
|
||||||
= Check.human_attribute_name(:name)
|
= Check.human_attribute_name(:name)
|
||||||
th
|
th
|
||||||
= Check.human_attribute_name(:standard_ids)
|
= Check.human_attribute_name(:standard_ids)
|
||||||
th
|
th
|
||||||
= Check.human_attribute_name(:target_disability)
|
= Check.human_attribute_name(:target_disabilities)
|
||||||
th
|
th
|
||||||
= Check.human_attribute_name(:applicability)
|
= Check.human_attribute_name(:applicability)
|
||||||
th
|
|
||||||
= Check.human_attribute_name(:external_number)
|
|
||||||
th
|
th
|
||||||
= Check.human_attribute_name(:conformity_level)
|
= Check.human_attribute_name(:conformity_level)
|
||||||
tbody
|
tbody
|
||||||
- @checks.each do |check|
|
- @checks.each do |check|
|
||||||
tr
|
tr
|
||||||
td = link_to check.id, check
|
|
||||||
td
|
td
|
||||||
= link_to(check.number, check)
|
= link_to check.display_label&.truncate(64), check
|
||||||
td
|
|
||||||
= link_to check.t_name&.truncate(64), check
|
|
||||||
td
|
td
|
||||||
= link_to check.standards.map(&:t_name).join(", "), check
|
= link_to check.standards.map(&:t_name).join(", "), check
|
||||||
td
|
td
|
||||||
= link_to check.display_target_disabilities, check
|
= link_to check.display_target_disabilities, check
|
||||||
td
|
td
|
||||||
= link_to check.display_applicabilities, check
|
= link_to check.display_applicabilities, check
|
||||||
td
|
|
||||||
= link_to check.external_number, check
|
|
||||||
td
|
td
|
||||||
= safe_display(check.conformity_level) { link_to _1, check }
|
= safe_display(check.conformity_level) { link_to _1, check }
|
||||||
.my-3
|
.my-3
|
||||||
|
|
|
||||||
|
|
@ -16,32 +16,32 @@ de-CH:
|
||||||
external_number: WCAG Nummer
|
external_number: WCAG Nummer
|
||||||
conformity_level: Konformitätsstufe
|
conformity_level: Konformitätsstufe
|
||||||
position: Position
|
position: Position
|
||||||
conformity_notice_de: Anmerkungen zur Konformität (de)
|
conformity_notice_de: Anmerkungen zur Konformität
|
||||||
conformity_notice_en: Anmerkungen zur Konformität (eng)
|
conformity_notice_en: Anmerkungen zur Konformität
|
||||||
standard_ids: Standards
|
standard_ids: Standards
|
||||||
name_de: Name (de)
|
name_de: Name
|
||||||
name_en: Name (eng)
|
name_en: Name
|
||||||
principle_id: Prinzip
|
principle_id: Prinzip
|
||||||
priority: Priorität
|
priority: Priorität
|
||||||
quick_criterion_de: Quick Kriterium (de)
|
quick_criterion_de: Quick Kriterium
|
||||||
quick_criterion_en: Quick Kriterium (eng)
|
quick_criterion_en: Quick Kriterium
|
||||||
quick_fix_de: Quick Fix (de)
|
quick_fix_de: Quick Fix
|
||||||
quick_fix_en: Quick Fix (eng)
|
quick_fix_en: Quick Fix
|
||||||
quick_fail_de: Quick Fail (de)
|
quick_fail_de: Quick Fail
|
||||||
quick_fail_en: Quick Fail (eng)
|
quick_fail_en: Quick Fail
|
||||||
criterion_de: Kriterium/Grundlage (de)
|
criterion_de: Kriterium/Grundlage
|
||||||
criterion_en: Kriterium/Grundlage (eng)
|
criterion_en: Kriterium/Grundlage
|
||||||
criterion_details_de: Verstehen (de)
|
criterion_details_de: Verstehen
|
||||||
criterion_details_en: Verstehen (eng)
|
criterion_details_en: Verstehen
|
||||||
example_de: Beispiel (de)
|
example_de: Beispiel
|
||||||
example_en: Beispiel (eng)
|
example_en: Beispiel
|
||||||
exemption_details_de: Ausnahme (de)
|
exemption_details_de: Ausnahme
|
||||||
exemption_details_en: Ausnahme (eng)
|
exemption_details_en: Ausnahme
|
||||||
standard_text_de: WCAG-Text (de)
|
standard_text_de: WCAG-Text
|
||||||
standard_text_en: WCAG-Text (eng)
|
standard_text_en: WCAG-Text
|
||||||
test_instructions: Testanleitung
|
test_instructions: Testanleitung
|
||||||
powerpoint_text_de: Powerpoint Text (de)
|
powerpoint_text_de: Powerpoint Text
|
||||||
powerpoint_text_en: Powerpoint Text (eng)
|
powerpoint_text_en: Powerpoint Text
|
||||||
comment: Kommentar
|
comment: Kommentar
|
||||||
target_disabilities: Einschränkung/Zugänglichkeit
|
target_disabilities: Einschränkung/Zugänglichkeit
|
||||||
applicability: Anwendbarkeit
|
applicability: Anwendbarkeit
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue