forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview_feedback_nominee.html
More file actions
65 lines (56 loc) · 2.44 KB
/
view_feedback_nominee.html
File metadata and controls
65 lines (56 loc) · 2.44 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
57
58
59
60
61
62
63
64
65
{% extends "nomcom/nomcom_private_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load nomcom_tags %}
{% block subtitle %} - View feedback about {{ nominee.email.person.name }}{% endblock %}
{% block nomcom_content %}
{% origin %}
<h2>Feedback about {{ nominee }} </h2>
<ul class="nav nav-tabs" role="tablist">
{% for ft in feedback_types %}
<li {% if forloop.first %}class="active"{% endif %}><a href="#{{ ft.slug }}" role="tab" data-toggle="tab">{{ ft.name }}</a></li>
{% endfor %}
</ul>
<div class="tab-content">
{% for ft in feedback_types %}
<div class="tab-pane {% if forloop.first %}active{% endif %}" id="{{ ft.slug }}">
{% for feedback in nominee.feedback_set.all %}
{% if feedback.type.slug == ft.slug %}
{% if forloop.first %}<p></p>{% else %}<hr>{% endif %}
<dl class="dl-horizontal">
<dt>{% if feedback.time > last_seen_time %}<span class="label label-success">New</span>{% endif %}From</dt>
<dd>{{ feedback.author|formatted_email|default:"Anonymous" }}
{% if ft.slug == "nomina" and feedback.nomination_set.first.share_nominator %}
<span class="bg-info"> OK to share name with nominee</span>
{% endif %}
</dd>
<dt>Date</dt>
<dd>{{ feedback.time|date:"Y-m-d" }}</dd>
{% if ft.slug == "nomina" %}
{% for fn in feedback.nomination_set.all %}
{% if fn.candidate_name %}
<dt>Nominee</dt>
<dd>{{ fn.candidate_name }}</dd>
{% endif %}
{% if fn.candidate_phone %}
<dt>Nominee phone</dt>
<dd>{{ fn.candidate_phone }}</dd>
{% endif %}
{% endfor %}
{% endif %}
<dt>Positions</dt>
<dd>{{ feedback.positions.all|join:"," }}</dd>
{% if feedback.subject %}
<dt>Subject</dt>
<dd>{{ feedback.subject }}</dd>
{% endif %}
<dt>Body</dt>
<dd class="pasted">{% decrypt feedback.comments request year 1 %}</dd>
</dl>
{% endif %}
{% endfor %}
</div>
{% endfor %}
</div>
<a class="btn btn-default" href="{% url 'ietf.nomcom.views.view_feedback' year %}">Back</a>
{% endblock %}