adding a widget "add a person" on homepage, replacing the homepage menu

We use the new widget api to add a widget "add a person" on homepage. The homepage menu is deprecated.
This commit is contained in:
2016-09-23 12:28:26 +02:00
parent adbc59ec76
commit 38df9bb91d
5 changed files with 64 additions and 1 deletions

View File

@@ -8,6 +8,6 @@ services:
# this widget is defined by the PersonListWidgetFactory
chill_person.widget.add_person:
class: Chill\PersonBundle\Widget\AddPersonWidget
class: Chill\PersonBundle\Widget\AddAPersonWidget
tags:
- { name: chill_widget, alias: add_person, place: homepage }

View File

@@ -0,0 +1,8 @@
<div class="grid-8 centered" style="text-align:center; margin-top: 1.5em;">
<a href="{{ path('chill_person_new') }}">
<div class="grid-3 sc-button blue" style="float: inherit;">
{{ 'Add a person'|trans }}
</div>
</a>
</div>