Add support to change the submit icon and label in the generic confirm template.
This commit is contained in:
@@ -44,7 +44,10 @@
|
|||||||
<input name="previous" type="hidden" value="{{ previous }}" />
|
<input name="previous" type="hidden" value="{{ previous }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<button type="submit" class="btn btn-danger" data-dismiss="modal">{% trans 'Yes' %}</button>
|
<button type="submit" class="btn btn-danger" data-dismiss="modal">
|
||||||
|
<i class="{{ submit_icon|default:'fa fa-check' }}"></i> {% if submit_label %}{{ submit_label }}{% else %}{% trans 'Yes' %}{% endif %}
|
||||||
|
</button>
|
||||||
|
|
||||||
{% if previous %}
|
{% if previous %}
|
||||||
<a class="btn btn-primary" onclick='{% if previous %}window.location.replace("{{ previous }}");{% else %}history.go(-1);{% endif %}'>{% trans 'No' %}</a>
|
<a class="btn btn-primary" onclick='{% if previous %}window.location.replace("{{ previous }}");{% else %}history.go(-1);{% endif %}'>{% trans 'No' %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user