|
@@ 504-510 (lines=7) @@
|
| 501 |
|
} |
| 502 |
|
} |
| 503 |
|
|
| 504 |
|
if ($params == 'declined') { |
| 505 |
|
$jobEntity->changeStatus(Status::REJECTED, sprintf(/*@translate*/ "Job opening was rejected by %s", $user->info->displayName)); |
| 506 |
|
$jobEntity->setIsDraft(true); |
| 507 |
|
$this->repositoryService->store($jobEntity); |
| 508 |
|
$jobEvents->trigger(JobEvent::EVENT_JOB_REJECTED, $jobEvent); |
| 509 |
|
$this->notification()->success($this->translator->translate('Job has been rejected')); |
| 510 |
|
} |
| 511 |
|
|
| 512 |
|
if ($params == 'approved') { |
| 513 |
|
$jobEntity->changeStatus(Status::ACTIVE, sprintf(/*@translate*/ "Job opening was activated by %s", $user->info->displayName)); |
|
@@ 512-518 (lines=7) @@
|
| 509 |
|
$this->notification()->success($this->translator->translate('Job has been rejected')); |
| 510 |
|
} |
| 511 |
|
|
| 512 |
|
if ($params == 'approved') { |
| 513 |
|
$jobEntity->changeStatus(Status::ACTIVE, sprintf(/*@translate*/ "Job opening was activated by %s", $user->info->displayName)); |
| 514 |
|
$this->repositoryService->store($jobEntity); |
| 515 |
|
$jobEvents->trigger(JobEvent::EVENT_JOB_ACCEPTED, $jobEvent); |
| 516 |
|
$this->entitySnapshot($jobEntity); |
| 517 |
|
$this->notification()->success($this->translator->translate('Job has been approved')); |
| 518 |
|
} |
| 519 |
|
|
| 520 |
|
$viewLink = $this->url()->fromRoute( |
| 521 |
|
'lang/jobs/view', |