0
0
Fork 0

Add hints for rules (#29539)

This commit is contained in:
Eugen Rochko 2024-03-11 09:57:07 +01:00 committed by GitHub
parent 98ef38e34e
commit 5b3a8737d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 29 additions and 4 deletions

View file

@ -7,5 +7,8 @@
.fields-group
= f.input :text, wrapper: :with_block_label
.fields-group
= f.input :hint, wrapper: :with_block_label
.actions
= f.button :button, t('generic.save_changes'), type: :submit

View file

@ -12,6 +12,9 @@
.fields-group
= f.input :text, wrapper: :with_block_label
.fields-group
= f.input :hint, wrapper: :with_block_label
.actions
= f.button :button, t('admin.rules.add_new'), type: :submit

View file

@ -20,6 +20,7 @@
- @rules.each do |rule|
%li
.rules-list__text= rule.text
.rules-list__hint= rule.hint
.stacked-actions
- accept_path = @invite_code.present? ? public_invite_url(invite_code: @invite_code, accept: @accept_token) : new_user_registration_path(accept: @accept_token)