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

4
{% block question %}
5
<p>
6 7
{% blocktrans with obj=object url=object.get_absolute_url op=op.name %}
Do you want to do the following operation on <a href="{{url}}">{{obj}}</a>:
8 9 10 11
<strong>{{op}}</strong>?
{% endblocktrans %}
</p>
<p class="text-info">{{op.name}}: {{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
  <div class="pull-right">
20 21
    <a class="btn btn-default" href="{{object.get_absolute_url}}"
        data-dismiss="modal">{% trans "Cancel" %}</a>
22
    <button class="btn btn-{{ opview.effect }}" type="submit" id="op-form-send">
23
        {% if opview.icon %}<i class="fa fa-{{opview.icon}}"></i> {% endif %}{{ op|capfirst }}
24
      </button>
25
  </div>
26
</form>