Add Anmerkungen field
Some checks failed
/ Run tests (push) Failing after 15s
/ Run system tests (push) Failing after 14s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-10-27 18:25:25 +01:00
parent fc71cd4a09
commit 22c6594af1
5 changed files with 8 additions and 0 deletions

View file

@ -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,

View file

@ -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

View file

@ -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

View file

@ -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