18 lines
771 B
Plaintext
18 lines
771 B
Plaintext
= form_for(@error_template_attribute) do |f|
|
|
= render('shared/form_errors', object: @error_template_attribute)
|
|
.mb-3
|
|
= f.label(:key, class: 'form-label')
|
|
= f.text_field(:key, class: 'form-control', required: true)
|
|
.mb-3
|
|
= f.label(:description, class: 'form-label')
|
|
= f.text_field(:description, class: 'form-control')
|
|
.mb-3
|
|
= f.label(:regex, class: 'form-label')
|
|
= f.text_field(:regex, class: 'form-control', required: true)
|
|
.help-block.form-text == t('error_templates.hints.signature')
|
|
.form-check.mb-3
|
|
label.form-check-label
|
|
= f.check_box(:important, class: 'form-check-input')
|
|
= ErrorTemplateAttribute.human_attribute_name('important')
|
|
.actions = render('shared/submit_button', f:, object: @error_template_attribute)
|