{% extends '_nav.html' %} {% import "bootstrap/wtf.html" as wtf %} {% block content %}
{% include '_nav_top.html' %}

{% with errors = get_flashed_messages() %} {% if errors %} {% for err in errors %} {% endfor %} {% endif %} {% endwith %}
{{ form1.csrf_token }} {{ form1.id_field(value=childToEdit.id) }} {{ wtf.form_field(form1.firstname, value=childToEdit.firstname) }} {{ wtf.form_field(form1.lastname, value=childToEdit.lastname) }} {{ wtf.form_field(form1.family_id, value=childToEdit.family_id) }} {{ wtf.form_field(form1.date_of_birth, value=childToEdit.date_of_birth) }} {{ wtf.form_field(form1.date_of_registration, value=childToEdit.date_of_registration) }} {{ wtf.form_field(form1.class_id, value=childToEdit.class_id) }} {{ wtf.form_field(form1.submit, button_map={'submit':'success'}) }}
{% endblock %}