_dfRelations = $this->getConfigArray('dynamicFormRelations'); return parent::init(); } protected function _initElements() { $this->addElement('text', 'firstName', ['label' => 'First Name', 'required' => true]); $this->addElement('text', 'lastName', ['label' => 'Last Name']); $this->addElement('extendedImage', 'photo', [ 'label' => 'Photo', 'required' => true, 'resize' => $this->getConfigArray('photoSize'), ]); $this->addElement('text', 'jobTitle', ['label' => 'Job Title', 'required' => true]); $this->addElement('text', 'location', ['label' => 'Location', 'required' => false]); $this->addElement('text', 'intro', ['label' => 'Intro']); $this->addElement('checkbox', 'inCareers', ['label' => 'Show in Careers section', 'decoration' => 'simple']); $this->addElement('htmlEditor', 'shortBio', [ 'label' => 'Short Bio', 'required' => Qs_Request::isGet() || $this->isVisible('shortBio'), 'toolbar' => 'Basic', 'height' => 128, ]); $this->addElement('checkbox', 'enabled', ['label' => 'Show on user end', 'decoration' => 'simple']); return parent::_initElements(); } }