{% extends 'AppBundle:Admin/User:layout.html.twig' %}
{% form_theme form 'bootstrap_3_layout.html.twig' %}

{% block content %}
    <div class="col-md-10">
        <h3>Użytkownik: {{ user is defined ? 'edycja' : 'dodaj' }}</h3>

        <div class="row">
            <div class="col-md-4"></div>
            <div class="col-md-4">
                {{ form_start(form) }}
                    {{ form_row(form.fullName) }}
                    {{ form_row(form.email) }}

                    {% if form.password is defined %}
                        {{ form_row(form.password) }}
                        {{ form_row(form.newPassword) }}
                    {% endif %}

                    <div class="form-group text-right">
                        <button type="submit" class="btn btn-success">Zapisz</button>
                    </div>
                {{ form_end(form) }}
            </div>
            <div class="col-md-4"></div>
        </div>
    </div>
{% endblock %}