datatracker/ietf/templates/doc/ballot_popup.html
Robert Sparks afac1f8f19
feat: enable editorial stream adoption and balloting (#5011)
* feat: enable editorial stream adoption and balloting

* fix: bring tests into line with refactor

* feat: force intended_std_level to Informational when adopting into a non-ietf stream.

* fix: improve blocking position labels and email content

* fix: simplify pointer to group on doc main page for rswg docs

* fix: recover from merge typos

* fix: correct defer and clear ballot behavior

* fix: improve publication request access logic

* fix: clean up broken editorial state

* fix: adjust test to match migrations
2023-01-31 13:50:51 -06:00

52 lines
2.2 KiB
HTML

{# Copyright The IETF Trust 2015-2022, All Rights Reserved #}
{% load origin %}
{% origin %}
{% load ietf_filters %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Ballot for {{ doc.name }}</title>
</head>
<body>
<div class="modal-header">
<p class="h5 modal-title" id="modal-title-{{ ballot_id }}">Ballot for {{ doc.name }}</p>
<button type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"></button>
{% if deferred %}
<p>
Ballot deferred by {{ deferred.by }} on {{ deferred.time|date:"Y-m-d" }}.
</p>
{% endif %}
</div>
<div class="modal-body">{{ ballot_content }}</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
{% if editable and user|has_role:"Area Director,Secretariat,IRSG Member,RSAB Member" %}
{% if user|can_ballot:doc %}
<a class="btn btn-primary"
href="{% url "ietf.doc.views_ballot.edit_position" name=doc.name ballot_id=ballot_id %}">
Edit position
</a>
{% endif %}
{% if user|can_defer:doc %}
{% if deferred %}
<a class="btn btn-primary"
href="{% url 'ietf.doc.views_ballot.undefer_ballot' name=doc.name %}">Undefer ballot</a>
{% else %}
<a class="btn btn-warning"
href="{% url 'ietf.doc.views_ballot.defer_ballot' name=doc.name %}">Defer ballot</a>
{% endif %}
{% if user|has_role:"Secretariat" %}
<a class="btn btn-danger"
href="{% url 'ietf.doc.views_ballot.clear_ballot' name=doc.name ballot_type_slug=ballot_type_slug %}">
Clear ballot
</a>
{% endif %}
{% endif %}
{% endif %}
</div>
</body>
</html>