Adding homepage menu

This commit is contained in:
Marc Ducobu 2014-11-12 11:07:05 +01:00
parent 43aa7a1e8d
commit cb756a29fa
2 changed files with 26 additions and 6 deletions

View 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>

View File

@ -89,14 +89,23 @@
{% endfor %}
</div>
{{ chill_menu('main', {
'layout': 'ChillPersonBundle::menu.html.twig',
{% block content %}
<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 %}