{% extends 'base.html.twig' %}

{% block title %}
    Registrace nového Rodiče
{% endblock %}

{% block body %}

    {{ form_start(form, {'attr' : {'class' : 'needs-validation', 'novalidate' : true}}) }}
    <div class="errors">
        {{ form_errors(form) }}
    </div>

    <h3 class="h3 card-title mb-3 font-weight-normal">Registrace nového Rodiče</h3>

    <br>


    <div class="input-group mb-3">
        <div class="input-group-prepend">
            <span class="input-group-text">Celé jméno</span>
        </div>
        {{ form_widget(form.titul) }}

        {{ form_widget(form.jmeno) }}

        {{ form_widget(form.prijmeni) }}

    </div>

    <div class="input-group mb-3">
        <div class="input-group-prepend">
            <span class="input-group-text">Datum Narození</span>
        </div>
        {{ form_widget(form.datNar) }}
    </div>

    <br>

    <div class="input-group mb-3">
        <div class="input-group-prepend">
            <span class="input-group-text">Profilový obrázek</span>
        </div>
        {{ form_widget(form.image) }}
    </div>

    <br>

    <div class="input-group mb-0">
        <div class="input-group-prepend">
            <span class="input-group-text">Adresa</span>
        </div>
        <div>
            <div class="input-group mb-1">
                <div></div>
                {{ form_widget(form.obec) }}
                {{ form_widget(form.ulice) }}
                {{ form_widget(form.cisPop) }}
            </div>
            <div class="input-group mb-0">
                <div></div>
                {{ form_widget(form.mCast) }}
                {{ form_widget(form.stat) }}
                {{ form_widget(form.psc) }}
            </div>
        </div>
    </div>

    <br>

    <div class="input-group mb-3">
        <div class="input-group-prepend">
            <span class="input-group-text">Email a Telefon</span>
        </div>
        {{ form_widget(form.email) }}
        {{ form_widget(form.telefon) }}
    </div>

    <br>

    {{ form_row(form.save) }}

    {{ form_end(form) }}

{% endblock %}

