Use shared form partial for admin/rules views (#30067)
This commit is contained in:
parent
a9816f051d
commit
e336466894
3 changed files with 13 additions and 14 deletions
|
|
@ -6,17 +6,13 @@
|
|||
%hr.spacer/
|
||||
|
||||
- if can? :create, :rule
|
||||
= simple_form_for @rule, url: admin_rules_path do |f|
|
||||
= simple_form_for @rule, url: admin_rules_path do |form|
|
||||
= render 'shared/error_messages', object: @rule
|
||||
|
||||
.fields-group
|
||||
= f.input :text, wrapper: :with_block_label
|
||||
|
||||
.fields-group
|
||||
= f.input :hint, wrapper: :with_block_label
|
||||
= render form
|
||||
|
||||
.actions
|
||||
= f.button :button, t('admin.rules.add_new'), type: :submit
|
||||
= form.button :button, t('admin.rules.add_new'), type: :submit
|
||||
|
||||
%hr.spacer/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue