confirm.html
26 lines
| 855 B
| text/html
|
HtmlDjangoLexer
|
r23 | {% extends 'base.html' %} | ||
{% block content-title %}{{title}}{% endblock %} | ||||
{% block content-suptitle %}{{suptitle}}{% endblock %} | ||||
{% block content %} | ||||
<form action="" method="post" class="form">{% csrf_token %} | ||||
|
r89 | {% if delete %} | ||
|
r23 | <h3>Are you sure you wish to delete: {{ object }}?</h3> | ||
{% else %} | ||||
<h4>Are you sure you wish to proceed?</h4> | ||||
{% endif %} | ||||
|
r89 | {% if message %}<p>{{ message }}</p>{% endif %} | ||
|
r23 | <br> | ||
|
r89 | <div class="pull-right"> | ||
|
r23 | <button class="btn btn-primary" type="submit"> | ||
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span> Yes | ||||
</button> | ||||
<button type="button" class="btn btn-primary" onclick="{% if previous %}window.location.replace('{{ previous }}');{% else %}history.go(-1);{% endif %}"> | ||||
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> No | ||||
</button> | ||||
|
r89 | </div> | ||
|
r23 | </form> | ||
|
r89 | |||
|
r23 | {% endblock %} | ||