aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Acme/DemoBundle/Resources/views/Demo
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-22 08:30:07 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-22 08:30:07 +0100
commit93fd4692f6eb753cae16358131c8049d84cfbb41 (patch)
tree1ef2f66eb378cf419d1aa033a2c772539e60537d /src/Acme/DemoBundle/Resources/views/Demo
parent0440249631164a378981d014bf71b617c082bf5a (diff)
downloadwallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.tar.gz
wallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.tar.zst
wallabag-93fd4692f6eb753cae16358131c8049d84cfbb41.zip
symfony is there
Diffstat (limited to 'src/Acme/DemoBundle/Resources/views/Demo')
-rw-r--r--src/Acme/DemoBundle/Resources/views/Demo/contact.html.twig15
-rw-r--r--src/Acme/DemoBundle/Resources/views/Demo/hello.html.twig9
-rw-r--r--src/Acme/DemoBundle/Resources/views/Demo/index.html.twig14
3 files changed, 38 insertions, 0 deletions
diff --git a/src/Acme/DemoBundle/Resources/views/Demo/contact.html.twig b/src/Acme/DemoBundle/Resources/views/Demo/contact.html.twig
new file mode 100644
index 00000000..e5b7523b
--- /dev/null
+++ b/src/Acme/DemoBundle/Resources/views/Demo/contact.html.twig
@@ -0,0 +1,15 @@
1{% extends "AcmeDemoBundle::layout.html.twig" %}
2
3{% block title "Symfony - Contact form" %}
4
5{% block content %}
6 <form action="{{ path('_demo_contact') }}" method="POST" id="contact_form">
7 {{ form_errors(form) }}
8
9 {{ form_row(form.email) }}
10 {{ form_row(form.message) }}
11
12 {{ form_rest(form) }}
13 <input type="submit" value="Send" class="symfony-button-grey" />
14 </form>
15{% endblock %}
diff --git a/src/Acme/DemoBundle/Resources/views/Demo/hello.html.twig b/src/Acme/DemoBundle/Resources/views/Demo/hello.html.twig
new file mode 100644
index 00000000..3997ff60
--- /dev/null
+++ b/src/Acme/DemoBundle/Resources/views/Demo/hello.html.twig
@@ -0,0 +1,9 @@
1{% extends "AcmeDemoBundle::layout.html.twig" %}
2
3{% block title "Hello " ~ name %}
4
5{% block content %}
6 <h1>Hello {{ name }}!</h1>
7{% endblock %}
8
9{% set code = code(_self) %}
diff --git a/src/Acme/DemoBundle/Resources/views/Demo/index.html.twig b/src/Acme/DemoBundle/Resources/views/Demo/index.html.twig
new file mode 100644
index 00000000..454a3203
--- /dev/null
+++ b/src/Acme/DemoBundle/Resources/views/Demo/index.html.twig
@@ -0,0 +1,14 @@
1{% extends "AcmeDemoBundle::layout.html.twig" %}
2
3{% block title "Symfony - Demos" %}
4
5{% block content_header '' %}
6
7{% block content %}
8 <h1 class="title">Available demos</h1>
9 <ul id="demo-list">
10 <li><a href="{{ path('_demo_hello', {'name': 'World'}) }}">Hello World</a></li>
11 <li><a href="{{ path('_demo_secured_hello', {'name': 'World'}) }}">Access the secured area</a> <a href="{{ path('_demo_login') }}">Go to the login page</a></li>
12 {# <li><a href="{{ path('_demo_contact') }}">Send a Message</a></li> #}
13 </ul>
14{% endblock %}