aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/edit.html.twig
blob: b95379758dc5de2cb15bf7e0d4ebd66cd9e7db10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% extends "WallabagCoreBundle::layout.html.twig" %}

{% block title %}{{ 'entry.edit.page_title'|trans }}{% 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_label(form.url) }}
                            {{ form_widget(form.url) }}
                        </div>
                        <br>

                        {{ form_widget(form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
                    </div>
                    {{ form_rest(form) }}
                </form>

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

{% endblock %}