This shows if the event is visible to anyone or just people who are invited. The calendar view already respects this flag.
		
			
				
	
	
		
			28 lines
		
	
	
		
			711 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			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 %}
 |