diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-30 12:08:51 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-30 12:08:51 +0200 |
commit | 867a5d4afbb3a5c0ad0e5dfbc10d2516e3e9123f (patch) | |
tree | 13830d604e23ed647c874bd201ec999eeb37585b /templates/change_mail.html.ep | |
parent | 4ad1a1d20e52f7aa4b1ae2b7cc84c83c584d6725 (diff) |
allow users to change their mail address0.19
Closes #6
Diffstat (limited to 'templates/change_mail.html.ep')
-rw-r--r-- | templates/change_mail.html.ep | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/templates/change_mail.html.ep b/templates/change_mail.html.ep new file mode 100644 index 0000000..6fde245 --- /dev/null +++ b/templates/change_mail.html.ep @@ -0,0 +1,49 @@ +% if (my $invalid = stash('invalid')) { + %= include '_invalid_input', invalid => $invalid +% } + +% if (stash('success')) { + <div class="row"> + <div class="col s12"> + <div class="card green darken-4"> + <div class="card-content white-text"> + <span class="card-title">Mail-Änderung wird durchgeführt</span> + <p> + Ein für zwei Tage gültiger Bestätigungs-Link wurde an die + angegebene Mail-Adresse verschickt. Sobald du ihn aufgerufen + hast, wird die neue Adresse in deinem Account eingetragen. + </p> + </div> + </div> + </div> + </div> +% } + +<h1>Mail ändern</h1> +%= form_for '/change_mail' => (method => 'POST') => begin + %= csrf_field + <div class="row"> + <div class="input-field col s12"> + <i class="material-icons prefix">lock</i> + %= password_field 'password', id => 'password', class => 'validate', required => undef, autocomplete => 'current-password' + <label for="password">Aktuelles Passwort</label> + </div> + <div class="input-field col s12"> + <i class="material-icons prefix">email</i> + %= email_field 'email', id => 'email', class => 'validate', required => undef, maxlength => 250 + <label for="email">Neue Mail-Adresse</label> + </div> + </div> + <div class="row"> + <div class="col s3 m3 l3"> + </div> + <div class="col s6 m6 l6 center-align"> + <button class="btn waves-effect waves-light" type="submit" name="action" value="update_mail"> + Ändern + <i class="material-icons right">send</i> + </button> + </div> + <div class="col s3 m3 l3"> + </div> + </div> +%= end |