{% extends 'base.html' %} {% from '_macros.html' import field %} {% block content %} <h2>Create event</h2> <form method="post" class="ui form"> {{ form.hidden_tag() }} {% if form.errors %} {% for error in form.errors %} {{ error }} {% endfor %} <br> {% endif %} {{ field(form.title) }} {{ field(form.time_zone) }} {{ field(form.start_time) }} {{ field(form.end_time) }} {{ field(form.all_day) }} {{ field(form.description) }} {{ field(form.visibility) }} <button type="submit" class="ui primary button">{% trans %}Save{% endtrans %}</button> <a href="{{ url_for('hello') }}" class="ui button">Cancel</a> </form> {% endblock content %}