aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Acme/DemoBundle/Resources/views
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-31 15:36:04 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-31 15:36:04 +0100
commit1990517b2263a080946853ed697a6d687262ae80 (patch)
tree8f676a051a25c65bf2130235e6b30e3f53030154 /src/Acme/DemoBundle/Resources/views
parentc3235553ddc2bb5965f6fe00e750cfe4aac9ccdf (diff)
downloadwallabag-1990517b2263a080946853ed697a6d687262ae80.tar.gz
wallabag-1990517b2263a080946853ed697a6d687262ae80.tar.zst
wallabag-1990517b2263a080946853ed697a6d687262ae80.zip
remove Acme and AppBundle
Diffstat (limited to 'src/Acme/DemoBundle/Resources/views')
-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
-rw-r--r--src/Acme/DemoBundle/Resources/views/Secured/hello.html.twig11
-rw-r--r--src/Acme/DemoBundle/Resources/views/Secured/helloadmin.html.twig9
-rw-r--r--src/Acme/DemoBundle/Resources/views/Secured/layout.html.twig6
-rw-r--r--src/Acme/DemoBundle/Resources/views/Secured/login.html.twig35
-rw-r--r--src/Acme/DemoBundle/Resources/views/Welcome/index.html.twig83
-rw-r--r--src/Acme/DemoBundle/Resources/views/layout.html.twig37
9 files changed, 0 insertions, 219 deletions
diff --git a/src/Acme/DemoBundle/Resources/views/Demo/contact.html.twig b/src/Acme/DemoBundle/Resources/views/Demo/contact.html.twig
deleted file mode 100644
index e5b7523b..00000000
--- a/src/Acme/DemoBundle/Resources/views/Demo/contact.html.twig
+++ /dev/null
@@ -1,15 +0,0 @@
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
deleted file mode 100644
index 3997ff60..00000000
--- a/src/Acme/DemoBundle/Resources/views/Demo/hello.html.twig
+++ /dev/null
@@ -1,9 +0,0 @@
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
deleted file mode 100644
index 454a3203..00000000
--- a/src/Acme/DemoBundle/Resources/views/Demo/index.html.twig
+++ /dev/null
@@ -1,14 +0,0 @@
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 %}
diff --git a/src/Acme/DemoBundle/Resources/views/Secured/hello.html.twig b/src/Acme/DemoBundle/Resources/views/Secured/hello.html.twig
deleted file mode 100644
index faf95cf8..00000000
--- a/src/Acme/DemoBundle/Resources/views/Secured/hello.html.twig
+++ /dev/null
@@ -1,11 +0,0 @@
1{% extends "AcmeDemoBundle:Secured:layout.html.twig" %}
2
3{% block title "Hello " ~ name %}
4
5{% block content %}
6 <h1 class="title">Hello {{ name }}!</h1>
7
8 <a href="{{ path('_demo_secured_hello_admin', { 'name': name }) }}">Hello resource secured for <strong>admin</strong> only.</a>
9{% endblock %}
10
11{% set code = code(_self) %}
diff --git a/src/Acme/DemoBundle/Resources/views/Secured/helloadmin.html.twig b/src/Acme/DemoBundle/Resources/views/Secured/helloadmin.html.twig
deleted file mode 100644
index 4e3649f7..00000000
--- a/src/Acme/DemoBundle/Resources/views/Secured/helloadmin.html.twig
+++ /dev/null
@@ -1,9 +0,0 @@
1{% extends "AcmeDemoBundle:Secured:layout.html.twig" %}
2
3{% block title "Hello " ~ name %}
4
5{% block content %}
6 <h1 class="title">Hello {{ name }} secured for Admins only!</h1>
7{% endblock %}
8
9{% set code = code(_self) %}
diff --git a/src/Acme/DemoBundle/Resources/views/Secured/layout.html.twig b/src/Acme/DemoBundle/Resources/views/Secured/layout.html.twig
deleted file mode 100644
index aeea55c5..00000000
--- a/src/Acme/DemoBundle/Resources/views/Secured/layout.html.twig
+++ /dev/null
@@ -1,6 +0,0 @@
1{% extends "AcmeDemoBundle::layout.html.twig" %}
2
3{% block content_header_more %}
4 {{ parent() }}
5 <li>logged in as <strong>{{ app.user ? app.user.username : 'Anonymous' }}</strong> - <a href="{{ path('_demo_logout') }}">Logout</a></li>
6{% endblock %}
diff --git a/src/Acme/DemoBundle/Resources/views/Secured/login.html.twig b/src/Acme/DemoBundle/Resources/views/Secured/login.html.twig
deleted file mode 100644
index 3e76d1df..00000000
--- a/src/Acme/DemoBundle/Resources/views/Secured/login.html.twig
+++ /dev/null
@@ -1,35 +0,0 @@
1{% extends 'AcmeDemoBundle::layout.html.twig' %}
2
3{% block content %}
4 <h1 class="title">Login</h1>
5
6 <p>
7 Choose between two default users: <em>user/userpass</em> <small>(ROLE_USER)</small> or <em>admin/adminpass</em> <small>(ROLE_ADMIN)</small>
8 </p>
9
10 {% if error %}
11 <div class="error">{{ error.message }}</div>
12 {% endif %}
13
14 <form action="{{ path("_demo_security_check") }}" method="post" id="login">
15 <div>
16 <label for="username">Username</label>
17 <input type="text" id="username" name="_username" value="{{ last_username }}" />
18 </div>
19
20 <div>
21 <label for="password">Password</label>
22 <input type="password" id="password" name="_password" />
23 </div>
24
25 <button type="submit" class="sf-button">
26 <span class="border-l">
27 <span class="border-r">
28 <span class="btn-bg">Login</span>
29 </span>
30 </span>
31 </button>
32 </form>
33{% endblock %}
34
35{% set code = code(_self) %}
diff --git a/src/Acme/DemoBundle/Resources/views/Welcome/index.html.twig b/src/Acme/DemoBundle/Resources/views/Welcome/index.html.twig
deleted file mode 100644
index ea3a7299..00000000
--- a/src/Acme/DemoBundle/Resources/views/Welcome/index.html.twig
+++ /dev/null
@@ -1,83 +0,0 @@
1{% extends 'AcmeDemoBundle::layout.html.twig' %}
2
3{% block title %}Symfony - Welcome{% endblock %}
4
5{% block content_header '' %}
6
7{% block content %}
8 {% set version = constant('Symfony\\Component\\HttpKernel\\Kernel::MAJOR_VERSION') ~ '.' ~ constant('Symfony\\Component\\HttpKernel\\Kernel::MINOR_VERSION')%}
9
10 <h1 class="title">Welcome!</h1>
11
12 <p>Congratulations! You have successfully installed a new Symfony application.</p>
13
14 <div class="symfony-blocks-welcome">
15 <div class="block-quick-tour">
16 <div class="illustration">
17 <img src="{{ asset('bundles/acmedemo/images/welcome-quick-tour.gif') }}" alt="Quick tour" />
18 </div>
19 <a href="http://symfony.com/doc/{{ version }}/quick_tour/index.html" class="sf-button sf-button-selected">
20 <span class="border-l">
21 <span class="border-r">
22 <span class="btn-bg">Read the Quick Tour</span>
23 </span>
24 </span>
25 </a>
26 </div>
27 {% if app.environment == 'dev' %}
28 <div class="block-configure">
29 <div class="illustration">
30 <img src="{{ asset('bundles/acmedemo/images/welcome-configure.gif') }}" alt="Configure your application" />
31 </div>
32 <a href="{{ path('_configurator_home') }}" class="sf-button sf-button-selected">
33 <span class="border-l">
34 <span class="border-r">
35 <span class="btn-bg">Configure</span>
36 </span>
37 </span>
38 </a>
39 </div>
40 {% endif %}
41 <div class="block-demo">
42 <div class="illustration">
43 <img src="{{ asset('bundles/acmedemo/images/welcome-demo.gif') }}" alt="Demo" />
44 </div>
45 <a href="{{ path('_demo') }}" class="sf-button sf-button-selected">
46 <span class="border-l">
47 <span class="border-r">
48 <span class="btn-bg">Run The Demo</span>
49 </span>
50 </span>
51 </a>
52 </div>
53 </div>
54
55 <div class="symfony-blocks-help">
56 <div class="block-documentation">
57 <ul>
58 <li><strong>Documentation</strong></li>
59 <li><a href="http://symfony.com/doc/{{ version }}/book/index.html">The Book</a></li>
60 <li><a href="http://symfony.com/doc/{{ version }}/cookbook/index.html">The Cookbook</a></li>
61 <li><a href="http://symfony.com/doc/{{ version }}/components/index.html">The Components</a></li>
62 <li><a href="http://symfony.com/doc/{{ version }}/reference/index.html">Reference</a></li>
63 <li><a href="http://symfony.com/doc/{{ version }}/glossary.html">Glossary</a></li>
64 </ul>
65 </div>
66 <div class="block-documentation-more">
67 <ul>
68 <li><strong>Sensio</strong></li>
69 <li><a href="http://trainings.sensiolabs.com">Trainings</a></li>
70 <li><a href="http://books.sensiolabs.com">Books</a></li>
71 </ul>
72 </div>
73 <div class="block-community">
74 <ul>
75 <li><strong>Community</strong></li>
76 <li><a href="http://symfony.com/irc">IRC channel</a></li>
77 <li><a href="http://symfony.com/mailing-lists">Mailing lists</a></li>
78 <li><a href="http://forum.symfony-project.org">Forum</a></li>
79 <li><a href="http://symfony.com/doc/{{ version }}/contributing/index.html">Contributing</a></li>
80 </ul>
81 </div>
82 </div>
83{% endblock %}
diff --git a/src/Acme/DemoBundle/Resources/views/layout.html.twig b/src/Acme/DemoBundle/Resources/views/layout.html.twig
deleted file mode 100644
index d7e97d56..00000000
--- a/src/Acme/DemoBundle/Resources/views/layout.html.twig
+++ /dev/null
@@ -1,37 +0,0 @@
1{% extends "TwigBundle::layout.html.twig" %}
2
3{% block head %}
4 <link rel="icon" sizes="16x16" href="{{ asset('favicon.ico') }}" />
5 <link rel="stylesheet" href="{{ asset('bundles/acmedemo/css/demo.css') }}" />
6{% endblock %}
7
8{% block title 'Demo Bundle' %}
9
10{% block body %}
11 {% for flashMessage in app.session.flashbag.get('notice') %}
12 <div class="flash-message">
13 <em>Notice</em>: {{ flashMessage }}
14 </div>
15 {% endfor %}
16
17 {% block content_header %}
18 <ul id="menu">
19 {% block content_header_more %}
20 <li><a href="{{ path('_demo') }}">Demo Home</a></li>
21 {% endblock %}
22 </ul>
23
24 <div style="clear: both"></div>
25 {% endblock %}
26
27 <div class="block">
28 {% block content %}{% endblock %}
29 </div>
30
31 {% if code is defined %}
32 <h2>Code behind this page</h2>
33 <div class="block">
34 <div class="symfony-content">{{ code|raw }}</div>
35 </div>
36 {% endif %}
37{% endblock %}