68 lines
2.1 KiB
HTML
68 lines
2.1 KiB
HTML
{% extends "base_site.html" %}
|
|
{% load staticfiles %}
|
|
|
|
{% block title %}Groups - People{% endblock %}
|
|
|
|
{% block extrahead %}{{ block.super }}
|
|
<link rel="stylesheet" type="text/css" href="{% static 'secr/css/jquery-ui-1.11.4.custom.css' %}" />
|
|
<script type="text/javascript" src="{% static 'secr/js/jquery-ui-1.11.4.custom.min.js' %}"></script>
|
|
<script type="text/javascript" src="{% static 'secr/js/utils.js' %}"></script>
|
|
{% endblock %}
|
|
|
|
{% block breadcrumbs %}{{ block.super }}
|
|
» <a href="../../">Groups</a>
|
|
» <a href="../">{{ group.acronym }}</a>
|
|
» People
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="module">
|
|
<h2>People</h2>
|
|
<table class="full-width">
|
|
<thead>
|
|
<tr>
|
|
<th>Role</th>
|
|
<th>Name</th>
|
|
<th>Email</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for role in group.role_set.all %}
|
|
<tr class="{% cycle 'row1' 'row2' %}">
|
|
<td>{{ role.name }}</td>
|
|
<td>{{ role.person }}</td>
|
|
<td>{{ role.email }}</td>
|
|
<td><a href="{% url 'ietf.secr.groups.views.delete_role' acronym=group.acronym id=role.id %}">Delete</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="inline-related">
|
|
<!-- <hr><br> -->
|
|
<h3>Add Role</h3>
|
|
<form id="groups-people" action="" method="post">{% csrf_token %}
|
|
{{ form.non_field_errors }}
|
|
<table class="full-width">
|
|
<tr>
|
|
<td>{{ form.name.errors }}{{ form.name }}</td>
|
|
<td>{{ form.person.errors }}{{ form.person }}{% if form.person.help_text %}<br>{{ form.person.help_text }}{% endif %}</td>
|
|
<td>{{ form.email.errors }}{{ form.email }}{% if form.email.help_text %}<br>{{ form.email.help_text }}{% endif %}</td>
|
|
<td><input type="submit" name="submit" value="Add" /></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div> <!-- inline-related -->
|
|
|
|
<div class="button-group">
|
|
<ul>
|
|
<li><button onclick="window.location='../'">Back</button></li>
|
|
</ul>
|
|
</div> <!-- button-group -->
|
|
|
|
</div> <!-- module -->
|
|
|
|
{% endblock %}
|