datatracker/ietf/secr/templates/telechat/doc.html
2022-02-01 16:11:34 +00:00

101 lines
4.3 KiB
HTML

{% extends "telechat/base_telechat.html" %}
{% load ietf_filters %}
{% block breadcrumbs %}{{ block.super }}
» {{ date }}
{% endblock %}
{% block subsection %}
<div id="telechat-content">
{% if document %}
{% if not nav_start %}<a href="./previous/">&laquo; Previous</a>{% endif %}
{% if not nav_end %}<span class="right-nav"><a href="./next/">Next &raquo;</a></span>{% endif %}
<br />
<h3>
{% for line in header %}
{{ line }}<br />
{% endfor %}
</h3>
<br />
<h3>{{ document.name }}-{{ document.rev }} ({{ document.intended_std_level }})</h3>
{% if conflictdoc %}References: <a href="{{ conflictdoc.get_absolute_url }}">{{ conflictdoc }}</a><br />{% endif %}
<a href="#writeup">Ballot Writeup</a><br />
Token: {{ document.ad.name }}<br />
{% if document.type_id == "draft" %}
Consensus: {{ document|consensus }}<br />
Has downref: {% if downrefs %}Yes{% else %}No{% endif %}<br />
{% endif %}
Number of Open Positions: {{ open_positions }}<br />
<br />
<div>
<form action="" method="post">{% csrf_token %}
{{ formset.management_form }}
<table id="telechat-positions-table">
<tr>
<th>Area Director</th>
{% for position in document.active_ballot.ballot_type.positions.all %}
<th>{{ position.name }}</th>
{% endfor %}
</tr>
{% for form in formset.forms %}
<tr{% if form.initial.position == 'norecord' or form.initial.position == None %} class="green-row"{% endif %}{% if form.initial.position == 'discuss' %} class="red-row"{% endif %}><td>{{ form.initial.name }}{{ form.name }}{{ form.id }}</td>
{% with form.position as field %}
{% for choice in field.field.choices %}
<td><input type="radio" {% if form.initial.position == choice.0 %}checked="checked" {% endif %}id="id_{{ field.html_name }}_{{ forloop.counter0 }}" value="{{ choice.0 }}" name="{{ field.html_name }}" /></td>
{% endfor %}
{% endwith %}
</tr>
{% endfor %}
</table>
<div class="telechat-button">
<ul><li><button type="submit" name="submit" value="update_ballot">Update Ballot</button></li></ul>
</div>
</form>
</div>
<hr /><br />
<form action="" method="post">{% csrf_token %}
<table>
{{ state_form.as_table }}
</table>
<div class="telechat-button">
<ul><li><button type="submit" name="submit" value="update_state">Update State</button></li></ul>
</div>
</form>
<hr /><br />
{% if document.type_id == "charter" %}
{% include "telechat/group.html" %}
<br /><hr /><br />
{% endif %}
<a name="writeup"><h2>Ballot Writeup</h2></a>
<pre>
{{ writeup }}
</pre>
{% if downrefs %}
<a name="downrefs"><h2>Downward References</h2></a>
{% for ref in downrefs %}
<p>Add {{ref.target.document.canonical_name}}
({{ref.target.document.std_level}} - {{ref.target.document.stream.desc}})
to downref registry.<br />
{% if not ref.target.document.std_level %}
+++ Warning: The standards level has not been set yet!!!<br />
{% endif %}
{% if not ref.target.document.stream %}
+++ Warning: document stream has not been set yet!!!<br />
{% endif %}
{% endfor %}</p>
{% endif %}
{% else %}
<h3>No Documents on the Agenda</h3>
{% endif %}
</div>
{% endblock %}