summaryrefslogtreecommitdiff
path: root/templates/account.html.ep
diff options
context:
space:
mode:
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>