{% extends 'base.html' %}

{% block body %}
<form action="{{ url_for("group.show", gid=group.gid) }}" method="POST">
<div class="align-self-center">
	<div class="form-group col">
		<label for="group-gid">{{_("GID")}}</label>
		<input type="number" class="form-control" id="group-gid" name="gid" value="{{ group.gid }}" readonly>
	</div>
	<div class="form-group col">
		<label for="group-loginname">{{_("Name")}}</label>
		<input type="text" class="form-control" id="group-loginname" name="loginname" value="{{ group.name }}" readonly>
	</div>
	<div class="col"> 
		<span>{{_("Members")}}:</span>
		<ul class="row">
		{% for member in group.members|sort(attribute='loginname') %}
			<li class="col-12 col-xs-6 col-sm-4 col-md-3 col-lg-2"><a href="{{ url_for("user.show", uid=member.uid) }}">{{ member.loginname }}</a></li>
		{% endfor %}
		</ul>
	</div>
</div>
</form>
{% endblock %}
