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

[TASK] Adding applyByMail and applyByPostal section to job offers

parent f944f307
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,16 @@ class Job extends AbstractEntity {
*/
protected $featuredOffer = FALSE;
/**
* @var bool
*/
protected $applyByEmail = TRUE;
/**
* @var bool
*/
protected $applyByPostal = TRUE;
/**
* @var string $alternativeStartDate
*/
......@@ -240,4 +250,32 @@ class Job extends AbstractEntity {
public function setFeaturedOffer($featuredOffer) {
$this->featuredOffer = $featuredOffer;
}
/**
* @return bool
*/
public function isApplyByEmail() {
return $this->applyByEmail;
}
/**
* @param bool $applyByEmail
*/
public function setApplyByEmail($applyByEmail) {
$this->applyByEmail = (boolean) $applyByEmail;
}
/**
* @return bool
*/
public function isApplyByPostal() {
return $this->applyByPostal;
}
/**
* @param bool $applyByPostal
*/
public function setApplyByPostal($applyByPostal) {
$this->applyByPostal = (boolean) $applyByPostal;
}
}
......@@ -26,12 +26,12 @@ return [
'Resources/Public/Icons/tx_sgjobs_domain_model_job.svg'
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title, job_id, area, featured_offer, start_date, alternative_start_date,
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title, job_id, area, apply_by_email, apply_by_postal, featured_offer, start_date, alternative_start_date,
company, task, qualification, description, contact',
],
'types' => [
'1' => [
'showitem' => '--palette--;;sysLanguageAndHidden,title, job_id, --palette--;;palette_title_start,,--palette--;;palette_area_function,
'showitem' => '--palette--;;sysLanguageAndHidden,title, job_id, --palette--;;palette_title_start,,--palette--;;palette_apply_function,,--palette--;;palette_area_function,
--palette--;;palette_location_contact, description, --div--; LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tca.qualification_tab, task, qualification, div;;richtext[*]:rte_transform[mode=ts],
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime',
],
......@@ -42,6 +42,7 @@ return [
'canNotCollapse' => 1,
],
'palette_title_start' => ['showitem' => 'start_date, alternative_start_date', 'canNotCollapse' => 1],
'palette_apply_function' => ['showitem' => 'apply_by_email, apply_by_postal', 'canNotCollapse' => 1],
'palette_area_function' => ['showitem' => 'area, featured_offer', 'canNotCollapse' => 1],
'palette_location_contact' => ['showitem' => 'company, contact', 'canNotCollapse' => 1]
],
......@@ -160,6 +161,20 @@ return [
'type' => 'check',
],
],
'apply_by_email' => [
'exclude' => 1,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.applyByEmail',
'config' => [
'type' => 'check',
],
],
'apply_by_postal' => [
'exclude' => 1,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.applyByPostal',
'config' => [
'type' => 'check',
],
],
'start_date' => [
'exclude' => 1,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.start_date',
......
......@@ -141,6 +141,14 @@
<source><![CDATA[Page containing the application form]]></source>
<target><![CDATA[Seite, die das Bewerbungs-Formular enthält]]></target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.applyByEmail" approved="yes">
<source><![CDATA[Display apply by email section]]></source>
<target><![CDATA[Bewerbung per E-Mail einblenden]]></target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.applyByPostal" approved="yes">
<source><![CDATA[Display apply by postal service section]]></source>
<target><![CDATA[Bewerbung per Post einblenden]]></target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.area" approved="yes">
<source><![CDATA[Department]]></source>
<target><![CDATA[Bereich]]></target>
......
......@@ -111,6 +111,12 @@
<trans-unit id="tx_sgjobs_domain_model_job.application_form_page">
<source><![CDATA[Page containing the application form]]></source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.applyByEmail">
<source><![CDATA[Display apply by email section]]></source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.applyByPostal">
<source><![CDATA[Display apply by postal service section]]></source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.area">
<source><![CDATA[Department]]></source>
</trans-unit>
......
......@@ -14,6 +14,8 @@ CREATE TABLE tx_sgjobs_domain_model_job (
area text DEFAULT '' NOT NULL,
contact int(11) unsigned DEFAULT '0' NOT NULL,
featured_offer tinyint(4) unsigned DEFAULT '0' NOT NULL,
apply_by_email tinyint(4) unsigned DEFAULT '1' NOT NULL,
apply_by_postal tinyint(4) unsigned DEFAULT '1' NOT NULL,
-- TYPO3 fields
sorting int(11) unsigned DEFAULT '0' NOT NULL,
......
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