create-event.html 955 B

1234567891011121314151617181920212223242526272829303132333435
  1. {% extends "zitap/index.html" %}
  2. {% load static %}
  3. {% load i18n %}
  4. {% block title %}{% trans "Create Event" %}{% endblock %}
  5. {% block content %}
  6. <div class="outline">
  7. <h1>Create Event</h1>
  8. <form action="{% url 'create-event' %}" method="post">
  9. {% csrf_token %}
  10. <div class="grid-container">
  11. {% for field in form %}
  12. <div class="{{ field.name }}">
  13. <p>
  14. {{ field.label_tag }}<br>
  15. {{ field }}
  16. {% if field.help_text %}
  17. <small>{{ field.help_text }}</small>
  18. {% endif %}
  19. {% if field.errors %}
  20. <small>{{ field.errors }}</small>
  21. {% endif %}
  22. </p>
  23. </div>
  24. {% endfor %}
  25. </div>
  26. {{ form.non_field_errors }}
  27. <input type="submit" value="Create Event">
  28. </form>
  29. </div>
  30. <script type="text/javascript" src="{% static 'zitap/js/mouse-drag.js' %}"></script>
  31. {% endblock %}