44 lines
2.8 KiB
HTML
44 lines
2.8 KiB
HTML
{% extends "admin/components/input-forms.html" %}
|
|
|
|
{% block content %}
|
|
<div class="form-container">
|
|
<form name="form-delete-user" class="form-display form-post" action="{{ url_for(request.endpoint, **request.view_args) }}" data-rel-success="{{ url_for('admin_views.users') }}">
|
|
{% include "admin/components/server-alerts.html" %}
|
|
<h2 class="form-heading">Delete User ‘{{ user.username }}’?</h2>
|
|
{{ form.hidden_tag() }}
|
|
<p>This action cannot be undone. Deleting an account will mean {{ user.username }} will no longer be able to log in to the admin console.</p>
|
|
<p>Are you sure you want to proceed?</p>
|
|
<div class="form-label-group">
|
|
{{ form.password(class_="form-control", placeholder="Confirm Your Password", autofocus=true) }}
|
|
{{ form.password.label }}
|
|
</div>
|
|
<div class="form-check">
|
|
{{ form.notify(class_="form-check-input") }}
|
|
{{ form.notify.label }}
|
|
</div>
|
|
{% include "admin/components/client-alerts.html" %}
|
|
<div class="container form-submission-button">
|
|
<div class="row">
|
|
<div class="col text-center">
|
|
<a href="{{ url_for('admin_views.users') }}" autofocus="true" class="btn btn-md btn-primary btn-block" type="button">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
|
|
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"/>
|
|
</svg>
|
|
<span>
|
|
Cancel
|
|
</span>
|
|
</a>
|
|
<button class="btn btn-md btn-danger btn-block" type="submit">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-person-x-fill" viewBox="0 0 16 16">
|
|
<path fill-rule="evenodd" d="M1 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H1zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm6.146-2.854a.5.5 0 0 1 .708 0L14 6.293l1.146-1.147a.5.5 0 0 1 .708.708L14.707 7l1.147 1.146a.5.5 0 0 1-.708.708L14 7.707l-1.146 1.147a.5.5 0 0 1-.708-.708L13.293 7l-1.147-1.146a.5.5 0 0 1 0-.708z"></path>
|
|
</svg>
|
|
<span>
|
|
Delete
|
|
</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endblock %} |