You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.5 KiB
32 lines
1.5 KiB
{% extends "ordr3:templates/layout_full.jinja2" %} |
|
|
|
{% block subtitle %} Delete User {{context.model.user_name}} {% endblock subtitle %} |
|
|
|
{% block content %} |
|
|
|
<div class="col-5"> |
|
<div class="border border-danger rounded o3-delete-warning"> |
|
<h4 class="mb-2 text-muted mb-4">Delete User <span class="text-danger">{{ context.model.username }}</span></h4> |
|
<p>You are about to delete the user {{ context.model.first_name }} {{ context.model.last_name }}.</p> |
|
<p class="font-weight-bold mt-4 mb-4">This action is permanent and cannot be undone!</p> |
|
<form action="{{request.resource_url(context, 'delete')}}" method="POST"> |
|
<p class="mt-4"> |
|
<div class="custom-control custom-switch o3-confirmation"> |
|
<input type="checkbox" class="custom-control-input" id="confirmation" value="confirmed" name="confirmation"> |
|
<label class="custom-control-label" for="confirmation">I confirm that I want to delete this user.</label> |
|
</div> |
|
</p> |
|
<p class="mt-4"> |
|
<input type="hidden" name="csrf_token" value="{{csrf_token}}"> |
|
<button class="btn btn-outline-danger o3-confirm-button" type="submit" name="delete" disabled="disabled">Delete User</button> |
|
<button class="btn btn-outline-secondary" type="submit" name="cancel">Cancel</button> |
|
</p> |
|
</form> |
|
</div> |
|
</div> |
|
|
|
<div class="col-5"></div> |
|
|
|
{% endblock content %} |
|
|
|
|
|
|