Skip to content
Snippets Groups Projects
Commit ca09fe73 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[FEATURE] Add link to allow external job application URLs, some cleanup, TCA...

[FEATURE] Add link to allow external job application URLs, some cleanup, TCA restructured a little bit
parent 3fba6d70
No related branches found
No related tags found
No related merge requests found
......@@ -34,13 +34,6 @@ use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
* The Job model
*/
class Job extends AbstractEntity {
/**
* Job constructor.
*/
public function __construct() {
$this->attachment = new ObjectStorage();
}
/**
* @var string $title
*/
......@@ -172,6 +165,16 @@ class Job extends AbstractEntity {
*/
protected $maxSalary = '';
/** @var string */
protected $applyExternalLink = '';
/**
* Job constructor.
*/
public function __construct() {
$this->attachment = new ObjectStorage();
}
/**
* @return string
*/
......@@ -539,4 +542,18 @@ class Job extends AbstractEntity {
public function setMaxSalary(string $maxSalary): void {
$this->maxSalary = $maxSalary;
}
/**
* @return string
*/
public function getApplyExternalLink() {
return $this->applyExternalLink;
}
/**
* @param string $applyExternalLink
*/
public function setApplyExternalLink(string $applyExternalLink) {
$this->applyExternalLink = $applyExternalLink;
}
}
......@@ -36,7 +36,7 @@ $columns = [
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'dividers2tabs' => TRUE,
'searchFields' => 'title, job_id, path_segment, start_date, alternative_start_date, location, company, contact, department, experience_level',
'searchFields' => 'title, job_id, path_segment, start_date, alternative_start_date, location, apply_external_link, description, task, qualification',
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'origUid' => 't3_origuid',
......@@ -58,13 +58,12 @@ $columns = [
'showitem' => '--palette--;;sysLanguageAndHidden, --palette--;;palette_title,
--palette--;;palette_title_start_location,
--palette--;;palette_apply_function,
apply_external_link,
department,
experience_level,
company,
contact,
description,
attachment,
--div--; LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tca.qualification_tab, task, qualification,
--div--; LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tca.qualification_tab, description, task, qualification, attachment,
--div--; LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tca.seo_tab,
--palette--;;palette_location_specifications,
employment_types,
......@@ -511,6 +510,15 @@ $columns = [
'max' => 15,
],
],
'apply_external_link' => [
'exclude' => TRUE,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.apply_external_link',
'config' => [
'type' => 'input',
'size' => 512,
'eval' => 'trim'
],
],
],
];
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '10.3.0', '<')) {
......
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2019-10-08T14:28:53Z">
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2021-10-17T20:44:41Z">
<header>
<type>database</type>
<description>General language labels used in frontend and backend.</description>
......@@ -189,6 +189,10 @@
<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.apply_external_link" approved="yes">
<source><![CDATA[External Application URL (If set, the apply form will be disabled)]]></source>
<target><![CDATA[Externe URL für Bewerbungen (Falls gesetzt, wird das Bewerbungsformular deaktiviert)]]></target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.attachment" approved="yes">
<source><![CDATA[Attachment]]></source>
<target><![CDATA[Anhang]]></target>
......@@ -511,4 +515,4 @@
</trans-unit>
</body>
</file>
</xliff>
</xliff>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2019-10-08T14:28:53Z">
<file source-language="en" datatype="plaintext" original="messages" date="2021-10-17T20:44:41Z">
<header>
<type>database</type>
<description>General language labels used in frontend and backend.</description>
......@@ -147,6 +147,9 @@
<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.apply_external_link">
<source><![CDATA[External Application URL (If set, the apply form will be disabled)]]></source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.attachment">
<source><![CDATA[Attachment]]></source>
</trans-unit>
......@@ -389,4 +392,4 @@
</trans-unit>
</body>
</file>
</xliff>
</xliff>
\ No newline at end of file
This diff is collapsed.
......@@ -24,7 +24,8 @@ CREATE TABLE tx_sgjobs_domain_model_job (
contact int(11) unsigned DEFAULT '0' NOT NULL,
featured_offer tinyint(4) unsigned DEFAULT '0' NOT NULL,
hide_apply_by_email tinyint(4) unsigned DEFAULT '0' NOT NULL,
hide_apply_by_postal tinyint(4) unsigned DEFAULT '0' NOT NULL
hide_apply_by_postal tinyint(4) unsigned DEFAULT '0' NOT NULL,
apply_external_link varchar(512) DEFAULT '' NOT NULL
);
CREATE TABLE tx_sgjobs_domain_model_department (
......
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