mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
parameter passed to person creation page
This commit is contained in:
parent
5423de3bd9
commit
9a3f35703b
@ -266,6 +266,7 @@ final class PersonController extends AbstractController
|
|||||||
[
|
[
|
||||||
'form' => $form->createView(),
|
'form' => $form->createView(),
|
||||||
'alternatePersons' => $alternatePersons ?? [],
|
'alternatePersons' => $alternatePersons ?? [],
|
||||||
|
'_fragment' => $request->query->get('_fragment')
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<ul class="record_actions">
|
<ul class="record_actions">
|
||||||
{% if is_granted('CHILL_PERSON_CREATE') %}
|
{% if is_granted('CHILL_PERSON_CREATE') %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ path('chill_person_new') }}" class="btn btn-create">
|
<a href="{{ path('chill_person_new', { "_fragment": pattern }) }}" class="btn btn-create">
|
||||||
{{ 'Add a person'|trans }}
|
{{ 'Add a person'|trans }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user