|
@@ -1,5 +1,7 @@
|
|
|
{% extends 'base/layout.html' %}
|
|
{% extends 'base/layout.html' %}
|
|
|
{% load helpers %}
|
|
{% load helpers %}
|
|
|
|
|
+{% load buttons %}
|
|
|
|
|
+{% load perms %}
|
|
|
|
|
|
|
|
{% block title %}{{ script }}{% endblock %}
|
|
{% block title %}{{ script }}{% endblock %}
|
|
|
|
|
|
|
@@ -23,6 +25,16 @@
|
|
|
{{ block.super }}
|
|
{{ block.super }}
|
|
|
{% endblock header %}
|
|
{% endblock header %}
|
|
|
|
|
|
|
|
|
|
+{% block controls %}
|
|
|
|
|
+ <div class="controls">
|
|
|
|
|
+ <div class="control-group">
|
|
|
|
|
+ {% if request.user|can_delete:result %}
|
|
|
|
|
+ {% delete_button result %}
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+{% endblock controls %}
|
|
|
|
|
+
|
|
|
{% block content-wrapper %}
|
|
{% block content-wrapper %}
|
|
|
<ul class="nav nav-tabs px-3" role="tablist">
|
|
<ul class="nav nav-tabs px-3" role="tablist">
|
|
|
<li class="nav-item" role="presentation">
|
|
<li class="nav-item" role="presentation">
|
|
@@ -46,3 +58,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
{% endblock content-wrapper %}
|
|
{% endblock content-wrapper %}
|
|
|
|
|
+
|
|
|
|
|
+{% block modals %}
|
|
|
|
|
+ {% include 'inc/htmx_modal.html' %}
|
|
|
|
|
+{% endblock modals %}
|