foodsoft/app/views/admin/users/_form.html.haml

9 lines
411 B
Text
Raw Normal View History

= simple_form_for([:admin, @user]) do |f|
= render 'shared/user_form_fields', f: f, password_autocomplete: false
2020-03-06 11:46:39 +01:00
= f.input :send_welcome_mail, as: :boolean, label: false, inline_label: t('.send_welcome_mail')
- 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