mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 08:33:49 +00:00
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:
@@ -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 }
|
8
Resources/views/Widget/homepage_add_a_person.html.twig
Normal file
8
Resources/views/Widget/homepage_add_a_person.html.twig
Normal 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>
|
||||
|
Reference in New Issue
Block a user