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

{% block content %}
    <div class="col-md-10">
        <h3>Port: {{ port is defined ? 'edycja' : 'dodaj' }}</h3>
        <div class="row">
            <div class="col-md-4"></div>
            <div class="col-md-4">

                {{ form_start(form) }}
                    <div class="form-group">
                        {{ form_row(form.name) }}
                        {{ form_row(form.country) }}
                    </div>
                    <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 %}