forked from wallabag/wallabag
symfony is there
This commit is contained in:
15
src/Acme/DemoBundle/Resources/views/Demo/contact.html.twig
Normal file
15
src/Acme/DemoBundle/Resources/views/Demo/contact.html.twig
Normal file
@ -0,0 +1,15 @@
|
||||
{% extends "AcmeDemoBundle::layout.html.twig" %}
|
||||
|
||||
{% block title "Symfony - Contact form" %}
|
||||
|
||||
{% block content %}
|
||||
<form action="{{ path('_demo_contact') }}" method="POST" id="contact_form">
|
||||
{{ form_errors(form) }}
|
||||
|
||||
{{ form_row(form.email) }}
|
||||
{{ form_row(form.message) }}
|
||||
|
||||
{{ form_rest(form) }}
|
||||
<input type="submit" value="Send" class="symfony-button-grey" />
|
||||
</form>
|
||||
{% endblock %}
|
||||
9
src/Acme/DemoBundle/Resources/views/Demo/hello.html.twig
Normal file
9
src/Acme/DemoBundle/Resources/views/Demo/hello.html.twig
Normal file
@ -0,0 +1,9 @@
|
||||
{% extends "AcmeDemoBundle::layout.html.twig" %}
|
||||
|
||||
{% block title "Hello " ~ name %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Hello {{ name }}!</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% set code = code(_self) %}
|
||||
14
src/Acme/DemoBundle/Resources/views/Demo/index.html.twig
Normal file
14
src/Acme/DemoBundle/Resources/views/Demo/index.html.twig
Normal file
@ -0,0 +1,14 @@
|
||||
{% extends "AcmeDemoBundle::layout.html.twig" %}
|
||||
|
||||
{% block title "Symfony - Demos" %}
|
||||
|
||||
{% block content_header '' %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="title">Available demos</h1>
|
||||
<ul id="demo-list">
|
||||
<li><a href="{{ path('_demo_hello', {'name': 'World'}) }}">Hello World</a></li>
|
||||
<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>
|
||||
{# <li><a href="{{ path('_demo_contact') }}">Send a Message</a></li> #}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user