form.html (928B)
1 {% extends 'base.html' %} 2 3 {% block title %}Update Meeting{% endblock %} 4 5 {% block content %} 6 <section> 7 <a href="{{ url_for('meetings.update',meeting_id=meeting['meeting_id']) }}">back to meetings</a> 8 <h3>Update {{meeting['timestamp'].date() }} Meeting</h3> 9 <form action="" method="POST" novalidate> 10 {{ form.hidden_tag() }} 11 {% for error in form.errors %} 12 <span style="color:red;">[{{ error }}]</span> 13 {% endfor %} 14 {% if update == "date" %}{{ form.date.label }}{{ form.date() }}{% endif %} 15 {% if update == "time" %}{{ form.time.label }}{{ form.time() }}{% endif %} 16 {% if update == "end" %}{{ form.expected_end.label }}{{ form.expected_end() }}{% endif %} 17 {% if update == "location" %}{{ form.location.label }}{{ form.location() }}{% endif %} 18 {% if update == "description" %}{{ form.meeting_description.label }}{{ form.meeting_description() }}{% endif %} 19 {{ form.update_meeting() }} 20 </form> 21 </section> 22 {% endblock %}