Added supporter model and send email with the password

This commit is contained in:
2017-03-30 21:03:59 +02:00
parent 175c9bea4f
commit cfc1fbfd9f
12 changed files with 38 additions and 10 deletions
-1
View File
@@ -26,4 +26,3 @@ h3 Weitere Informationen zur Initiative findest du hier:
ul
li = link_to 'Initiativ-Seite', 'https://www.hanflegal.ch/initiative'
li = link_to 'Onlineformular', root_path
li = link_to 'Initiativ-Forum', 'https://forum.hanflegal.ch'
+1
View File
@@ -4,3 +4,4 @@
= navbar_group id: 'topnav' do
= navbar_item "Home", "/#{I18n.locale}"
= navbar_item t('.donation'), spenden_path
= navbar_item t('.sign_in'), new_supporter_session_path if current_supporter.blank?
@@ -1,5 +1,14 @@
p Hallo #{@supporter.first_name}, du bist nun ein Teil der Bewegung!
p
| Um deine Angaben anzupassen kannst dich unter #{link_to new_supporter_session_url, new_supporter_session_url} mit folgenden Daten anmelden:
dl.dl-horizontal
dt E-Mail
dd= @supporter.email
dt Passwort
dd= @password
p Wir informieren dich per E-Mail über die nächsten Schritte und kommen aktiv auf dich zu. Auf <a href="https://www.hanflegal.ch/initiative">https://www.hanflegal.ch/initiative</a> informieren wir über laufende Aktivitäten.
p
@@ -1,9 +1,15 @@
p Salut #{@supporter.first_name}, Tu fais maintenant partie du mouvement!
p Nous allons tenvoyer par e-mail les informations sur les prochaines étapes. Sur <a href="https://www.hanflegal.ch/initiative">https://www.hanflegal.ch/initiative</a> initiative nous informons des activités en cours.
p
| Pour régler vos données peut vous inscrire à #{link_to new_supporter_session_url, new_supporter_session_url} avec les données suivantes:
dl.dl-horizontal
dt E-Mail
dd= @supporter.email
dt Mot de passe
dd= @password
p
| Que peux-tu faire?
ul
@@ -2,6 +2,14 @@ p Ciao #{@supporter.first_name}, ora sei una parte del movimento!
p Vi informeremo via e-mail circa i prossimi passi e diventare attivo. Su <a href="https://www.hanflegal.ch/initiative">https://www.hanflegal.ch/initiative</a> può informarsi sulle attività in corso.
p
| Per regolare i dati possono iscriversi a #{link_to new_supporter_session_url, new_supporter_session_url} i seguenti dati:
dl.dl-horizontal
dt E-Mail
dd= @supporter.email
dt Password
dd= @password
p
| Che cosa puoi fare?
ul