The search controller return a subset of the 5 first results. If the user want to
see more, the services implementing SearchInterface should add a link "see more",
and make use of the Pagination API to paginate.
For action which require a confirmation message.
This is a way to have a template for every confirmation message in the
app.
Example of usage :
```
{{ include('ChillMainBundle:Util:confirmation_template.html.twig',
{
# a title, not mandatory
'title' : 'Remove membership'|trans,
# a confirmation question, not mandatory
'confirm_question' : 'Are you sure you want to remove
membership of "%name%" from the group "%group%"?'|trans({ '%name%' :
person.firstname ~ ' ' ~ person.lastname, '%group%' :
membership.cgroup.name }),
# a route for "cancel" button (mandatory)
'cancel_route' : 'chill_group_membership_by_person',
# the parameters for 'cancel' route (default to {} )
'cancel_parameters' : { 'person_id' : membership.person.id
},
# the form which will send the deletion. This form
# **must** contains a SubmitType
'form' : form
} ) }}
```
Now, the function take into account that parent might be multiple.
This is still incomplete : I do not know if this work if the parent is
multiple **and** a select2
- add a test for 'generate' ;
- the ExportType declare keys, and those keys are used in ExportManager;
- the export interface does not require the "has form" function, and
export form is taken into account
ref #12
In a template, you can now allow rendering of a block from other bundle.
The layout template must explicitly call the rendering of other block,
with the twig function
```
chill_delegated_block('block_name', { 'array' : 'with context' } )
```
This will launch an event
`Chill\MainBundle\Templating\Events\DelegatedBlockRenderingEvent` with
the event's name 'chill_block.block_name'.
You may add content to the page using the function
`DelegatedBlockRenderingEvent::addContent`.