ajax-node-status.html 1.01 KB
Newer Older
1
{% load i18n %}
2 3 4 5 6
<div class="modal fade" id="confirmation-modal" tabindex="-1" role="dialog">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-body">

7 8 9 10 11 12 13 14
          {% if text %}
            {{ text }}
          {% else %}
            {%blocktrans with object=object%}
              Are you sure you want to change <strong>{{ object }}</strong> status?
            {%endblocktrans%}
          {% endif %}
        <div class="pull-right">
15
          <form action="{% url "dashboard.views.status-node" pk=object.pk %}" method="POST">
16
            {% csrf_token %}
17
            <button type="button" class="btn btn-default" data-dismiss="modal">{% trans "Cancel" %}</button>
18
	    <input type="hidden" name="change_status" value=""/>
19
            <button class="btn btn-warning">{% blocktrans with status=status %}Yes, {{status}}{% endblocktrans %}</button>
20 21 22 23 24
          </form>
        </div>
	<div class="clearfix"></div>

      </div>
25 26
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
27
</div>