2018-07-07 15:11:27 +02:00
|
|
|
<section id="admin-myaccount">
|
|
|
|
<h2>My Account</h2>
|
|
|
|
|
2018-07-09 22:38:39 +02:00
|
|
|
<form id="admin-myaccount-form" method="post" action="/admin?change=account" accept-charset="UTF-8">
|
2018-07-07 15:11:27 +02:00
|
|
|
<label for="admin-myaccount-username">Username: </label>
|
2018-07-09 22:38:39 +02:00
|
|
|
<input id="admin-myaccount-username" type="text" name="username" value="{{ authuser.name }}" /><br/>
|
2018-07-07 15:11:27 +02:00
|
|
|
|
|
|
|
<label for="admin-myaccount-email">E-Mail: </label>
|
2018-07-09 22:38:39 +02:00
|
|
|
<input id="admin-myaccount-email" type="text" name="email" value="{% if authuser.email is not none %}{{ authuser.email }}{% endif %}" /><br/>
|
2018-07-07 15:11:27 +02:00
|
|
|
|
2018-08-31 20:57:08 +02:00
|
|
|
<label for="admin-myaccount-receipt-pref">Receipts: </label>
|
|
|
|
<select id="admin-myaccount-receipt-pref" name="receipt_pref">
|
|
|
|
{% for pref in receipt_preference_class %}
|
|
|
|
<option value="{{ pref.value }}" {% if authuser.receipt_pref == pref %} selected="selected" {% endif %}>{{ pref.human_readable }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
2018-09-08 21:05:03 +02:00
|
|
|
{% if config_smtp_enabled != '1' %}Sending receipts is disabled by your administrator.{% endif %}
|
2018-08-31 20:57:08 +02:00
|
|
|
<br/>
|
|
|
|
|
2018-07-07 15:11:27 +02:00
|
|
|
<label for="admin-myaccount-ismember">Member: </label>
|
2018-07-09 22:38:39 +02:00
|
|
|
<input id="admin-myaccount-ismember" type="checkbox" disabled="disabled" {% if authuser.is_member %} checked="checked" {% endif %}/><br/>
|
2018-07-07 15:11:27 +02:00
|
|
|
|
|
|
|
<label for="admin-myaccount-isadmin">Admin: </label>
|
2018-07-09 22:38:39 +02:00
|
|
|
<input id="admin-myaccount-isadmin" type="checkbox" disabled="disabled" {% if authuser.is_admin %} checked="checked" {% endif %}/><br/>
|
2018-07-07 15:11:27 +02:00
|
|
|
|
2024-04-09 22:35:37 +02:00
|
|
|
<label for="admin-myaccount-logout-after-purchase">Logout after purchase: </label>
|
|
|
|
<input id="admin-myaccount-logout-after-purchase" type="checkbox" name="logout_after_purchase" {% if authuser.logout_after_purchase %} checked="checked" {% endif %}/><br/>
|
|
|
|
|
2018-07-07 15:11:27 +02:00
|
|
|
<input type="submit" value="Save changes" />
|
|
|
|
</form>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="admin-avatar">
|
|
|
|
<h2>Avatar</h2>
|
|
|
|
|
2018-07-09 22:38:39 +02:00
|
|
|
<form id="admin-avatar-form" method="post" action="/admin?change=avatar" enctype="multipart/form-data" accept-charset="UTF-8">
|
2023-03-25 22:51:57 +01:00
|
|
|
<img src="/static/upload/thumbnails/users/{{ authuser.id }}.png?cacheBuster={{ now }}" alt="Avatar of {{ authuser.name }}" /><br/>
|
2018-07-07 15:11:27 +02:00
|
|
|
|
|
|
|
<label for="admin-avatar-avatar">Upload new file: </label>
|
2018-09-09 23:59:06 +02:00
|
|
|
<input id="admin-avatar-avatar" type="file" name="avatar" accept="image/*" /><br/>
|
2018-07-07 15:11:27 +02:00
|
|
|
|
|
|
|
<input type="submit" value="Save changes" />
|
|
|
|
</form>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="admin-password">
|
|
|
|
<h2>Password</h2>
|
|
|
|
|
2018-07-09 22:38:39 +02:00
|
|
|
<form id="admin-password-form" method="post" action="/admin?change=password" accept-charset="UTF-8">
|
2018-07-07 15:11:27 +02:00
|
|
|
<label for="admin-password-oldpass">Current password: </label>
|
|
|
|
<input id="admin-password-oldpass" type="password" name="oldpass" /><br/>
|
|
|
|
|
|
|
|
<label for="admin-password-newpass">New password: </label>
|
|
|
|
<input id="admin-password-newpass" type="password" name="newpass" /><br/>
|
|
|
|
|
|
|
|
<label for="admin-password-newpass2">Repeat password: </label>
|
|
|
|
<input id="admin-password-newpass2" type="password" name="newpass2" /><br/>
|
|
|
|
|
|
|
|
<input type="submit" value="Save changes" />
|
|
|
|
</form>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="admin-touchkey">
|
|
|
|
<h2>Touchkey</h2>
|
|
|
|
|
2018-07-09 22:38:39 +02:00
|
|
|
<form id="admin-touchkey-form" method="post" action="/admin?change=touchkey" accept-charset="UTF-8">
|
2018-07-07 15:11:27 +02:00
|
|
|
Draw a new touchkey (leave empty to disable):
|
|
|
|
<br/>
|
2018-07-23 21:07:53 +02:00
|
|
|
<svg id="touchkey-svg" width="400" height="400"></svg>
|
2018-07-07 15:11:27 +02:00
|
|
|
<br/>
|
|
|
|
<input id="admin-touchkey-touchkey" type="hidden" name="touchkey" value="" />
|
|
|
|
|
|
|
|
<input type="submit" value="Save changes" />
|
|
|
|
</form>
|
|
|
|
|
2019-11-22 03:58:54 +01:00
|
|
|
<script src="/static/js/touchkey.js" ></script>
|
2018-07-07 15:11:27 +02:00
|
|
|
<script>
|
|
|
|
initTouchkey(true, 'touchkey-svg', null, 'admin-touchkey-touchkey');
|
|
|
|
</script>
|
|
|
|
</section>
|
2024-12-01 21:58:16 +01:00
|
|
|
|
|
|
|
<section id="admin-tokens">
|
|
|
|
<h2>Tokens</h2>
|
|
|
|
|
|
|
|
<strong>Warning:</strong>
|
|
|
|
Login tokens are a convenience feature that if used may weaken security.
|
|
|
|
Make sure you only use tokens not easily accessible to other people.
|
|
|
|
|
|
|
|
<form id="admin-newtoken-form" method="post" action="/admin?change=addtoken" accept-charset="UTF-8">
|
|
|
|
<table border="1">
|
|
|
|
<tr>
|
|
|
|
<th>Token</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Created</th>
|
|
|
|
<th>Actions</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><input id="admin-newtoken-token" type="password" name="token" value=""></td>
|
|
|
|
<td><input id="admin-newtoken-name" type="text" name="name" value=""></td>
|
|
|
|
<td></td>
|
|
|
|
<td><input type="submit" value="Create Token"></td>
|
|
|
|
</tr>
|
|
|
|
{% for token in tokens %}
|
|
|
|
<tr>
|
|
|
|
<td>••••••••</td>
|
|
|
|
<td>{{ token.name }}</td>
|
|
|
|
<td>{{ token.date }}</td>
|
|
|
|
<td><a style="text-decoration: none; color: #ff0000;" href="/admin?change=deltoken&token={{ token.id }}">🗑</a></td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</section>
|