52 lines
2.2 KiB
HTML
52 lines
2.2 KiB
HTML
{% extends "base.html" %}
|
|
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
|
{% load origin %}
|
|
|
|
{% load nomcom_tags %}
|
|
{% load ietf_filters %}
|
|
|
|
{% block title %}NomCom {{ year }}{% block subtitle %}{% endblock %}{% endblock %}
|
|
|
|
{% block content %}
|
|
{% origin %}
|
|
|
|
<h1>NomCom {{ year }} {% if nomcom.group.state_id == 'conclude' %}(Concluded){% endif %}</h1>
|
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
<li {% if selected == "index" %}class="active"{% endif %}><a href="{% url 'ietf.nomcom.views.year_index' year %}">Home</a></li>
|
|
{% if nomcom|has_publickey %}
|
|
<li {% if selected == "nominate" %}class="active"{% endif %}><a href="{% url 'ietf.nomcom.views.public_nominate' year %}">Nominate</a></li>
|
|
<li {% if selected == "feedback" %}class="active"{% endif %}><a href="{% url 'ietf.nomcom.views.public_feedback' year %}">Provide feedback</a></li>
|
|
{% endif %}
|
|
<li {% if selected == "requirements" %}class="active"{% endif %}><a href="{% url 'ietf.nomcom.views.requirements' year %}">Desired expertise</a></li>
|
|
<li {% if selected == "questionnaires" %}class="active"{% endif %}><a href="{% url 'ietf.nomcom.views.questionnaires' year %}">Questionnaires</a></li>
|
|
{% if user|is_chair_or_advisor:year or user|has_role:"Secretariat" %}
|
|
<li class="dropdown">
|
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Volunteers<span class="caret"></span></a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
<li {% if selected == "view_eligible" %}class="active"{% endif %}><a href="{% url 'ietf.nomcom.views.public_eligible' year %}">View Eligible</a></li>
|
|
<li {% if selected == "view_volunteers" %}class="active"{% endif %}><a href="{% url 'ietf.nomcom.views.public_volunteers' year %}">View Volunteers</a></li>
|
|
</ul>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
|
|
{% block nomcom_content %}
|
|
{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
<script>
|
|
// Javascript to enable link to tab
|
|
var url = document.location.toString();
|
|
if (url.match('#')) {
|
|
$('.nav-tabs a[href="#' + url.split('#')[1] + '"]').tab('show');
|
|
}
|
|
// Change hash for page-reload
|
|
$('.nav-tabs a').on('shown.bs.tab', function (e) {
|
|
window.location.hash = e.target.hash;
|
|
})
|
|
</script>
|
|
{% endblock %}
|