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

{% block title %}{{ action|capitalize}} Page{% endblock %}

{% block page_title %}<h1>Add New Page</h1>{% endblock %}

{# {% block actions%}Actions here{% endblock %} #}

{% block admin %}
    <section class="add-new--post">
        {{ form_start(form) }}
            <div class="form-errors">
                {{ form_errors(form) }}
            </div>
            <div class="row">
                {{ form_row(form.title) }}
            </div>
            <div class="row">
                {{ form_row(form.text) }}
            </div>
            <div class="row">
                {{ form_row(form.url) }}
            </div>
            <div class="row">
                {{ form_row(form.published) }}
            </div>
            <div class="row">
                {{ form_rest(form) }}
            </div>
        {{ form_end(form) }}
    </section>
{% endblock %}
