confirm.html
34 lines
| 1001 B
| text/html
|
HtmlDjangoLexer
|
r23 | {% extends 'base.html' %} | ||
r338 | {% load bootstrap4 %} | |||
|
r23 | |||
{% block content-title %}{{title}}{% endblock %} | ||||
{% block content-suptitle %}{{suptitle}}{% endblock %} | ||||
{% block content %} | ||||
<form action="" method="post" class="form">{% csrf_token %} | ||||
|
r219 | {% if form %} | ||
{% bootstrap_form form layout='horizontal' size='medium' %} | ||||
<div style="clear: both;"></div> | ||||
{% endif %} | ||||
|
r89 | {% if delete %} | ||
|
r23 | <h3>Are you sure you wish to delete: {{ object }}?</h3> | ||
{% else %} | ||||
|
r219 | {% if message %} | ||
<p>{{ message }}</p> | ||||
{% else %} | ||||
<h4>Are you sure you wish to proceed?</h4> | ||||
{% endif %} | ||||
{% endif %} | ||||
|
r23 | <br> | ||
|
r89 | <div class="pull-right"> | ||
|
r23 | <button class="btn btn-primary" type="submit"> | ||
r338 | <span class="fas fa-check" aria-hidden="true"></span> Yes | |||
|
r23 | </button> | ||
<button type="button" class="btn btn-primary" onclick="{% if previous %}window.location.replace('{{ previous }}');{% else %}history.go(-1);{% endif %}"> | ||||
r338 | <span class="fas fa-times" aria-hidden="true"></span> No | |||
|
r23 | </button> | ||
|
r89 | </div> | ||
|
r23 | </form> | ||
|
r89 | |||
|
r23 | {% endblock %} | ||