2018-06-30 04:44:45 +00:00
|
|
|
{% extends 'base.html' %}
|
2018-07-13 09:22:28 +00:00
|
|
|
{% from '_macros.html' import field %}
|
2018-06-30 04:44:45 +00:00
|
|
|
|
|
|
|
{% block content %}
|
2018-07-13 09:22:28 +00:00
|
|
|
<h2>Create event</h2>
|
2018-07-13 08:19:37 +00:00
|
|
|
<form method="post" class="ui form">
|
2018-06-30 04:44:45 +00:00
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
|
2018-07-13 09:22:28 +00:00
|
|
|
{% if form.errors %}
|
|
|
|
{% for error in form.errors %}
|
|
|
|
{{ error }}
|
|
|
|
{% endfor %}
|
2018-06-30 04:44:45 +00:00
|
|
|
<br>
|
2018-07-13 09:22:28 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{{ field(form.title) }}
|
|
|
|
{{ field(form.time_zone) }}
|
|
|
|
{{ field(form.start_time) }}
|
|
|
|
{{ field(form.end_time) }}
|
|
|
|
{{ field(form.all_day) }}
|
|
|
|
{{ field(form.description) }}
|
2018-07-16 10:12:35 +00:00
|
|
|
{{ field(form.visibility) }}
|
2018-06-30 04:44:45 +00:00
|
|
|
|
2018-07-13 08:19:37 +00:00
|
|
|
<button type="submit" class="ui primary button">{% trans %}Save{% endtrans %}</button>
|
|
|
|
<a href="{{ url_for('hello') }}" class="ui button">Cancel</a>
|
2018-06-30 04:44:45 +00:00
|
|
|
</form>
|
|
|
|
{% endblock content %}
|