Skip to content
Snippets Groups Projects
Commit cde36c3f authored by Tim Wagner's avatar Tim Wagner
Browse files

[TASK] Add employment types multi-select to job TCA

parent 57826dfa
No related branches found
No related tags found
1 merge request!20[FEATURE] Extended TCAs for Structured Data (SEO)
......@@ -52,7 +52,7 @@ return call_user_func(
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title, path_segment, job_id, department, hide_apply_by_email, hide_apply_by_postal, featured_offer, start_date, alternative_start_date,
company, task, qualification, description, contact',
company, task, qualification, description, contact','employment_types',
],
'types' => [
'1' => [
......@@ -62,6 +62,7 @@ return call_user_func(
department,
company,
contact,
employment_types,
description,
--div--; LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:tca.qualification_tab, task, qualification,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime',
......@@ -341,6 +342,25 @@ return call_user_func(
]
],
]
],
'employment_types' => [
'exclude' => TRUE,
'l10n_mode' => 'exclude',
'label' => 'Employment Types', // TODO Translate label
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'items' => [
['FULL_TIME', 'FULL_TIME'],
['PART_TIME', 'PART_TIME'],
['CONTRACTOR', 'CONTRACTOR'],
['TEMPORARY', 'TEMPORARY'],
['INTERN', 'INTERN'],
['VOLUNTEER', 'VOLUNTEER'],
['PER_DIEM', 'PER_DIEM'],
['OTHER', 'OTHER']
]
]
]
],
];
......
......@@ -11,6 +11,7 @@ CREATE TABLE tx_sgjobs_domain_model_job (
alternative_start_date text DEFAULT '' NOT NULL,
start_date int(11) unsigned DEFAULT '0' NOT NULL,
company text DEFAULT '' NOT NULL,
employment_types text DEFAULT '' NOT NULL,
description text DEFAULT '' NOT NULL,
department int(11) DEFAULT '0' NOT NULL,
contact 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