summaryrefslogtreecommitdiff
path: root/templates/account.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-30 12:08:51 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-30 12:08:51 +0200
commit867a5d4afbb3a5c0ad0e5dfbc10d2516e3e9123f (patch)
tree13830d604e23ed647c874bd201ec999eeb37585b /templates/account.html.ep
parent4ad1a1d20e52f7aa4b1ae2b7cc84c83c584d6725 (diff)
allow users to change their mail address0.19
Closes #6
Diffstat (limited to 'templates/account.html.ep')
-rw-r--r--templates/account.html.ep21
1 files changed, 19 insertions, 2 deletions
diff --git a/templates/account.html.ep b/templates/account.html.ep
index ca43340..92b61db 100644
--- a/templates/account.html.ep
+++ b/templates/account.html.ep
@@ -2,6 +2,23 @@
%= include '_invalid_input', invalid => $invalid
% }
+% if (my $success = flash('success')) {
+ <div class="row">
+ <div class="col s12">
+ <div class="card green darken-4">
+ <div class="card-content white-text">
+ % if ($success eq 'mail') {
+ <span class="card-title">Mail-Adresse erfolgreich geändert</span>
+ % }
+ % elsif ($success eq 'password') {
+ <span class="card-title">Passwort erfolgreich geändert</span>
+ % }
+ </div>
+ </div>
+ </div>
+ </div>
+% }
+
<h1>Account</h1>
% my $acc = current_user();
<div class="row">
@@ -13,11 +30,11 @@
</tr>
<tr>
<th scope="row">Mail</th>
- <td><%= $acc->{email} %></td>
+ <td><%= $acc->{email} %><a href="/change_mail" style="margin-left: 1em;"><i class="material-icons">edit</i> ändern</a></td>
</tr>
<tr>
<th scope="row">Passwort</th>
- <td><a href="/change_password" class="waves-effect waves-light btn">ändern</a></td>
+ <td><a href="/change_password"><i class="material-icons">edit</i> ändern</a></td>
</tr>
<tr>
<th scope="row">Registriert am</th>