Add option to create ordergroup together with user
This commit is contained in:
parent
a3946ed3d4
commit
9b889dd643
4 changed files with 13 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
= simple_form_for([:admin, @user]) do |f|
|
||||
= render 'shared/user_form_fields', f: f, password_autocomplete: false
|
||||
- unless @user.ordergroup
|
||||
= f.input :create_ordergroup, as: :boolean, label: false, inline_label: t('.create_ordergroup')
|
||||
.form-actions
|
||||
= f.submit
|
||||
= link_to t('ui.or_cancel'), :back
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue