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

{% block content %}
    <div class="col-md-10">
        <h3>Połączenie: {{ connection 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.loading) }}
                    {{ form_row(form.unloading) }}
                    {{ form_row(form.cost) }}
                    {{ form_row(form.validTo, { attr: { class: 'datetime' } }) }}
                    {{ form_row(form.useeuro) }}
                    <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 %}
