{% extends "master.html" %}
{% from "_formhelper.html" import render_field_in_row %}
{% block title %}Users{% endblock %}
{%block tag %}admin{% endblock %}
{% block content %}
<h2>
<a href="{{ url_for('admin_groups') }}"> Progit Groups </a> >
{{ group.group_name }}
</h2>
<section class="add_users">
<h4>Add an user to this group</h4>
<form action="{{ url_for('.admin_group', group=group.group_name)
}}" method="post">
<input id="username" name="username" title="User name"/>
{{ form.csrf_token }}
<input type="submit" class="submit positive button" value="Add">
</form>
</section>
{% if users %}
<ul>
{% for user in users %}
<li>userid: {{ user.id }} :
<a href="{{ url_for('view_user', username=user.user) }}">
{{ user.user }}
</a>
</li>
{% endfor %}
</ul>
{% else %}
<p>No users found in this group</p>
{% endif %}
{% endblock %}