mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
Adding homepage menu
This commit is contained in:
parent
43aa7a1e8d
commit
cb756a29fa
11
Resources/views/Menu/homepage.html.twig
Normal file
11
Resources/views/Menu/homepage.html.twig
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<div class="container">
|
||||||
|
<div class="grid-8 centered" style="text-align:center">
|
||||||
|
{% for route in routes %}
|
||||||
|
<a href="{{ path(route.key, args ) }}">
|
||||||
|
<div class="grid-3 sc-button blue" style="float: inherit;">
|
||||||
|
{{ route.label|trans }}
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -89,14 +89,23 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ chill_menu('main', {
|
{% block content %}
|
||||||
'layout': 'ChillPersonBundle::menu.html.twig',
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="grid-8 centered">
|
||||||
|
<form action="{{ path('chill_person_search') }}" method="get">
|
||||||
|
<input name="q" type="search" placeholder="{{ 'Nom / Prénom de la personne'|trans }}" />
|
||||||
|
<center>
|
||||||
|
<button type="submit" class="sc-button orange">{{ 'Chercher une personne'|trans }}</button>
|
||||||
|
</center>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ chill_menu('homepage', {
|
||||||
|
'layout': 'ChillMainBundle::Menu/homepage.html.twig',
|
||||||
}) }}
|
}) }}
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<div class="grid-8">
|
|
||||||
<h1>Welcome to Chill</h1>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user