46 lines
1.2 KiB
HTML
Executable File
46 lines
1.2 KiB
HTML
Executable File
{% extends "generic/base.html" %}
|
|
<!-- {% load static from static %} -->
|
|
|
|
{% block css %}
|
|
{% endblock %}
|
|
{% block js %}
|
|
<!--<script type="text/javascript" src="/admin/jsi18n/"></script>-->
|
|
{{form.media}}
|
|
|
|
<script type="text/javascript">
|
|
</script>
|
|
|
|
<!-- {{ form.media }} -->
|
|
{% endblock %}
|
|
{% block content %}
|
|
{% if form.instance.id %}
|
|
<h2>Edit Group: {{userusergroup.name}}</h2>
|
|
{% else %}
|
|
<h2>Add New Group</h2>
|
|
{% endif %}
|
|
Use this form to create / edit a CID user group.
|
|
<form action="" method="post" enctype="multipart/form-data" id="condition-form">
|
|
{% csrf_token %}
|
|
|
|
<table>
|
|
{{ form.as_table }}
|
|
</table>
|
|
<input type="submit" class="submit-button" value="Submit" name="submit">
|
|
|
|
<h3>Users</h3>
|
|
|
|
<ul>
|
|
{% for user in userusergroup.users.all %}
|
|
<li>{{user}}</li>{% empty %}
|
|
<li>Group currently has no users.</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
{% comment %} {% if userusergroup.users.all %}
|
|
{{userusergroup.GetGroupUsers}}
|
|
{% else %}
|
|
No users currently added to group.
|
|
{% endif %} {% endcomment %}
|
|
|
|
</form>
|
|
{% endblock %} |