forked from gergely/calendar-social
Add a field macro to the event creation form
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{% extends 'settings-base.html' %}
|
||||
{% from '_macros.html' import field %}
|
||||
|
||||
{% block content %}
|
||||
{{ super() }}
|
||||
@@ -9,10 +10,7 @@
|
||||
{{ form.errors }}
|
||||
<br>
|
||||
|
||||
{{ form.timezone.errors }}
|
||||
{{ form.timezone.label }}
|
||||
{{ form.timezone}}
|
||||
<br>
|
||||
{{ field(form.timezone) }}
|
||||
|
||||
<button type="submit">{% trans %}Save{% endtrans %}</button>
|
||||
<a href="{{ url_for('hello') }}">Cancel</a>
|
||||
|
Reference in New Issue
Block a user