|
@@ -5,13 +5,30 @@
|
|
{% block title %}{% trans "Create Event" %}{% endblock %}
|
|
{% block title %}{% trans "Create Event" %}{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
{% block content %}
|
|
-<h1>Create Event</h1>
|
|
|
|
-<form action="{% url 'create-event' %}" method="post">
|
|
|
|
- {% csrf_token %}
|
|
|
|
- <table>
|
|
|
|
- {{ form.as_table }}
|
|
|
|
- </table>
|
|
|
|
- {{ form.non_field_errors }}
|
|
|
|
- <input type="submit" value="Create Event">
|
|
|
|
-</form>
|
|
|
|
-{% endblock %}
|
|
|
|
|
|
+<div class="outline">
|
|
|
|
+ <h1>Create Event</h1>
|
|
|
|
+ <form action="{% url 'create-event' %}" method="post">
|
|
|
|
+ {% csrf_token %}
|
|
|
|
+ <div class="grid-container">
|
|
|
|
+ {% for field in form %}
|
|
|
|
+ <div class="{% cycle 'event_name' 'event_dates' 'start_time' 'end_time' %}">
|
|
|
|
+ <p>
|
|
|
|
+ {{ field.label_tag }}<br>
|
|
|
|
+ {{ field }}
|
|
|
|
+ {% if field.help_text %}
|
|
|
|
+ <small>{{ field.help_text }}</small>
|
|
|
|
+ {% endif %}
|
|
|
|
+ {% if field.errors %}
|
|
|
|
+ <small>{{ field.errors }}</small>
|
|
|
|
+ {% endif %}
|
|
|
|
+ </p>
|
|
|
|
+ </div>
|
|
|
|
+ {% endfor %}
|
|
|
|
+ </div>
|
|
|
|
+ {{ form.non_field_errors }}
|
|
|
|
+ <input type="submit" value="Create Event">
|
|
|
|
+ </form>
|
|
|
|
+</div>
|
|
|
|
+{% endblock %}
|
|
|
|
+
|
|
|
|
+
|