diff --git a/app/controllers/checks_controller.rb b/app/controllers/checks_controller.rb index fce6a44..e9eaca6 100644 --- a/app/controllers/checks_controller.rb +++ b/app/controllers/checks_controller.rb @@ -93,6 +93,7 @@ class ChecksController < ApplicationController :applicable_to_app, :applicable_to_web, :external_number, + :external_url, :conformity_level, :conformity_notice_de, :conformity_notice_en, diff --git a/app/views/checks/_check.html.slim b/app/views/checks/_check.html.slim index 6669710..9690f1b 100644 --- a/app/views/checks/_check.html.slim +++ b/app/views/checks/_check.html.slim @@ -49,15 +49,15 @@ div id=dom_id(check) tr th = Check.human_attribute_name(:criterion_de) td = check.criterion_de + tr + th = Check.human_attribute_name(:exemption_details_de) + td = check.exemption_details_de tr th = Check.human_attribute_name(:criterion_details_de) td = check.criterion_details_de tr th = Check.human_attribute_name(:example_de) td = check.example_de - tr - th = Check.human_attribute_name(:exemption_details_de) - td = check.exemption_details_de tr th = Check.human_attribute_name(:test_instructions) td = check.test_instructions diff --git a/app/views/checks/_form.html.slim b/app/views/checks/_form.html.slim index 1a21ea2..785366b 100644 --- a/app/views/checks/_form.html.slim +++ b/app/views/checks/_form.html.slim @@ -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_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 - %w[visual auditory physical cognitive].sort_by { |d| t("disability.#{d}") }.each do |d| .col-md-3 @@ -32,9 +32,9 @@ h2 Regular-Kriterium = 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, :example, as: :rich_text_area) - = multilang_form_field(form, :exemption_details, as: :rich_text_area) h2 Intern = form.rich_text_area :test_instructions diff --git a/config/locales/activerecord.yml b/config/locales/activerecord.yml index ac4105b..487391e 100644 --- a/config/locales/activerecord.yml +++ b/config/locales/activerecord.yml @@ -43,7 +43,7 @@ de-CH: powerpoint_text_de: Powerpoint Text (de) powerpoint_text_en: Powerpoint Text (eng) comment: Kommentar - target_disability: Zugänglichkeit + target_disabilities: Einschränkung/Zugänglichkeit applicability: Anwendbarkeit external_url: WCAG Link checklist: @@ -103,5 +103,5 @@ de-CH: one: Element other: Elemente principle: - one: Prinzip - other: Prinzipien + one: Prinzip (WCAG) + other: Prinzipien (WCAG)