Add welcome mail
This commit is contained in:
parent
75129b52c6
commit
057f3ec8ea
9 changed files with 92 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
6
app/views/mailer/welcome.text.haml
Normal file
6
app/views/mailer/welcome.text.haml
Normal 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]
|
||||
Loading…
Add table
Add a link
Reference in a new issue