{% extends "WallabagCoreBundle::layout.html.twig" %}

{% block title %}{% trans %}Edit an entry{% endtrans %}{% endblock %}

{% block content %}

    <div class="row">
        <div class="col s12">
            <div class="card-panel">

                <form name="entry" method="post" action="">
                    <div class="card-content">

                        {% if form_errors(form) %}
                            <span class="black-text">{{ form_errors(form) }}</span>
                        {% endif %}

                        {% if form_errors(form.title) %}
                            <span class="black-text">{{ form_errors(form.title) }}</span>
                        {% endif %}

                        <div class="input-field s12">
                            {{ form_label(form.title) }}
                            {{ form_widget(form.title) }}
                        </div>

                        <div class="input-field s12">
                            {{ form_widget(form.is_public) }}
                            {{ form_label(form.is_public) }}
                        </div>
                        <br>
                        <button class="btn waves-effect waves-light" type="submit" name="entry[save]">
                            {% trans %}Save{% endtrans %}
                            <i class="mdi-content-send right"></i>
                        </button>
                    </div>
                    <div class="hidden">{{ form_rest(form) }}</div>
                </form>

            </div>
        </div>
    </div>

{% endblock %}
