mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat: GET|POST /account/{name}/delete
Closes #348 Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
1180565d0c
commit
8657fd336e
6 changed files with 226 additions and 4 deletions
43
templates/account/delete.html
Normal file
43
templates/account/delete.html
Normal file
|
@ -0,0 +1,43 @@
|
|||
{% extends "partials/layout.html" %}
|
||||
|
||||
{% block pageContent %}
|
||||
<div class="box">
|
||||
<h2>{{ "Accounts" | tr }}</h2>
|
||||
|
||||
{% include "partials/error.html" %}
|
||||
|
||||
<p>
|
||||
{{
|
||||
"You can use this form to permanently delete the AUR account %s%s%s."
|
||||
| tr | format("<strong>", name, "</strong>") | safe
|
||||
}}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{
|
||||
"%sWARNING%s: This action cannot be undone."
|
||||
| tr | format("<strong>", "</strong>") | safe
|
||||
}}
|
||||
</p>
|
||||
|
||||
|
||||
<form id="edit-profile-form" action="{{ '/account/%s/delete' | format(name) }}" method="post">
|
||||
<fieldset>
|
||||
<p>
|
||||
<label for="id_passwd">{{ "Password" | tr }}:</label>
|
||||
<input id="id_passwd" type="password" size="30" name="passwd">
|
||||
</p>
|
||||
<p>
|
||||
<label class="confirmation">
|
||||
<input type="checkbox" name="confirm">
|
||||
{{ "Confirm deletion" | tr }}
|
||||
</label>
|
||||
</p>
|
||||
<p>
|
||||
<button class="button" type="submit">{{ "Delete" | tr }}</button>
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue