datatracker/ietf/templates/iesg/agenda_documents.html
Robert Sparks cb25831a2a
feat: total ids, pre-pubreq counts and pages left to ballot on on the AD dashboard (#7813)
* feat: Total ids on IESG dashboard

* IESG I-D code comments

* Using Robert's query forIESG dashboard total_ids

* Hiding columns in later IESG Dashboard tables

* Changing IESG dashboard var name to match column table

* Updating IESG pre_pubreqquery

* IESG dashboard prepub req safeParser and graphs

* IESG dashboard fixing Playwright API usage

* IESG dashboard fixing Playwright API usage (2)

* Updating .gitignore for /geckodriver.log

* IESG ad test title

* feat: pages left to ballot on [WIP]

* Adding geckodriver.log to gitignore

* [WIP] pages left to ballot on

* integrating pages left to ballot on WIP

* Tests for ad pages remaining

* Setting states to test ballot items

* refactor ad_pages_left_to_ballot_on count logic

* WIP tests for pages left to ballot on

* chore: remove whitespace change

* fix: look into the BallotPositionDocEventObject

* chore: remove prints

* fix: restructure test

* style: fix js code styling

* fix: only show graph for ADs/Secretariat

---------

Co-authored-by: Matthew Holloway <Matthew Holloway>
Co-authored-by: holloway <matthew@holloway.co.nz>
Co-authored-by: Nicolas Giard <github@ngpixel.com>
Co-authored-by: Matthew Holloway <matthew@staff.ietf.org>
2024-09-05 10:43:43 -05:00

78 lines
3.7 KiB
HTML

{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin static %}
{% load ballot_icon %}
{% load ietf_filters %}
{% load django_bootstrap5 %}
{% block pagehead %}
<link rel="alternate" type="application/atom+xml" href="/feed/iesg-agenda/">
<link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
{% endblock %}
{% block title %}Documents on future IESG telechat agendas{% endblock %}
{% block content %}
{% origin %}
<h1>Documents on future IESG telechat agendas</h1>
{% include "iesg/nav.html" with active="agenda_documents" %}
{% if user|has_role:"Secretariat" %}
<form class="form-inline" method="post">
{% csrf_token %}
{% endif %}
{% for t in telechats %}
<h2>
IESG telechat {{ t.date }}
<br>
<small class="text-body-secondary">
{{ t.pages }} page{{ t.pages|pluralize }}
{% if t.ad_pages_left_to_ballot_on %}
({{ t.ad_pages_left_to_ballot_on }} pages left to ballot on)
{% endif %}
</small>
</h2>
<div class="buttonlist">
<a class="btn btn-primary" role="button" href="{% url 'ietf.iesg.views.agenda' %}">
<i class="bi bi-list"></i>
Full IESG agenda
</a>
<a class="btn btn-primary"
role="button"
href="{% url 'ietf.iesg.views.telechat_docs_tarfile' date=t.date %}">
<i class="bi bi-download"></i>
Download documents
</a>
</div>
{% for num, section in t.sections %}
{% if "docs" not in section or section.docs %}
{% if num|sectionlevel == 1 %}<h3 class="mt-3">{{ num }}. {{ section.title|safe }}</h3>{% endif %}
{% if num|sectionlevel == 2 %}<h4 class="mt-3">{{ num }} {{ section.title|safe }}</h4>{% endif %}
{% if num|sectionlevel == 3 %}<h5 class="mt-3">{{ num }} {{ section.title|safe }}</h5>{% endif %}
{% endif %}
{% if "docs" in section and section.docs %}
<table class="table table-sm {% if not user|has_role:'Area Director' %}table-striped{% endif %} tablesorter">
<thead>
<tr>
<th scope="col"></th>
<th scope="col" data-sort="document">Document</th>
<th scope="col" data-sort="date">Date</th>
<th scope="col" data-sort="status">Status</th>
<th scope="col" class="d-none d-sm-table-cell" data-sort="ipr">IPR</th>
<th scope="col" class="d-none d-sm-table-cell" data-sort="ad">AD/Shepherd</th>
</tr>
</thead>
<tbody>
{% for doc in section.docs %}
{% include "doc/search/search_result_row.html" with color_ad_position=True show_ad_and_shepherd=True %}
{% endfor %}
</tbody>
</table>
{% endif %}
{% endfor %}
<hr>
{% endfor %}
{% if user|has_role:"Secretariat" %}
{% bootstrap_button button_type="submit" content="Save reschedules" title="Save reschedule changes done with the drop-down boxes below" %}
</form>
{% endif %}
{% endblock %}
{% block js %}
<script src="{% static "ietf/js/list.js" %}"></script>
{% endblock %}