Implement adding aliases for accounts

This commit is contained in:
Lexi / Zoe 2021-09-16 22:09:15 +02:00
parent 19b8075e3c
commit 37ada99f74
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
7 changed files with 109 additions and 3 deletions

View file

@ -82,4 +82,20 @@
{% else %}
<p>No aliases.</p>
{% endif %}
<form action="/accounts/{{ id }}/addalias" method="POST">
{{ include('includes/form_result_box.html.twig') }}
<table class="margin_vertical_1rem">
<tr>
<td><label for="add_alias_address">New alias:</label></td>
<td><input id="add_alias_address" name="alias_address" value="{{ formData['new_alias'] | default('') }}"/></td>
</tr>
<tr>
<td colspan="2">
<button type="submit">Add alias</button>
</td>
</tr>
</table>
</form>
{% endblock %}