foodsoft/app/views/admin/users/_form.html.haml
Patrick Gansterer 057f3ec8ea Add welcome mail
2020-07-30 17:14:14 +02:00

8 lines
411 B
Text

= simple_form_for([:admin, @user]) do |f|
= render 'shared/user_form_fields', f: f, password_autocomplete: false
= 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