{% extends "itsapp/base.html" %}

{% block content %}
	<h2>Groups</h2>
	<div class="group-new">
		{% if user.is_authenticated %}
			<p class="form-message">{{ msg }}</p>
			{% if state %}
			{% else %}
				<form class="form" action="{% url group_new %}" method="post" enctype="multipart/form-data">
					{% csrf_token %}
					{{ form.as_p }}
					<input type="submit" value="Submit" />
				</form>
			{% endif %}
		{% else %}
			<a href="/login">login</a>
		{% endif %}
	</div>
{% endblock %}