| @@ 75-95 (lines=21) @@ | ||
| 72 | return $this; |
|
| 73 | } |
|
| 74 | ||
| 75 | public function init() |
|
| 76 | { |
|
| 77 | $this->setName('status'); |
|
| 78 | ||
| 79 | $this->add( |
|
| 80 | [ |
|
| 81 | 'name' => 'status', |
|
| 82 | 'type' => 'Zend\Form\Element\Select', |
|
| 83 | 'options' => [ |
|
| 84 | 'label' => /*@translate */ 'Status', |
|
| 85 | 'value_options' => $this->statusOptions |
|
| 86 | ], |
|
| 87 | 'attributes' => [ |
|
| 88 | 'data-placeholder' => /*@translate*/ 'please select', |
|
| 89 | 'data-allowclear' => 'false', |
|
| 90 | 'data-searchbox' => -1, // hide the search box |
|
| 91 | 'required' => true, // mark label as required |
|
| 92 | ], |
|
| 93 | ] |
|
| 94 | ); |
|
| 95 | } |
|
| 96 | } |
|
| 97 | ||
| @@ 22-42 (lines=21) @@ | ||
| 19 | */ |
|
| 20 | class CompanyNameFieldset extends Fieldset |
|
| 21 | { |
|
| 22 | public function init() |
|
| 23 | { |
|
| 24 | $this->setAttribute('id', 'jobcompanyname-fieldset'); |
|
| 25 | $this->setName('jobCompanyName'); |
|
| 26 | ||
| 27 | $this->add( |
|
| 28 | array( |
|
| 29 | 'type' => 'Jobs/HiringOrganizationSelect', |
|
| 30 | 'property' => true, |
|
| 31 | 'name' => 'companyId', |
|
| 32 | 'options' => array( |
|
| 33 | 'label' => /*@translate*/ 'Companyname', |
|
| 34 | ), |
|
| 35 | 'attributes' => array( |
|
| 36 | 'data-placeholder' => /*@translate*/ 'Select hiring organization', |
|
| 37 | 'data-allowclear' => 'false', |
|
| 38 | 'data-width' => '100%' |
|
| 39 | ), |
|
| 40 | ) |
|
| 41 | ); |
|
| 42 | } |
|
| 43 | } |
|
| 44 | ||