Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use shared form partial for
admin/rules
views (#30067)
- Loading branch information
1 parent
a9816f0
commit e336466
Showing
3 changed files
with
13 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.fields-group | ||
= form.input :text, | ||
wrapper: :with_block_label | ||
|
||
.fields-group | ||
= form.input :hint, | ||
wrapper: :with_block_label |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
- content_for :page_title do | ||
= t('admin.rules.edit') | ||
|
||
= simple_form_for @rule, url: admin_rule_path(@rule) do |f| | ||
= simple_form_for @rule, url: admin_rule_path(@rule) 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('generic.save_changes'), type: :submit | ||
= form.button :button, t('generic.save_changes'), type: :submit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters