2019-03-03 21:35:20 +00:00
|
|
|
<h1>Account</h1>
|
2019-03-04 17:17:03 +00:00
|
|
|
% my $acc = get_user_data();
|
2019-03-03 21:35:20 +00:00
|
|
|
<div class="row">
|
2019-03-08 16:59:48 +00:00
|
|
|
<div class="col s12">
|
|
|
|
<table class="striped">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Name</th>
|
|
|
|
<td><%= $acc->{name} %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Mail</th>
|
|
|
|
<td><%= $acc->{email} %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Registriert am</th>
|
|
|
|
<td><%= $acc->{registered_at}->strftime('%d.%m.%Y %H:%M') %></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col s1 m1 l3">
|
|
|
|
</div>
|
|
|
|
<div class="col s10 m10 l6 center-align">
|
|
|
|
%= form_for 'logout' => begin
|
|
|
|
%= csrf_field
|
|
|
|
<button class="btn waves-effect waves-light" type="submit" name="action" value="logout">
|
|
|
|
Abmelden
|
|
|
|
</button>
|
|
|
|
%= end
|
|
|
|
</div>
|
|
|
|
<div class="col s1 m1 l3">
|
|
|
|
</div>
|
2019-03-03 21:35:20 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<h1>Export</h1>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col s12">
|
|
|
|
<ul>
|
2019-03-07 17:36:11 +00:00
|
|
|
<li><a href="/export.json">Rohdaten</a> (Kein API-Ersatz, das Format kann sich jederzeit ändern)</li>
|
2019-03-03 21:35:20 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-03-12 20:49:26 +00:00
|
|
|
|
|
|
|
% if (not $acc->{deletion_requested}) {
|
|
|
|
<h1>Account löschen</h1>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col s12">
|
|
|
|
<p>
|
|
|
|
Der Account wird zunächst nur zur Löschung vorgemerkt. Wenn der
|
|
|
|
Auftrag nach drei Tagen nicht zurückgenommen wird, wird der Account
|
|
|
|
mit allen zugehörigen Reisedaten ohne weitere Rückfragen entfernt.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col s1 m1 l3">
|
|
|
|
</div>
|
|
|
|
<div class="col s10 m10 l6 center-align">
|
|
|
|
%= form_for 'delete' => begin
|
|
|
|
%= csrf_field
|
|
|
|
<button class="btn waves-effect waves-light red" type="submit" name="action" value="delete">
|
|
|
|
Account löschen
|
|
|
|
</button>
|
|
|
|
%= end
|
|
|
|
</div>
|
|
|
|
<div class="col s1 m1 l3">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
% }
|