Update Bootstrap to v4.1, fix chosen.js and pagedown on multiple sites
This commit is contained in:
@@ -9,8 +9,9 @@
|
||||
.form-group
|
||||
= f.label(:regex)
|
||||
= f.text_field(:regex, class: 'form-control', required: true)
|
||||
.help-block == t('error_templates.hints.signature')
|
||||
.form-group
|
||||
= f.check_box(:important)
|
||||
.help-block.form-text == t('error_templates.hints.signature')
|
||||
.form-check.form-group
|
||||
label.form-check-label
|
||||
= f.check_box(:important, class: 'form-check-input')
|
||||
= t('activerecord.attributes.error_template_attribute.important')
|
||||
.actions = render('shared/submit_button', f: f, object: @error_template_attribute)
|
||||
|
@@ -17,9 +17,10 @@ h1 = ErrorTemplateAttribute.model_name.human(count: 2)
|
||||
span class="fa fa-star" aria-hidden="true"
|
||||
- else
|
||||
span class="fa fa-star-o" aria-hidden="true"
|
||||
td = error_template_attribute.key
|
||||
td = link_to(error_template_attribute.key, error_template_attribute)
|
||||
td = error_template_attribute.description
|
||||
td = error_template_attribute.regex
|
||||
td
|
||||
code = error_template_attribute.regex
|
||||
td = link_to(t('shared.show'), error_template_attribute)
|
||||
td = link_to(t('shared.edit'), edit_error_template_attribute_path(error_template_attribute))
|
||||
td = link_to(t('shared.destroy'), error_template_attribute, data: {confirm: t('shared.confirm_destroy')}, method: :delete)
|
||||
|
@@ -2,7 +2,10 @@ h1
|
||||
= @error_template_attribute
|
||||
= render('shared/edit_button', object: @error_template_attribute)
|
||||
|
||||
- [:key, :description, :regex, :important].each do |attribute|
|
||||
- [:key, :description].each do |attribute|
|
||||
= row(label: "error_template_attribute.#{attribute}", value: @error_template_attribute.send(attribute))
|
||||
= row(label: "error_template_attribute.key") do
|
||||
code = @error_template_attribute.key
|
||||
= row(label: "error_template_attribute.important", value: @error_template_attribute.important)
|
||||
|
||||
// todo: used by
|
||||
|
Reference in New Issue
Block a user