datatracker/ietf/templates/nomcom/list_positions.html

57 lines
1.9 KiB
HTML

{% 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></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 }}</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 %}