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

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

{% block page_title %}<h1>Add New Photos</h1>{% 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.date) }}
            </div>
            <div class="row">
                {{ form_row(form.category) }}
            </div>
            <div class="row">
                {{ form_row(form.thumbnail) }}
            </div>
            <div class="row">
                {{ form_row(form.text)}}
            </div>
            <div class="row">
                {{ form_row(form.uploads)}}
                <button type="button" class="add_item_link" data-collection-holder-id="photos_uploads">Add a photo</button>
            </div>
            <div class="row">
                {{ form_row(form.url) }}
            </div>
            <div class="row">
                {{ form_row(form.save)}}
                {{ form_row(form._token)}}
            </div>
        {{ form_end(form) }}
    </section>
{% endblock %}
