Accounts: Add edit and delete pages; implement forms (no real actions yet)
This commit is contained in:
parent
4e8d879008
commit
7859ef77ee
9 changed files with 258 additions and 23 deletions
44
templates/account_delete.html.twig
Normal file
44
templates/account_delete.html.twig
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{% extends "base.html.twig" %}
|
||||
|
||||
{% block title %}Delete account{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Account: {{ accountUsername }}</h2>
|
||||
|
||||
<p>
|
||||
<b>Actions:</b>
|
||||
<a href="/accounts/{{ id }}">View</a> |
|
||||
<a href="/accounts/{{ id }}/edit">Edit</a> |
|
||||
<span>Delete</span> |
|
||||
<a href="mailto:{{ accountUsername }}">Send mail</a>
|
||||
</p>
|
||||
|
||||
<h3>Delete account</h3>
|
||||
|
||||
<p>You are about to delete the mail account "{{ accountUsername }}" including the following aliases:</p>
|
||||
<ul>
|
||||
{% for alias in aliases %}
|
||||
<li>{{ alias['mail_address'] }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<p><b>Note:</b> This will only delete the user entry from the database. Mail data will not be deleted!</p>
|
||||
|
||||
{% if error is defined %}
|
||||
<div class="error_box">
|
||||
<h4>Error:</h4>
|
||||
{{ error }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="confirmation_box">
|
||||
<p><b>Please confirm that you want to delete this account by entering your password.</b></p>
|
||||
<form action="/accounts/{{ id }}/delete" method="POST">
|
||||
<p>
|
||||
<label for="admin_password">Your password:</label>
|
||||
<input type="password" id="admin_password" name="admin_password"/>
|
||||
</p>
|
||||
<button type="submit">Delete account</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue