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

{% block content %}
	<h2>Create new gallery</h2>
	<div class="gallery-new">
	{% if user.is_authenticated %}
		<p class="form-message">{{ msg }}</p>
		{% if state %}
		{% else %}
			<form class="form" action="{% url create_empty_gallery %}" method="post">
				{% csrf_token %}
				{{ form.as_p }}
				<input type="submit" value="Submit" />
			</form>
		{% endif %}
	{% endif%}
	</div>
{% endblock %}
