|
@@ 469-475 (lines=7) @@
|
| 466 |
|
} |
| 467 |
|
} |
| 468 |
|
|
| 469 |
|
if ($params == 'declined') { |
| 470 |
|
$jobEntity->changeStatus(Status::REJECTED, sprintf(/*@translate*/ "Job opening was rejected by %s", $user->info->displayName)); |
| 471 |
|
$jobEntity->isDraft = true; |
| 472 |
|
$repositories->store($jobEntity); |
| 473 |
|
$jobEvents->trigger(JobEvent::EVENT_JOB_REJECTED, $jobEvent); |
| 474 |
|
$this->notification()->success($translator->translate('Job has been rejected')); |
| 475 |
|
} |
| 476 |
|
|
| 477 |
|
if ($params == 'approved') { |
| 478 |
|
$jobEntity->changeStatus(Status::ACTIVE, sprintf(/*@translate*/ "Job opening was activated by %s", $user->info->displayName)); |
|
@@ 477-483 (lines=7) @@
|
| 474 |
|
$this->notification()->success($translator->translate('Job has been rejected')); |
| 475 |
|
} |
| 476 |
|
|
| 477 |
|
if ($params == 'approved') { |
| 478 |
|
$jobEntity->changeStatus(Status::ACTIVE, sprintf(/*@translate*/ "Job opening was activated by %s", $user->info->displayName)); |
| 479 |
|
$repositories->store($jobEntity); |
| 480 |
|
$jobEvents->trigger(JobEvent::EVENT_JOB_ACCEPTED, $jobEvent); |
| 481 |
|
$this->entitySnapshot($jobEntity); |
| 482 |
|
$this->notification()->success($translator->translate('Job has been approved')); |
| 483 |
|
} |
| 484 |
|
|
| 485 |
|
$viewLink = $this->url()->fromRoute( |
| 486 |
|
'lang/jobs/view', |