diff --git a/src/Bundle/ChillMainBundle/Form/Type/PickAddressType.php b/src/Bundle/ChillMainBundle/Form/Type/PickAddressType.php index c2f46a5aa..efd117b96 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/PickAddressType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/PickAddressType.php @@ -11,6 +11,24 @@ use Symfony\Component\Form\FormInterface; use Symfony\Component\Form\FormView; use Symfony\Component\OptionsResolver\OptionsResolver; +/** + * Form type for picking an address. + * + * In the UI, this resolve to a vuejs component which will insert the created address id into the + * hidden's value. It will also allow to edit existing addresses without changing the id. + * + * In every page where this component is shown, you must include the required module: + * + * ```twig + * {% block js %} + * {{ encore_entry_script_tags('mod_input_address') }} + * {% endblock %} + * + * {% block css %} + * {{ encore_entry_link_tags('mod_input_address') }} + * {% endblock %} + * ``` + */ final class PickAddressType extends AbstractType { private AddressToIdDataTransformer $addressToIdDataTransformer;