element('genericElements/Form/genericForm', [ 'data' => [ 'title' => __('Add members to `{0}` [{1}]', h($mailingList->name), h($mailingList->id)), 'model' => 'MailingLists', 'fields' => [ [ 'field' => 'individuals', 'type' => 'dropdown', 'multiple' => true, 'select2' => true, 'label' => __('Members'), 'options' => $dropdownData['individuals'] ], [ 'field' => 'chosen_emails', 'type' => 'text', 'templates' => ['inputContainer' => '
{{content}}
'], ], '
' ], 'submit' => [ 'action' => $this->request->getParam('action') ], ], ]); ?>