element('genericElements/Form/genericForm', [ 'entity' => $userEntity, 'ajax' => false, 'raw' => true, 'data' => [ 'description' => __('Create user account'), 'model' => 'User', 'fields' => [ [ 'field' => 'individual_id', 'type' => 'dropdown', 'label' => __('Associated individual'), 'options' => $dropdownData['individual'], ], [ 'field' => 'username', 'autocomplete' => 'off', ], [ 'field' => 'role_id', 'type' => 'dropdown', 'label' => __('Role'), 'options' => $dropdownData['role'] ], [ 'field' => 'disabled', 'type' => 'checkbox', 'label' => 'Disable' ], sprintf('
%s
', __('Create individual')), [ 'field' => 'email', 'autocomplete' => 'off' ], [ 'field' => 'uuid', 'label' => 'UUID', 'type' => 'uuid', 'autocomplete' => 'off' ], [ 'field' => 'first_name', 'autocomplete' => 'off' ], [ 'field' => 'last_name', 'autocomplete' => 'off' ], [ 'field' => 'position', 'autocomplete' => 'off' ], ], 'submit' => [ 'action' => $this->request->getParam('action') ] ] ]); echo $this->Bootstrap->modal([ 'title' => __('Register user'), 'size' => 'lg', 'type' => 'confirm', 'bodyHtml' => sprintf( '
%s
', $combinedForm ), 'confirmText' => __('Create user'), 'confirmFunction' => 'submitRegistration' ]); ?>