diff --git a/app/controllers/checks_controller.rb b/app/controllers/checks_controller.rb index e5eb562..1a70bf5 100644 --- a/app/controllers/checks_controller.rb +++ b/app/controllers/checks_controller.rb @@ -113,6 +113,8 @@ class ChecksController < ApplicationController :criterion_details_en, :example_de, :example_en, + :annotation_de, + :annotation_en, :exemption_details_de, :exemption_details_en, :standard_text_de, diff --git a/app/models/check.rb b/app/models/check.rb index 8f0656a..815c08f 100644 --- a/app/models/check.rb +++ b/app/models/check.rb @@ -11,6 +11,7 @@ class Check < ApplicationRecord enum :conformity_level, %i[A AA AAA] enum :priority, %i[highest high normal low] + has_rich_text :annotation_de has_rich_text :conformity_notice_de has_rich_text :conformity_notice_en has_rich_text :quick_criterion_de diff --git a/app/views/checks/_check.html.slim b/app/views/checks/_check.html.slim index 815a8a4..b2ce6bb 100644 --- a/app/views/checks/_check.html.slim +++ b/app/views/checks/_check.html.slim @@ -58,6 +58,9 @@ div id=dom_id(check) tr th = Check.human_attribute_name(:example_de) td = check.example_de + tr + th = Check.human_attribute_name(:annotation_de) + td = check.annotation_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 b65f64f..f16d826 100644 --- a/app/views/checks/_form.html.slim +++ b/app/views/checks/_form.html.slim @@ -35,6 +35,7 @@ = 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, :annotation, 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 0abcc8c..1f23284 100644 --- a/config/locales/activerecord.yml +++ b/config/locales/activerecord.yml @@ -46,6 +46,7 @@ de-CH: target_disabilities: Einschränkung/Zugänglichkeit applicability: Anwendbarkeit external_url: WCAG Link + annotation_de: Anmerkungen checklist: id: ID name: Überschrift