Skip to content

Commit

Permalink
Merge 6976fe7 into 28c2996
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-galenko committed Nov 20, 2018
2 parents 28c2996 + 6976fe7 commit 83671f8
Show file tree
Hide file tree
Showing 8 changed files with 1,524 additions and 2 deletions.
3 changes: 3 additions & 0 deletions module/Jobs/config/module.config.php
Expand Up @@ -335,6 +335,7 @@
'jobs/form/multiposting-checkboxes' => __DIR__ . '/../view/form/multiposting-checkboxes.phtml',
'jobs/form/ats-mode.view' => __DIR__ . '/../view/form/ats-mode.view.phtml',
'jobs/form/ats-mode.form' => __DIR__ . '/../view/form/ats-mode.form.phtml',
'jobs/form/salary-fieldset' => __DIR__ . '/../view/form/salary-fieldset.phtml',
'jobs/form/company-name-fieldset' => __DIR__ . '/../view/form/company-name-fieldset.phtml',
'jobs/form/preview' => __DIR__ . '/../view/form/preview.phtml',
'jobs/form/customer-note' => __DIR__ . '/../view/form/customer-note.phtml',
Expand Down Expand Up @@ -417,6 +418,8 @@
'Jobs/MultipostButtonFieldset' => 'Jobs\Form\MultipostButtonFieldset',
'Jobs/AtsMode' => 'Jobs\Form\AtsMode',
'Jobs/AtsModeFieldset' => 'Jobs\Form\AtsModeFieldset',
'Jobs/Salary' => 'Jobs\Form\Salary',
'Jobs/SalaryFieldset' => 'Jobs\Form\SalaryFieldset',
'Jobs/AdminSearch' => 'Jobs\Form\AdminSearchFormElementsFieldset',
'Jobs/ListFilter' => 'Jobs\Form\ListFilter',
'Jobs/ListFilterLocation' => 'Jobs\Form\ListFilterLocation',
Expand Down
2 changes: 2 additions & 0 deletions module/Jobs/src/Controller/ManageController.php
Expand Up @@ -511,6 +511,8 @@ public function completionAction()
// sets ATS-Mode on intern
$job->getAtsMode();

$job->getSalary();

/*
* make the job opening persist and fire the EVENT_JOB_CREATED
*/
Expand Down
37 changes: 35 additions & 2 deletions module/Jobs/src/Entity/Job.php
Expand Up @@ -46,7 +46,7 @@ class Job extends BaseEntity implements


private $cloneProperties = [
'classifications', 'atsMode',
'classifications', 'atsMode', 'salary',
];

/**
Expand Down Expand Up @@ -259,7 +259,15 @@ class Job extends BaseEntity implements
* @ODM\Field(type="boolean")
*/
protected $atsEnabled;


/**
* The Salary entity.
*
* @var Salary
* @ODM\EmbedOne(targetDocument="\Jobs\Entity\Salary")
*/
protected $salary;

/**
* Permissions
*
Expand Down Expand Up @@ -822,6 +830,31 @@ public function setAtsEnabled($atsEnabled)
$this->atsEnabled = $atsEnabled;
return $this;
}

/**
* @param \Jobs\Entity\Salary $salary
*
* @return self
*/
public function setSalary(Salary $salary)
{
$this->salary = $salary;

return $this;
}

/**
* @return \Jobs\Entity\Salary
*/
public function getSalary()
{
if (!$this->salary) {
$this->setSalary(new Salary());
}

return $this->salary;
}

/**
* returns an uri to the organization logo.
*
Expand Down

0 comments on commit 83671f8

Please sign in to comment.