socialnerds/accounts
socialnerds
/
accounts
Archived
1
0
Fork 0
This repository has been archived on 2022-04-16. You can view files and clone it, but cannot push or open issues or pull requests.
accounts/views/default.tpl

142 lines
6.1 KiB
Smarty
Raw Normal View History

2016-11-07 23:57:07 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="/static/favicon.ico">
<title>{{ app_name }}</title>
<!-- Bootstrap core CSS -->
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="/static/css/starter-template.css" rel="stylesheet">
</head>
<body>
<div class="container">
2016-11-09 00:17:30 +01:00
%if message:
<div class="alert alert-{{ message['alert'] }} alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
{{ message['message'] }}.
</div>
%end
2016-11-07 23:57:07 +01:00
<div class="starter-template">
<h1>{{ username }}</h1>
<p class="lead">You are logged in. (<a href="/logout">logout</a>)</p>
2016-11-08 21:19:16 +01:00
<p>This is your <a href="https://socialnerds.org/account">SocialNerds account</a> self-service page.</p>
<p>It is <a href="https://en.wikipedia.org/wiki/Free_software">free software</a> and its code is hosted <a href="https://socialg.it/socialnerds/accounts">here</a>.</p>
2016-11-07 23:57:07 +01:00
</div>
2016-11-08 21:19:16 +01:00
<div class="starter-template">
<h2>Change password</h2>
<hr>
2016-11-09 00:17:30 +01:00
<p>Enter your old password and your desired password and hit the change button.<br><small>Watch typos! I will not watch for you.</small></p>
<form class="form-inline" action="/password" method="post">
2016-11-08 21:19:16 +01:00
<div class="form-group">
2016-11-10 00:43:06 +01:00
<input name="oldpassword" type="password" class="form-control" id="changepasswordInput" placeholder="Old password">
2016-11-08 21:19:16 +01:00
</div>
<div class="form-group">
2016-11-10 00:43:06 +01:00
<input name="newpassword" type="password" class="form-control" id="changepasswordInput2" placeholder="New password">
2016-11-08 21:19:16 +01:00
</div>
2016-11-10 00:43:06 +01:00
<button type="submit" class="btn btn-primary">change</button>
2016-11-08 21:19:16 +01:00
</form>
</div>
<div class="starter-template">
<h2>Manage aliases</h2>
<hr>
2016-11-11 21:56:41 +01:00
<p>
Aliases are additional email addresses which will be forwarded to your account.
Besides your primary email address you can use an alias to send your emails.<br>
<small>Available domains: <b>@aundas.org</b>, <b>@socialnerds.org</b>,
<b>@phlo.at</b>, <b>@gmur.ml</b>, <b>@socialg.it</b><br>
Be aware the limit of {{ max_aliases }} active aliases.</small>
2016-11-10 23:43:15 +01:00
</p>
%for alias in aliases:
<p>
<form class="form-inline" action="/alias/delete", method="post">
<div class="form-group">
<input type="text" class="form-control" id="deletealiasInput" value="{{ alias }}" disabled>
2016-11-11 20:59:26 +01:00
<input name="delete" type="hidden" class="form-control" id="deletealiasInput2" value="{{ alias }}">
2016-11-10 23:43:15 +01:00
</div>
<button type="submit" class="btn btn-danger">delete</button>
</form>
</p>
%end
2016-11-11 21:56:41 +01:00
2016-11-11 20:59:26 +01:00
<p>
<form class="form-inline" action="/alias/add", method="post">
%if len(aliases) < max_aliases:
<div class="form-group">
<input name="add" type="email" class="form-control" id="ceatealiasInput" placeholder="alias@socialnerds.org">
</div>
2016-11-11 20:59:26 +01:00
<button type="submit" class="btn btn-primary">create</button>
%end
</form>
</p>
2016-11-08 21:19:16 +01:00
</div>
2016-11-12 13:44:27 +01:00
<div class="starter-template">
<h2>Forward all emails</h2>
<hr>
<p>Entering an external email address here will forward all incoming mails.
<br><small>incl. incoming mails on aliases.</small>
</p>
%if forward:
<form class="form-inline" action="/forward/delete" method="post">
<div class="form-group">
2016-12-14 20:10:31 +01:00
<input type="email" class="form-control" id="forwardemailInput" value="{{ forward[0] }}" disabled>
<input name="forward" type="hidden" class="form-control" id="forwardemailInput2" value="{{ forward[0] }}">
2016-11-12 13:44:27 +01:00
</div>
<button type="submit" class="btn btn-primary btn-danger">delete</button>
</form>
%else:
<form class="form-inline" action="/forward/add" method="post">
<div class="form-group">
<input name="forward" type="email" class="form-control" id="forwardemailInput" placeholder="Email address">
</div>
<button type="submit" class="btn btn-primary">forward</button>
</form>
%end
</div>
2016-11-08 21:19:16 +01:00
<div class="starter-template">
<h2>Delete account</h2>
<hr>
2016-11-11 21:56:41 +01:00
<p>
Entering your password and hitting the delete button will render your
<a href="https://socialnerds.org/account">SocialNerds account</a>
unavailable and <b>remove all data from our servers</b>.<br>
2016-11-11 21:56:41 +01:00
<small>The actual removal will happen within a week.</small>
</p>
2016-11-08 21:19:16 +01:00
2016-11-11 21:56:41 +01:00
<form class="form-inline" action="/delete", method="post">
2016-11-08 21:19:16 +01:00
<div class="form-group">
2016-11-11 20:59:26 +01:00
<input name="password" type="password" class="form-control" id="deleteaccountInput" placeholder="Password">
2016-11-08 21:19:16 +01:00
</div>
2016-11-10 00:43:06 +01:00
<button type="submit" class="btn btn-danger">delete</button>
2016-11-08 21:19:16 +01:00
</form>
</div>
2016-11-07 23:57:07 +01:00
</div><!-- /.container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="/static/js/vendor/jquery.min.js"><\/script>')</script>
<script src="/static/js/bootstrap.min.js"></script>
</body>
</html>