Merge branch 'master' of git.framasoft.org:Chill-project/Chill-Person

This commit is contained in:
2016-10-06 15:12:42 +02:00
9 changed files with 181 additions and 10 deletions

View File

@@ -20,9 +20,6 @@ chill_person_new:
defaults: {_controller: ChillPersonBundle:Person:new }
options:
menus:
homepage:
order: 10
label: Add a person
section:
order: 10
label: Add a person

View File

@@ -3,11 +3,12 @@ services:
class: Chill\PersonBundle\Widget\PersonListWidget
arguments:
- "@chill.person.repository.person"
- "@doctrine.orm.entity_manager"
- "@chill.main.security.authorization.helper"
- "@security.token_storage"
# 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>