| Línea 141... |
Línea 141... |
| 141 |
'id' => $record->id,
|
141 |
'id' => $record->id,
|
| 142 |
'name' => $record->name,
|
142 |
'name' => $record->name,
|
| 143 |
'job_description' => $jobDescription->name,
|
143 |
'job_description' => $jobDescription->name,
|
| 144 |
'status' => $record->status,
|
144 |
'status' => $record->status,
|
| 145 |
'actions' => [
|
145 |
'actions' => [
|
| 146 |
'link_edit' => $this->url()->fromRoute('recruitment-and-selection/forms/edit', ['id' => $record->uuid]),
|
146 |
'link_edit' => $this->url()->fromRoute('recruitment-and-selection-vacancies/forms/edit', ['id' => $record->uuid]),
|
| 147 |
'link_delete' => $this->url()->fromRoute('recruitment-and-selection/forms/delete', ['id' => $record->uuid])
|
147 |
'link_delete' => $this->url()->fromRoute('recruitment-and-selection-vacancies/forms/delete', ['id' => $record->uuid])
|
| 148 |
]
|
148 |
]
|
| 149 |
];
|
149 |
];
|
| 150 |
}
|
150 |
}
|
| Línea 151... |
Línea 151... |
| 151 |
|
151 |
|
| Línea 170... |
Línea 170... |
| 170 |
$jobCategoryMapper = JobCategoryMapper::getInstance($this->adapter);
|
170 |
$jobCategoryMapper = JobCategoryMapper::getInstance($this->adapter);
|
| 171 |
$jobCategory = $jobCategoryMapper->fetchAllActives($currentCompany->id);
|
171 |
$jobCategory = $jobCategoryMapper->fetchAllActives($currentCompany->id);
|
| Línea 172... |
Línea 172... |
| 172 |
|
172 |
|
| 173 |
$this->layout()->setTemplate('layout/layout-backend');
|
173 |
$this->layout()->setTemplate('layout/layout-backend');
|
| 174 |
$viewModel = new ViewModel();
|
174 |
$viewModel = new ViewModel();
|
| 175 |
$viewModel->setTemplate('leaders-linked/recruitment-and-selection-vacancies/index.phtml');
|
175 |
$viewModel->setTemplate('leaders-linked/recruitment-and-selection-vacancies-vacancies/index.phtml');
|
| 176 |
$viewModel->setVariable('form', $form);
|
176 |
$viewModel->setVariable('form', $form);
|
| 177 |
$viewModel->setVariable('industry', $industry);
|
177 |
$viewModel->setVariable('industry', $industry);
|
| 178 |
$viewModel->setVariable('jobsDescription', $jobsDescription);
|
178 |
$viewModel->setVariable('jobsDescription', $jobsDescription);
|
| 179 |
$viewModel->setVariable('jobCategory', $jobCategory);
|
179 |
$viewModel->setVariable('jobCategory', $jobCategory);
|
| Línea 332... |
Línea 332... |
| 332 |
if ($result) {
|
332 |
if ($result) {
|
| 333 |
$this->logger->info('Se agrego el candidato' . $recruitmentCandidate->name, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
|
333 |
$this->logger->info('Se agrego el candidato' . $recruitmentCandidate->name, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
|
| 334 |
$data = [
|
334 |
$data = [
|
| 335 |
'success' => true,
|
335 |
'success' => true,
|
| 336 |
'id' => $recruitmentCandidate->id,
|
336 |
'id' => $recruitmentCandidate->id,
|
| 337 |
'action_edit' => $this->url()->fromRoute('recruitment-and-selection/forms/edit', ['id' => $recruitmentCandidate->uuid]),
|
337 |
'action_edit' => $this->url()->fromRoute('recruitment-and-selection-vacancies/forms/edit', ['id' => $recruitmentCandidate->uuid]),
|
| 338 |
'data' => 'LABEL_RECORD_UPDATED'
|
338 |
'data' => 'LABEL_RECORD_UPDATED'
|
| 339 |
];
|
339 |
];
|
| 340 |
} else {
|
340 |
} else {
|
| 341 |
$data = [
|
341 |
$data = [
|
| 342 |
'success' => false,
|
342 |
'success' => false,
|