datatracker/ietf/templates/meeting/requests.html
Ole Laursen c72d465438 Summary: Insert anchor-target hack to try to alleviate the problem of
the top menu covering the anchor target, also increase the width at
which content navigation menus disappear
 - Legacy-Id: 9093
2015-02-17 15:17:05 +00:00

119 lines
3.7 KiB
HTML

{% extends "ietf.html" %}
{% load ietf_filters %}
{% block bodyAttrs %}data-spy="scroll" data-target="#affix"{% endblock %}
{% block title %}IETF {{ meeting.num }} timeslot requests{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-10">
<h1 class="title">IETF {{ meeting.number }} timeslot requests<br>
<small>{{meeting.city}}, {{meeting.country}} -- {{meeting.venue_name}}</small>
</h1>
{% regroup sessions by group.parent as area_sessions %}
{% for area in area_sessions %}
<h2 class="anchor-target" id="{{area.grouper.acronym}}">
{{area.grouper.acronym|upper}} <small>{{area.grouper.name}}</small>
</h2>
<p class="alert alert-info">
<b>No timeslot request received for:</b>
{% for group in groups_not_meeting %}
{% if group.parent.id == area.grouper.id %}
{{ group.acronym }}
{% endif %}
{% endfor %}
</p>
<table class="table table-condensed table-striped">
<thead>
<tr>
<th>Group</th>
<th>Length</th>
<th>Size</th>
<th>Requester</th>
<th>AD</th>
<th>Conflicts</th>
<th>Special requests</th>
</tr>
</thead>
<tbody>
{% for session in area.list %}
{% ifchanged %}
<tr><th class="warning" colspan="7">{{session.status|capfirst}}</th></tr>
{% endifchanged %}
<tr>
<th>
<a href="{% url "ietf.secr.sreq.views.edit_mtg" num=meeting.number acronym=session.group.acronym %}">
{{session.group.acronym}}
</a>
</th>
<td class="text-right">
{% if session.requested_duration %}
{{session.requested_duration|stringformat:"s"|slice:"0:4"}}
{% endif %}
</td>
<td class="text-right">{{session.attendees|default:""}}</td>
<td>
<a href="mailto:{{session.requested_by.email_address}}">{{session.requested_by}}</a>
</td>
<td>
{% if session.group.ad_role %}
<a href="mailto:{{ session.group.ad_role.email.address }}">{{ session.group.ad_role.person }}</a>
{% endif %}
</td>
<td>
{% if session.requested_duration %}
{% regroup session.constraints by name as prioritized_constraints %}
{% for grouped_constraint in prioritized_constraints %}
{% if not forloop.first %}
{% ifchanged grouped_constraint.grouper %}<br>{% endifchanged %}
{% endif %}
{% for constraint in grouped_constraint.list %}
{% if constraint.target.parent.id == constraint.source.parent.id and not constraint.person %}
<b>
{% endif %}
{% if constraint.name.slug == "bethere" %}
{{constraint.brief_display|clean_whitespace}}{% if not forloop.last %}, {% endif %}
{% else %}
<span class="{% if constraint.name.slug == "conflict" %}text-danger{% elif constraint.name.slug == "conflic2" %}text-warning{% elif constraint.name.slug == "conflic3" %}text-success{% else %}{{constraint.name.slug}}{% endif %}">
{{constraint.brief_display}}
</span>
{% endif %}
{% if constraint.target.parent.id == constraint.source.parent.id and not constraint.person %}
</b>
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
</td>
<td>
{% if session.comments %}{{session.comments|linebreaksbr}}{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
</div>
<div class="col-md-2 hidden-print bs-docs-sidebar" id="affix">
<ul class="nav nav-pills nav-stacked small" data-spy="affix">
{% for area in area_sessions %}
<li><a href="#{{area.grouper.acronym}}">{{ area.grouper.acronym|upper }}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% endblock %}