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
42 lines (37 loc) · 1.3 KB
/
list_templates.html
File metadata and controls
42 lines (37 loc) · 1.3 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
{% 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>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>Defined templates for positions</h2>
{% for position in nomcom.position_set.all %}
<h3>{{ 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>Defined templates for topics</h2>
{% for topic in nomcom.topic_set.all %}
<h3>{{ 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 nomcom_content %}