Stickup/templates/index.html

96 lines
3.0 KiB
HTML
Raw Permalink Normal View History

2020-11-11 13:27:18 -05:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>Stickup</title>
2020-11-18 11:40:18 -05:00
<link rel="stylesheet" type="text/css" href="/static/stickup.css">
2020-11-11 13:27:18 -05:00
<meta name="viewport" content="width=device-width, initial-scale=0.8">
<meta name="description" content="An email management frontend.">
</head>
<body>
2020-11-18 11:40:18 -05:00
<header>
2020-11-18 17:46:23 -05:00
<object id="logo" title="Stickup logo" data="/static/stickup.svg"></object>
2020-11-18 11:40:18 -05:00
<h1>This is a stickup!</h1>
</header>
<main>
{% if result %}
<div class="result_message result_{% if result['ok'] %}good{% else %}bad{% endif %}">{{ result['message'] }}</div>
{% endif %}
2020-11-21 14:23:34 -05:00
{% if user_data %}
<div>Your email address is <b>{{ user_data['email'] }}</b></div>
2020-11-18 11:40:18 -05:00
<form method="post" enctype="application/x-www-form-urlencoded">
2020-11-21 14:23:34 -05:00
<input type="hidden" name="form_type" value="change_password">
2020-11-18 11:40:18 -05:00
<table>
<tr>
<td><label for="current_password">Current password</label></td>
2020-11-21 14:23:34 -05:00
<td><input id="current_password" name="current_password" type="password" maxlength="1024" minlength="8"></td>
2020-11-18 11:40:18 -05:00
</tr>
<tr>
<td><label for="new_password">New password</label></td>
2020-11-21 14:23:34 -05:00
<td><input id="new_password" name="new_password" type="password" maxlength="1024" minlength="8"></td>
2020-11-18 11:40:18 -05:00
</tr>
<tr>
<td><label for="verify_new_password">Verify new password</label></td>
2020-11-21 14:23:34 -05:00
<td><input id="verify_new_password" name="verify_new_password" type="password" maxlength="1024" minlength="8"></td>
2020-11-18 11:40:18 -05:00
</tr>
<tr>
<td><input type="submit" value="Submit"></td>
</tr>
</table>
</form>
2020-11-21 14:23:34 -05:00
{% else %}
<div>There is no email address currently associated with your buckler account.</div>
<h3>Make a new one:</h3>
<div>New email address: <b>{{ request['meta']['username'] }}@{{ server_domain }}</b></div>
<form method="post" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="form_type" value="new_email">
<table>
<tr>
<td><label for="new_password">New password</label></td>
<td><input id="new_password" name="new_password" type="password" maxlength="1024" minlength="8"></td>
</tr>
<tr>
<td><label for="verify_new_password">Verify new password</label></td>
<td><input id="verify_new_password" name="verify_new_password" type="password" maxlength="1024" minlength="8"></td>
</tr>
<tr>
<td><input type="submit" value="Submit"></td>
</tr>
</table>
</form>
{% endif %}
<p>Password requirements:</p>
<ul>
<li>Maximum length: 1024 characters</li>
<li>Minimum length: 8 characters</li>
</ul>
<p>Email server settings:</p>
<table>
<tr>
<td>Server Domain</td>
<td>mail.steelbea.me</td>
</tr>
<tr>
<td>Supported Protocols</td>
<td>IMAP, SMTP</td>
</tr>
<tr>
<td>IMAP Port</td>
<td>993</td>
</tr>
<tr>
<td>SMTP Port</td>
<td>465</td>
</tr>
<tr>
<td>Connection Security</td>
<td>SSL/TLS</td>
</tr>
<tr>
<td>Authentication Method</td>
<td>Normal password</td>
</tr>
</table>
2020-11-18 11:40:18 -05:00
</main>
2020-11-11 13:27:18 -05:00
</body>
</html>