This adds a table to show the state of all nomcom positions, and lets the chair set or un-set multiple state flags at the same time. As a consequence, it moves the email templates to the "Edit position" form.
45 lines
1.2 KiB
HTML
45 lines
1.2 KiB
HTML
{% extends "nomcom/nomcom_private_base.html" %}
|
|
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
|
{% load origin %}
|
|
{% load static %}
|
|
{% block pagehead %}{{ form.media.css }}{% endblock %}
|
|
{% load django_bootstrap5 %}
|
|
{% block subtitle %}
|
|
-
|
|
{% if position %}
|
|
Edit
|
|
{% else %}
|
|
Add
|
|
{% endif %}
|
|
positions
|
|
{% endblock %}
|
|
{% block nomcom_content %}
|
|
{% origin %}
|
|
<h2>
|
|
{% if position %}
|
|
Edit
|
|
{% else %}
|
|
Add
|
|
{% endif %}
|
|
position
|
|
</h2>
|
|
<form method="post" class="my-3">
|
|
{% csrf_token %}
|
|
{% bootstrap_form form %}
|
|
<button class="btn btn-primary"
|
|
type="submit">
|
|
{% if position %}Save{% else %}Add{% endif %}</button>
|
|
<a class="btn btn-secondary float-end" href="../">Back</a>
|
|
</form>
|
|
{% if position.name %}
|
|
<h3>
|
|
Templates
|
|
</h3>
|
|
{% for template in position.get_templates %}
|
|
<a href="{% url 'ietf.nomcom.views.edit_template' year template.id %}">{{ template }}</a>
|
|
<br>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
{% block content_end %}{{ form.media.js }}{% endblock %}
|