{% extends "user_groups/base.html" %}
{% load user_group_tags %}
{% load i18n %}

{% block title %}Groups{% endblock %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/iconrow.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/usergroups.css">
{% endblock %}

{% block body %}
<div class="t">

{% user_group_nav request.user group %}
<div class="quick-options">
		{% user_group_options request.user group %} 
	</div>

<h1>{% if groupmembership %}{% blocktrans with groupmembership.member.get_absolute_url as urlz and groupmembership.member as group_member %}Edit Member <a href="{{ urlz }}">{{ group_member }}</a> in Group{% endblocktrans %}{% else %}{% blocktrans %}Add Member to Group{% endblocktrans %}{% endif %} </h1>
<div class="clear-right"></div>
 <h2>{% trans "Group:" %} <a href="{{ group.get_absolute_url }}">{{ group.label }}</a></h2>

<form method="post" action=".">{% csrf_token %}

{{ form.as_p }}

<div class="submit-row">
		<input type="submit" value="Save" class="default" />
	</div>
</form>

</div>
{% endblock %}
