forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist_positions.html
More file actions
56 lines (52 loc) · 2.39 KB
/
list_positions.html
File metadata and controls
56 lines (52 loc) · 2.39 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
50
51
52
53
54
55
56
{% extends "nomcom/nomcom_private_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% block subtitle %} - Positions{% endblock %}
{% block nomcom_content %}
{% origin %}
<h2>Positions in {{ nomcom.group }}</h2>
{% if nomcom.group.state_id == 'active' %}
<a class="btn btn-default" href="{% url 'ietf.nomcom.views.edit_position' year %}">Add new position</a>
<p class="help-block">If you need to start processing a new position while other positions are further along or have already closed (such as when the 2016 nomcom needed to seat a second RAI AD after moving an incumbent to the IESG chair position) adding a new position is the right way to start. Please review the <a href="{% url 'ietf.nomcom.views.configuration_help' year=nomcom.year %}">Configuration Hints</a>.</p>
{% endif %}
{% if positions %}
{% regroup positions by is_open as posgroups %}
{% for group in posgroups %}
<div class="panel panel-default">
<div class="panel-heading"><h3>{{ group.grouper| yesno:"Open Positions,Closed Positions"}}</h3></div>
<div class="panel-body">
{% for position in group.list %}
<h4>{{ position.name }}{% if position.is_iesg_position %} (IESG){% endif %}</h4>
{% if group.grouper %}
<dl class="dl-horizontal">
<dt>Accepting</dt>
<dd>
{% if position.accepting_nominations %}Nominations{% endif %}
{% if position.accepting_nominations and position.accepting_feedback %}and{% endif %}
{% if position.accepting_feedback %}Feedback{% endif %}
</dd>
</dl>
{% endif %}
<dl class="dl-horizontal">
<dt>Templates</dt>
<dd>
{% for template in position.get_templates %}
<a href="{% url 'ietf.nomcom.views.edit_template' year template.id %}">{{ template }}</a><br>
{% endfor %}
</dd>
{% if nomcom.group.state_id == 'active' %}
<dt>Actions</dt>
<dd>
<a class="btn btn-default" href="{% url 'ietf.nomcom.views.edit_position' year position.id %}">Edit</a>
<a class="btn btn-default" href="{% url 'ietf.nomcom.views.remove_position' year position.id %}">Remove</a>
</dd>
{% endif %}
</dl>
{% endfor %}
</div>
</div>
{% endfor %}
{% else %}
<p>There are no positions defined.</p>
{% endif %}
{% endblock nomcom_content %}