finish login i18n + controller
This commit is contained in:
parent
419f5ef0ad
commit
b12a906a74
6 changed files with 58 additions and 34 deletions
|
|
@ -2,22 +2,10 @@
|
|||
:javascript
|
||||
$('user_nick').focus();
|
||||
|
||||
- title "Einladung in die #{FoodsoftConfig[:name]}"
|
||||
%p
|
||||
Du bist eingeladen worden als Mitglied der Gruppe
|
||||
%b= @invite.group.name
|
||||
in der Foodcoop
|
||||
= FoodsoftConfig[:name]
|
||||
mitzumachen.
|
||||
%p
|
||||
Wenn Du mitmachen möchtest, dann fülle bitte dieses Formular aus.
|
||||
%p
|
||||
Deine Daten werden selbstverständlich nicht an Dritte, aus was auch immer für
|
||||
Gründen, weitergeben. Du kannst auch entscheiden, wieviel deiner persönlichen
|
||||
Daten für alle einsehbar sein sollen. 'Alle' bedeutet hier alle Foodcoop-Mitglieder.
|
||||
Die Administratoren haben aber jederzeit Zugriff auf deine Daten.
|
||||
- title t('.title', name: FoodsoftConfig[:name])
|
||||
= t('.body', group: h(@invite.group.name), foodcoop: h(FoodsoftConfig[:name])).html_safe
|
||||
= simple_form_for @user, url: accept_invitation_path do |form|
|
||||
= render partial: 'shared/user_form_fields', locals: {f: form}
|
||||
.form-actions
|
||||
= submit_tag "Foodsoft Account erstellen", class: 'btn'
|
||||
= submit_tag t('.submit'), class: 'btn'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,7 @@
|
|||
- title "Passwort vergessen?"
|
||||
%p
|
||||
Kein Problem, Du kannst dir einfach ein neues Passwort zulegen.
|
||||
%p
|
||||
Dazu musst hier die E-Mail-Adresse eingeben, mit der Du in der FoodSoft angemeldet bist.
|
||||
Du erhälst dann eine E-Mail mit weiteren Instruktionen.
|
||||
|
||||
- title t('.title')
|
||||
= t('.body').html_safe
|
||||
= simple_form_for User.new, url: {action: 'reset_password'} do |form|
|
||||
= form.input :email
|
||||
.form-actions
|
||||
= form.submit "Neues Passwort anfordern", class: 'btn'
|
||||
= link_to "oder abbrechen", :back
|
||||
= form.submit t('.submit'), class: 'btn'
|
||||
= link_to t('.cancel'), :back
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
- title "Neues Passwort"
|
||||
%p=h "Bitte neues Passwort für #{@user.nick} eingeben."
|
||||
- title t('.title')
|
||||
= t('.body', user: h(@user.nick)).html_safe
|
||||
= simple_form_for @user, :url => {:action => 'update_password', :id => @user.id, :token => @user.reset_password_token} do |form|
|
||||
= form.input :password
|
||||
= form.input :password_confirmation
|
||||
.form-actions
|
||||
= form.submit 'Neues Passwort speichern', class: 'btn'
|
||||
= form.submit t('.submit'), class: 'btn'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue