forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist_templates.html
More file actions
49 lines (49 loc) · 1.59 KB
/
list_templates.html
File metadata and controls
49 lines (49 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{% extends "nomcom/nomcom_private_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% block subtitle %}- Defined templates{% endblock %}
{% block nomcom_content %}
{% origin %}
<h2 class="mt-4">Defined templates</h2>
{% if template_list %}
<ul>
{% for template in template_list %}
<li>
<a href="{% url 'ietf.nomcom.views.edit_template' year template.id %}">{{ template }}</a>
</li>
{% endfor %}
</ul>
{% else %}
<p>
There are no templates defined for this group.
</p>
{% endif %}
<h2 class="mt-4">Defined templates for positions</h2>
{% for position in nomcom.position_set.all %}
<h3 class="mt-3">{{ position.name }}</h3>
<ul>
{% for template in position.get_templates %}
<li>
<a href="{% url 'ietf.nomcom.views.edit_template' year template.id %}">{{ template }}</a>
</li>
{% endfor %}
</ul>
{% empty %}
<p>
There are no positions defined.
</p>
{% endfor %}
<h2 class="mt-4">Defined templates for topics</h2>
{% for topic in nomcom.topic_set.all %}
<h3 class="mt-3">{{ topic.subject }}</h3>
<ul>
<li>
<a href="{% url 'ietf.nomcom.views.edit_template' year topic.description.id %}">{{ topic.description }}</a>
</li>
</ul>
{% empty %}
<p>
There are no topics defined.
</p>
{% endfor %}
{% endblock %}