Skip to content
Snippets Groups Projects
Commit 8abc2f60 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Show conflicts, prerequisites & conflicts on AK detail page

parent 1198feb5
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,35 @@
{{ ak.reso | bool_symbol }}
</td>
</tr>
{% if ak.requirements.count > 0 %}
<tr>
<td>{% trans "Requirements" %}</td>
<td>
{% for requirement in ak.requirements.all %}
{% if forloop.counter0 > 0 %}
,&nbsp;
{% endif %}
{{ requirement }}
{% endfor %}
</td>
</tr>
{% endif %}
{% if ak.conflicts.count > 0 %}
<tr>
<td>{% trans "Conflicting AKs" %}</td>
<td>
{% include "AKSubmission/ak_linked_list_inline.html" with aks=ak.conflicts slug=ak.event.slug %}
</td>
</tr>
{% endif %}
{% if ak.prerequisites.count > 0 %}
<tr>
<td>{% trans "Prerequisite AKs" %}</td>
<td>
{% include "AKSubmission/ak_linked_list_inline.html" with aks=ak.prerequisites slug=ak.event.slug %}
</td>
</tr>
{% endif %}
</table>
<p style="margin-top: 30px;margin-bottom: 30px;">{{ ak.description }}</p>
......
{% for ak in aks.all %}
{% if forloop.counter0 > 0 %}
,&nbsp;
{% endif %}
<a href="{% url 'submit:ak_detail' event_slug=slug pk=ak.pk %}">{{ ak }}</a>
{% empty %}
-
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment