|
@@ -1,6 +1,6 @@
|
|
{% extends 'base.html' %}
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
-{% load bootstrap3 %}
|
|
|
|
|
|
+{% load bootstrap3 services %}
|
|
|
|
|
|
{% block content %}
|
|
{% block content %}
|
|
<div class="panel panel-primary">
|
|
<div class="panel panel-primary">
|
|
@@ -25,7 +25,7 @@
|
|
<td>{{ allocation.end|default:'–' }}</td>
|
|
<td>{{ allocation.end|default:'–' }}</td>
|
|
<td class="text-right">
|
|
<td class="text-right">
|
|
{% if allocation.active %}
|
|
{% if allocation.active %}
|
|
- <a href="{% url 'deallocate' allocation.pk %}" class="btn btn-xs btn-danger">
|
|
|
|
|
|
+ <a href="#" data-toggle="modal" data-target="#confirm-deallocate" data-action="{% url 'deallocate' allocation.pk %}" data-ip="{{ allocation.resource }}" data-service="{{ allocation.service }}" class="btn btn-xs btn-danger">
|
|
<span class="glyphicon glyphicon-remove"></span> Désallouer
|
|
<span class="glyphicon glyphicon-remove"></span> Désallouer
|
|
</a>
|
|
</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
@@ -40,4 +40,11 @@
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+{% deallocate_modal_div %}
|
|
|
|
+{% endblock %}
|
|
|
|
+
|
|
|
|
+{% block js_end %}
|
|
|
|
+{{ block.super }}
|
|
|
|
+{% deallocate_modal_js %}
|
|
{% endblock %}
|
|
{% endblock %}
|