* chore: Remove unused jquery-ui Two templates under `secr` included it, but didn't seem to use it for anything. * Run `yarn` after removal
60 lines
2.3 KiB
HTML
60 lines
2.3 KiB
HTML
{% extends "base_site.html" %}
|
|
{% load staticfiles %}
|
|
{% block title %}Areas - People{% endblock %}
|
|
|
|
{% block extrahead %}{{ block.super }}
|
|
<script src="{% static 'secr/js/utils.js' %}"></script>
|
|
{% endblock %}
|
|
|
|
{% block breadcrumbs %}{{ block.super }}
|
|
» <a href="../../">Areas</a>
|
|
» <a href="../">{{ area.acronym }}</a>
|
|
» People
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="module">
|
|
<h2>Area Directors ({{ area.acronym }})</h2>
|
|
<table class="center">
|
|
{% for director in directors %}
|
|
<form action="modify/" method="post">{% csrf_token %}
|
|
<input type="hidden" name="tag" value="{{ director.person.id }}">
|
|
<tr>
|
|
<td id="id-ad-name"><a href="#">{{ director.person.name }}</a></td>
|
|
<td>{% if director.name.slug == "ad" %}
|
|
Voting Enabled
|
|
{% else %}
|
|
<button type="submit" name="submit" value="Enable Voting">Enable Voting</button></td>
|
|
{% endif %}
|
|
<td><button type="submit" name="submit" value="Retire">Retire</button></td>
|
|
</tr>
|
|
</form>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
<div class="inline-related">
|
|
<h3><b>Add new Director</b></h3>
|
|
<p>
|
|
<form action="." method="post">{% csrf_token %}
|
|
<table class="center">
|
|
<tbody>
|
|
<!-- [html-validate-disable-block wcag/h63 -- FIXME: as_table renders without scope] -->
|
|
{{ form.as_table }}
|
|
<tr>
|
|
<td></td>
|
|
<td><button type="submit" name="submit" value="Add">Add</button></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
</div> <!-- iniline-related -->
|
|
|
|
<div class="button-group">
|
|
<ul>
|
|
<li><button type="button" onclick="history.go(-1);return true">Back</button></li>
|
|
</ul>
|
|
</div> <!-- button-group -->
|
|
</div> <!-- module -->
|
|
|
|
{% endblock %} |