{% load i18n %}
{% load crispy_forms_tags %}

{% block question %}
<p>
{% blocktrans with obj=object url=object.get_absolute_url op=op.name %}
Do you want to perform the following operation on
<a data-dismiss="modal" href="{{url}}">{{obj}}</a>: <strong>{{op}}</strong>?
{% endblocktrans %}
</p>
<p class="text-info">{{op.description}}</p>
{% endblock %}
<form method="POST" action="{{url}}">{% csrf_token %}
  {% block formfields %}
    {% if form %}
      {% crispy form %}
    {% endif %}
  {% endblock %}
  {% block formbuttons %}
  <div class="pull-right">
    <a class="btn btn-default" href="{{object.get_absolute_url}}"
        data-dismiss="modal">{% trans "Cancel" %}</a>
    <button class="btn btn-{{ opview.effect }} btn-op-form-send modal-accept" type="submit" id="op-form-send">
      {% if opview.icon %}<i class="fa fa-fw fa-{{opview.icon}}"></i> {% endif %}{{ op.name|capfirst }}
    </button>
  </div>
  {% endblock %}
</form>

{% block extra %}{% endblock %}
