103 lines
5.5 KiB
HTML
103 lines
5.5 KiB
HTML
{# bs5ok #}
|
|
{% extends base_template %}
|
|
{# Copyright The IETF Trust 2015-2020, All Rights Reserved #}
|
|
{% load origin %}
|
|
{% load django_bootstrap5 person_filters %}
|
|
{% load nomcom_tags %}
|
|
{% block subtitle %}- Feedback{% endblock %}
|
|
{% block nomcom_content %}
|
|
{% origin %}
|
|
<p id="instructions" class="alert alert-info my-3">
|
|
{% if nomcom.group.state_id == 'conclude' %}
|
|
Feedback to this NomCom is closed.
|
|
{% else %}
|
|
Select a nominee from the list of nominees on the right to obtain a new feedback form.
|
|
{% endif %}
|
|
</p>
|
|
{% if nomcom|has_publickey %}
|
|
<div class="row">
|
|
<div id="nominees" class="col-sm-2 order-last">
|
|
<h2 class="navskip mt-4">Nominees</h2>
|
|
<p>
|
|
A number after a name indicates
|
|
that you have given comments on this nominee
|
|
earlier. Position the mouse pointer over
|
|
the button for more information about this
|
|
nominee.
|
|
</p>
|
|
{% for p in positions %}
|
|
{% if p.nomineeposition_set.accepted.not_duplicated %}
|
|
<h3 class="navskip mt-3">{{ p.name }}</h3>
|
|
<div class="d-grid gap-3">
|
|
{% for np in p.nomineeposition_set.accepted.not_duplicated %}
|
|
<a class="btn btn-primary position-relative"
|
|
{% if nomcom.group.state_id != 'conclude' %}href="?nominee={{ np.nominee.id }}&position={{ np.position.id }}"{% endif %}
|
|
title="{% if count %}{{ count }} earlier comment{{ count|pluralize }} from you {% else %}You have not yet provided feedback {% endif %} on {{ np.nominee.email.address }} as {{ np.position }}">
|
|
{{ np.nominee.name }}
|
|
{% with count=counts|lookup:np.position.id|lookup:np.nominee.id %}
|
|
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">
|
|
{{ count | default:"0" }}
|
|
</span>
|
|
{% endwith %}
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
<h2 class="navskip mt-4">Topics</h2>
|
|
<div class="d-grid gap-3">
|
|
{% for t in topics %}
|
|
<a class="btn btn-primary position-relative"
|
|
{% if nomcom.group.state_id != 'conclude' %}href="?topic={{ t.id }}"{% endif %}
|
|
title="{% if count %}{{ count }} earlier comment{{ count|pluralize }} from you {% else %}You have not yet provided feedback {% endif %} on {{ t.subject }}">
|
|
{{ t.subject }}
|
|
{% with count=topic_counts|lookup:t.id %}
|
|
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">
|
|
{{ count | default:"0" }}
|
|
</span>
|
|
{% endwith %}
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-10">
|
|
{% if form %}
|
|
{% if form.position %}
|
|
{% if nomcom.show_nominee_pictures and form.nominee.email.person.photo_thumb %}
|
|
<div class="float-end mt-4">{% include "person/photo.html" with person=form.nominee.person %}</div>
|
|
{% endif %}
|
|
<h2 class="navskip mt-4">
|
|
Provide feedback
|
|
<br>
|
|
<small class="text-muted">{{ form.nominee.email.person.name }} for {{ form.position.name }}</small>
|
|
</h2>
|
|
<p class="mt-3">
|
|
Provide feedback about {% person_link form.nominee.person %}
|
|
for the <b>{{ form.position.name }}</b> position.
|
|
</p>
|
|
{% elif form.topic %}
|
|
<h2 >
|
|
Provide feedback
|
|
<br>
|
|
<small class="text-muted">{{ form.topic.subject }}</small>
|
|
</h2>
|
|
<div class="card my-3">
|
|
<div class="card-header">Description: {{ form.topic.subject }}</div>
|
|
<div class="card-body">{{ form.topic.get_description|safe }}</div>
|
|
</div>
|
|
{% endif %}
|
|
<p>
|
|
This feedback will only be available to
|
|
<a href="{% url 'ietf.nomcom.views.year_index' year=year %}">NomCom {{ year }}</a>.
|
|
You may have the feedback mailed back to you by selecting the option below.
|
|
</p>
|
|
<form id="feedbackform" method="post">
|
|
{% csrf_token %}
|
|
{% bootstrap_form form %}
|
|
<input class="btn btn-primary" type="submit" value="Save" name="save">
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %} |