ajax-node-status.html 1.02 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
{% load i18n %}
<div class="modal fade" id="confirmation-modal" tabindex="-1" role="dialog"> 
  <div class="modal-dialog"> 
    <div class="modal-content"> 
      <div class="modal-body">  
      
          {% 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 25 26 27
          </form>
        </div>
	<div class="clearfix"></div>

      </div>
    </div><!-- /.modal-content --> 
  </div><!-- /.modal-dialog --> 
</div>