Cosmetics

This commit is contained in:
david 2024-10-25 19:25:01 +02:00
parent 2420eb85ee
commit 5c65196eac
4 changed files with 9 additions and 8 deletions

View file

@ -93,6 +93,7 @@ class ChecksController < ApplicationController
:applicable_to_app, :applicable_to_app,
:applicable_to_web, :applicable_to_web,
:external_number, :external_number,
:external_url,
:conformity_level, :conformity_level,
:conformity_notice_de, :conformity_notice_de,
:conformity_notice_en, :conformity_notice_en,

View file

@ -49,15 +49,15 @@ div id=dom_id(check)
tr tr
th = Check.human_attribute_name(:criterion_de) th = Check.human_attribute_name(:criterion_de)
td = check.criterion_de td = check.criterion_de
tr
th = Check.human_attribute_name(:exemption_details_de)
td = check.exemption_details_de
tr tr
th = Check.human_attribute_name(:criterion_details_de) th = Check.human_attribute_name(:criterion_details_de)
td = check.criterion_details_de td = check.criterion_details_de
tr tr
th = Check.human_attribute_name(:example_de) th = Check.human_attribute_name(:example_de)
td = check.example_de td = check.example_de
tr
th = Check.human_attribute_name(:exemption_details_de)
td = check.exemption_details_de
tr tr
th = Check.human_attribute_name(:test_instructions) th = Check.human_attribute_name(:test_instructions)
td = check.test_instructions td = check.test_instructions

View file

@ -6,7 +6,7 @@
= form.collection_radio_buttons(:principle_id, Principle.all.sort_by(&:t_name), :id, :t_name) { |b| b.label(class: "col-md-2") { b.radio_button + b.text } } = form.collection_radio_buttons(:principle_id, Principle.all.sort_by(&:t_name), :id, :t_name) { |b| b.label(class: "col-md-2") { b.radio_button + b.text } }
= form.collection_check_boxes :standard_ids, Standard.all.sort_by{ _1.t_name.downcase }, :id, :t_name, include_blank: true = form.collection_check_boxes :standard_ids, Standard.all.sort_by{ _1.t_name.downcase }, :id, :t_name, include_blank: true
h2 Zugänglichkeit h2 Einschränkung/Zugänglichkeit
.row .row
- %w[visual auditory physical cognitive].sort_by { |d| t("disability.#{d}") }.each do |d| - %w[visual auditory physical cognitive].sort_by { |d| t("disability.#{d}") }.each do |d|
.col-md-3 .col-md-3
@ -32,9 +32,9 @@
h2 Regular-Kriterium h2 Regular-Kriterium
= multilang_form_field(form, :criterion, as: :rich_text_area) = multilang_form_field(form, :criterion, as: :rich_text_area)
= multilang_form_field(form, :exemption_details, as: :rich_text_area)
= multilang_form_field(form, :criterion_details, as: :rich_text_area) = multilang_form_field(form, :criterion_details, as: :rich_text_area)
= multilang_form_field(form, :example, as: :rich_text_area) = multilang_form_field(form, :example, as: :rich_text_area)
= multilang_form_field(form, :exemption_details, as: :rich_text_area)
h2 Intern h2 Intern
= form.rich_text_area :test_instructions = form.rich_text_area :test_instructions

View file

@ -43,7 +43,7 @@ de-CH:
powerpoint_text_de: Powerpoint Text (de) powerpoint_text_de: Powerpoint Text (de)
powerpoint_text_en: Powerpoint Text (eng) powerpoint_text_en: Powerpoint Text (eng)
comment: Kommentar comment: Kommentar
target_disability: Zugänglichkeit target_disabilities: Einschränkung/Zugänglichkeit
applicability: Anwendbarkeit applicability: Anwendbarkeit
external_url: WCAG Link external_url: WCAG Link
checklist: checklist:
@ -103,5 +103,5 @@ de-CH:
one: Element one: Element
other: Elemente other: Elemente
principle: principle:
one: Prinzip one: Prinzip (WCAG)
other: Prinzipien other: Prinzipien (WCAG)