Add welcome mail

This commit is contained in:
Patrick Gansterer 2020-03-06 11:46:39 +01:00
parent 75129b52c6
commit 057f3ec8ea
9 changed files with 92 additions and 1 deletions

View file

@ -1,5 +1,6 @@
= 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

View file

@ -0,0 +1,6 @@
= raw t '.text0', user: show_user(@user)
- if @additional_text
\
= raw @additional_text
\
= raw t '.text1', link: @link, expires: I18n.l(@user.reset_password_expires), foodcoop: FoodsoftConfig[:name]