Reformed generic_confirm template better integrate appearance
This commit is contained in:
@@ -9,44 +9,45 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div id="box">
|
|
||||||
<div class="block" id="block-login">
|
|
||||||
{% if delete_view %}
|
|
||||||
<h2>{% trans "Confirm delete" %}</h2>
|
|
||||||
{% else %}
|
|
||||||
<h2>{% trans "Confirm" %}</h2>
|
|
||||||
{% endif %}
|
|
||||||
<div class="content login">
|
|
||||||
<form action="" method="post" class="form login">{% csrf_token %}
|
|
||||||
{% if next %}
|
|
||||||
<input name="next" type="hidden" value="{{ next }}" />
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if title %}
|
<div class="content">
|
||||||
<h3>{{ title }}</h3>
|
<h2 class="title">
|
||||||
|
{% if delete_view %}
|
||||||
|
{% trans "Confirm delete" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if delete_view %}
|
{% trans "Confirm" %}
|
||||||
{% if object_name %}
|
{% endif %}
|
||||||
<h3>{% blocktrans %}Are you sure you wish to delete {{ object_name }}: {{ object }}?{% endblocktrans %}</h3>
|
</h2>
|
||||||
{% else %}
|
<div class="inner">
|
||||||
<h3>{% blocktrans %}Are you sure you wish to delete: {{ object }}?{% endblocktrans %}</h3>
|
<form action="" method="post" class="form login">{% csrf_token %}
|
||||||
|
{% if next %}
|
||||||
|
<input name="next" type="hidden" value="{{ next }}" />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if title %}
|
||||||
|
<h3>{{ title }}</h3>
|
||||||
|
{% else %}
|
||||||
|
{% if delete_view %}
|
||||||
|
{% if object_name %}
|
||||||
|
<h3>{% blocktrans %}Are you sure you wish to delete {{ object_name }}: {{ object }}?{% endblocktrans %}</h3>
|
||||||
|
{% else %}
|
||||||
|
<h3>{% blocktrans %}Are you sure you wish to delete: {{ object }}?{% endblocktrans %}</h3>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
<h4>{{ message }}</h4>
|
||||||
<h4>{{ message }}</h4>
|
|
||||||
|
|
||||||
<div class="group navform wat-cf">
|
<div class="group navform wat-cf">
|
||||||
<button class="button" type="submit">
|
<button class="button" type="submit">
|
||||||
<img src="{{ MEDIA_URL }}web_theme_media/images/icons/tick.png" alt="{% trans 'Yes' %}" /> {% trans "Yes" %}
|
<img src="{{ MEDIA_URL }}web_theme_media/images/icons/tick.png" alt="{% trans 'Yes' %}" /> {% trans "Yes" %}
|
||||||
</button>
|
</button>
|
||||||
{% if previous %}
|
{% if previous %}
|
||||||
<a href="#header" onclick='{% if previous %}window.location.replace("{{ previous }}");{% else %}history.go(-1);{% endif %}' class="button">
|
<a href="#header" onclick='{% if previous %}window.location.replace("{{ previous }}");{% else %}history.go(-1);{% endif %}' class="button">
|
||||||
<img src="{{ MEDIA_URL }}web_theme_media/images/icons/cross.png" alt="{% trans 'No' %}"/> {% trans "No" %}
|
<img src="{{ MEDIA_URL }}web_theme_media/images/icons/cross.png" alt="{% trans 'No' %}"/> {% trans "No" %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user