operate.html 977 Bytes
Newer Older
1
{% load i18n %}
2
{% load crispy_forms_tags %}
3

4
{% block question %}
5
<p>
6
{% blocktrans with obj=object url=object.get_absolute_url op=op.name %}
7 8
Do you want to perform the following operation on
<a data-dismiss="modal" href="{{url}}">{{obj}}</a>: <strong>{{op}}</strong>?
9 10
{% endblocktrans %}
</p>
11
<p class="text-info">{{op.description}}</p>
12
{% endblock %}
13
<form method="POST" action="{{url}}">{% csrf_token %}
14 15 16 17 18
  {% block formfields %}
    {% if form %}
      {% crispy form %}
    {% endif %}
  {% endblock %}
19
  {% block formbuttons %}
20
  <div class="pull-right">
21 22
    <a class="btn btn-default" href="{{object.get_absolute_url}}"
        data-dismiss="modal">{% trans "Cancel" %}</a>
23
    <button class="btn btn-{{ opview.effect }} btn-op-form-send modal-accept" type="submit" id="op-form-send">
Bach Dániel committed
24
      {% if opview.icon %}<i class="fa fa-fw fa-{{opview.icon}}"></i> {% endif %}{{ op.name|capfirst }}
25
    </button>
26
  </div>
27
  {% endblock %}
28
</form>
29 30

{% block extra %}{% endblock %}