Skip to content
Snippets Groups Projects
Commit cfbe9144 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Add option to connect an unsolicited application to a job in the plugin...

[TASK] Add option to connect an unsolicited application to a job in the plugin settings, updated readme
parent a8e8cc07
No related branches found
No related tags found
No related merge requests found
......@@ -150,6 +150,13 @@ class JoblistController extends ActionController {
$this->view->assign('job', $jobData);
}
// look for a configured default job, in case of unsolicited application
if ($jobData === NULL && $this->settings['unsolicitedApplication']) {
/** @var Job $unsoliticedJob */
$unsoliticedJob = $this->jobRepository->findByUid($this->settings['unsolicitedApplication']);
$this->view->assign('job', $unsoliticedJob);
}
// display country options
$countryRepository = $this->objectManager->get(CountryRepository::class);
$countries = $countryRepository->findAllOrderedBy('shortNameEn')->toArray();
......
......@@ -28,6 +28,25 @@
</config>
</TCEforms>
</settings.redirectPage>
<settings.unsolicitedApplication>
<TCEforms>
<label>LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs.application_unsoliticed</label>
<config>
<type>group</type>
<internal_type>db</internal_type>
<allowed>tx_sgjobs_domain_model_job</allowed>
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<show_thumbs>1</show_thumbs>
<wizards>
<suggest>
<type>suggest</type>
</suggest>
</wizards>
</config>
</TCEforms>
</settings.unsolicitedApplication>
</el>
</ROOT>
</sDEF>
......
......@@ -38,6 +38,10 @@ The Backend module is found in the **WEB** section under the name **Job Offers**
You can create a new job offer by clicking on the **New Job Offer** button.
## Defining a default Job (unsoliticed Application)
In the plugin settings you can set a job offer, which will be used for all **unsoliticed Applications**.
If nothing is set, unsolicited applications are not connected to any job offer.
## Setting the contact email
When a user applies to a job offer an email will be send. The adress of this email comes either from the
**contact person** assigned to the job, ot if no contact person is set, you can set a default contact person
......
......@@ -25,6 +25,10 @@
<source>Redirect page after form submit</source>
<target>Weiterleitungsziel nach abschicken des Formulars</target>
</trans-unit>
<trans-unit id="tx_sgjobs.application_unsoliticed" approved="yes">
<source>Job for unsoliticed application</source>
<target>Job für Initiativbewerbung</target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_base" approved="yes">
<source>Base Table</source>
<target>Basis-Tabelle</target>
......
......@@ -21,6 +21,9 @@
<trans-unit id="tx_sgjobs.application_redirect_page">
<source>Redirect page after form submit</source>
</trans-unit>
<trans-unit id="tx_sgjobs.application_unsoliticed">
<source>Job for unsoliticed application</source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_base">
<source>Base Table</source>
</trans-unit>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment