datatracker/ietf/templates/nomcom/view_feedback.html
Henrik Levkowetz aa5e61d958 Updated all urlpatterns to use ietf.utils.urls.url() instead of django's,
in order to autogenerate dotted path url pattern names.  Updated a number
of url reverses to use dotted path, and removed explicit url pattern names
as needed.

Changed some imports to prevent import of ietf.urls before django
initialization was complete.


Changed 3 cases of form classes being curried to functions; django 1.10
didn't accept that.

Started converting old-style middleware classes to new-style middleware
functions (incomplete).

Tweaked a nomcom decorator to preserve function names and attributes, like
a good decorator should.

Replaced the removed django templatetag 'removetags' with our own version
which uses bleach, and does sanitizing in addition to removing explicitly
mentionied html tags.

Rewrote the filename argument handling in a management command which had
broken with the upgrade.
 - Legacy-Id: 12818
2017-02-11 14:43:01 +00:00

81 lines
2.5 KiB
HTML

{% extends "nomcom/nomcom_private_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load nomcom_tags %}
{% block subtitle %} - View feedback {% endblock %}
{% block nomcom_content %}
{% origin %}
<h2>Feedback related to nominees</h2>
{% regroup nominees_feedback by nominee.staterank as stateranked_nominees %}
{% for staterank in stateranked_nominees %}
<div class="panel panel-default">
<div class="panel-heading">
{% if staterank.grouper == 0 %}
Accepted nomination for at least one position
{% elif staterank.grouper == 1 %}
Pending for at least one position and has not accepted any nomination
{% else %}
Declined each nominated position
{% endif %}
</div>
<div class="panel-body">
<table class="table table-condensed table-striped">
<thead>
<tr>
<th class="col-sm-9">Nominee</th>
{% for ft in feedback_types %}
<th class="col-sm-1 text-center">{{ ft.name }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for fb_dict in staterank.list %}
<tr>
<td>
<a href="{% url 'ietf.nomcom.views.view_feedback_nominee' year=year nominee_id=fb_dict.nominee.id %}">{{ fb_dict.nominee.name }}</a>
<span class="hidden-xs">&lt;{{fb_dict.nominee.email.address}}&gt;</span>
</td>
{% for fbtype_name, fbtype_count, fbtype_newflag in fb_dict.feedback %}
<td class="text-right">
{% if fbtype_newflag %}<span class="label label-success">New</span>{% endif %}
{{ fbtype_count }}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endfor %}
{% if independent_feedback_types %}
<h2>Feedback not related to Nominees</h2>
<table class="table table-condensed table-striped">
<thead>
<tr>
<th></th>
{% for ft in independent_feedback_types %}
<th>{{ ft.name }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="{% url "nomcom_view_feedback_unrelated" year %}">View feedback not related to nominees</a>
</td>
{% for count in independent_feedback %}
<td>{{ count }}</td>
{% endfor %}
</tr>
</tbody>
</table>
{% endif %}
{% endblock %}