Add titles to warning presets in admin UI (#13252)
This commit is contained in:
parent
aeebbe90dc
commit
f556f79b77
56 changed files with 48 additions and 67 deletions
|
@ -21,7 +21,7 @@
|
|||
|
||||
- unless @warning_presets.empty?
|
||||
.fields-group
|
||||
= f.input :warning_preset_id, collection: @warning_presets, label_method: :text, wrapper: :with_block_label
|
||||
= f.input :warning_preset_id, collection: @warning_presets, label_method: ->(warning_preset) { [warning_preset.title.presence, truncate(warning_preset.text)].compact.join(' - ') }, wrapper: :with_block_label
|
||||
|
||||
.fields-group
|
||||
= f.input :text, as: :text, wrapper: :with_block_label, hint: t('simple_form.hints.admin_account_action.text_html', path: admin_warning_presets_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue