calendar-social/calsocial/templates/event-edit.html
Gergely Polonkai a862e6ca5d Add the Event.visibility field
This shows if the event is visible to anyone or just people who are invited.

The calendar view already respects this flag.
2018-07-16 12:12:35 +02:00

28 lines
711 B
HTML

{% 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 %}