+ <div class="pull-right">
+ {% if not task.terminated %}
+ <form action="{% url 'task_cancel' task.job.job_id task.task_id %}" method="post">
+ {% csrf_token %}
+ <button type="submit" class="btn btn-default">Anuluj zadanie</button>
+ </form>
+ {% endif %}
+ </div>
+