Add Anmerkungen field
This commit is contained in:
parent
fc71cd4a09
commit
22c6594af1
5 changed files with 8 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue