72 lines
2.7 KiB
HTML
72 lines
2.7 KiB
HTML
{% extends "base.html" %}
|
|
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
|
{% load origin static %}
|
|
{% load ietf_filters %}
|
|
{% block pagehead %}
|
|
<link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
|
|
{% endblock %}
|
|
{% block title %}Area directors{% endblock %}
|
|
{% block content %}
|
|
{% origin %}
|
|
<h1>Area Director Workload</h1>
|
|
{% if user|has_role:"Area Director,Secretariat" %}
|
|
<div class="alert alert-info my-3">
|
|
{{ delta.days }}-day trend indicators
|
|
are only shown to logged-in Area Directors.
|
|
</div>
|
|
{% endif %}
|
|
{% for group in workload %}
|
|
<h2 class="mt-5" id="{{ group.group_type|slugify }}">{{ group.group_type }} State Counts</h2>
|
|
<table class="table table-sm table-striped table-bordered tablesorter">
|
|
<thead class="wrap-anywhere">
|
|
<tr>
|
|
<th scope="col" data-sort="name">Area Director</th>
|
|
{% for g, desc, up_is_good in group.group_names %}
|
|
<th scope="col" class="col-1" title="{{ desc }}"
|
|
data-sort="{{ g|slugify }}-num">
|
|
{{ g|split:'/'|join:'/<wbr>' }}
|
|
</th>
|
|
{% endfor %}
|
|
</tr>
|
|
</thead>
|
|
<tbody class="table-group-divider">
|
|
{% for ad, ad_data in group.counts %}
|
|
<tr>
|
|
<td>
|
|
<a href="{{ ad.dashboard }}">{{ ad.name }}</a>
|
|
</td>
|
|
{% for label, count, prev, docs_delta in ad_data %}
|
|
<td class="col-1"
|
|
id="{{ group.group_type|slugify }}-{{ ad.full_name_as_key|slugify }}-{{ label.0|slugify }}">
|
|
{% include 'doc/ad_count.html' %}
|
|
</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot class="table-group-divider">
|
|
<tr>
|
|
<th scope="row">Sum</th>
|
|
{% for label, count, prev in group.sums %}
|
|
<td>
|
|
{% include 'doc/ad_count.html' %}
|
|
</td>
|
|
{% endfor %}
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
{% endfor %}
|
|
{% endblock %}
|
|
{% block js %}
|
|
<script src="{% static "ietf/js/list.js" %}"></script>
|
|
<script>
|
|
$(document)
|
|
.ready(function () {
|
|
$("[data-bs-toggle='popover']")
|
|
.popover({
|
|
html: true,
|
|
trigger: "hover focus click"
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %} |