Improving navigation

This commit is contained in:
Marc Ducobu 2014-11-11 16:57:21 +01:00
parent 06ae186427
commit eb29131957
2 changed files with 46 additions and 16 deletions

View File

@ -29,10 +29,14 @@ chill_person_create:
pattern: /person/create
defaults: {_controller: ChillPersonBundle:Person:create }
chill_person_search:
pattern: /search
defaults: { _controller: ChillPersonBundle:Person:search }
options:
menus:
main:
order: 30
label: Chercher une personne
chill_person_history_list:
pattern: /person/{person_id}/history
@ -47,7 +51,6 @@ chill_person_history_create:
pattern: /person/{person_id}/history/create
defaults: { _controller: ChillPersonBundle:History:create }
chill_person_history_update:
pattern: /person/history/{history_id}/update
defaults: { _controller: ChillPersonBundle:History:update }

View File

@ -8,7 +8,7 @@
{% endstylesheets %}
{% endblock %}
{% block content %}
{% block layout_content %}
<div id="person_wrapper">
<div id="general">
<h1>
@ -38,6 +38,33 @@
</div>
<div id="person_details">
{# Flash messages ! #}
<div class="container">
{% for flashMessage in app.session.flashbag.get('success') %}
<div class="grid-8 centered success">
<span>
{{ flashMessage|raw }}
</span>
</div>
{% endfor %}
{% for flashMessage in app.session.flashbag.get('danger') %}
<div class="grid-8 centered error">
<span>
{{ flashMessage|raw }}
</span>
</div>
{% endfor %}
{% for flashMessage in app.session.flashbag.get('info') %}
<div class="grid-8 centered notice">
<span>
{{ flashMessage|raw }}
</span>
</div>
{% endfor %}
</div>
<section class="container">
{# Note: activeRouteKey should be defined in Controller or child layout #}
{{ chill_menu('person', {