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

4
{% block question %}
5 6 7 8 9 10 11
<p>
{% blocktrans with obj=object op=op.name %}
Do you want to do the following operation on {{obj}}:
<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-danger" type="submit" id="op-form-send">
23 24
        {% if op.icon %}<i class="icon-{{op.icon}}"></i> {% endif %}{{ op|capfirst }}
      </button>
25
  </div>
26
</form>