diff --git a/Configuration/TCA/tx_sgjobs_domain_model_job.php b/Configuration/TCA/tx_sgjobs_domain_model_job.php index 96cc397ebed25761a878238928b778d38a46cb11..6046a92817c77861a6bc5e1130cbe775b23609b1 100644 --- a/Configuration/TCA/tx_sgjobs_domain_model_job.php +++ b/Configuration/TCA/tx_sgjobs_domain_model_job.php @@ -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'] + ] + ] ] ], ]; diff --git a/ext_tables.sql b/ext_tables.sql index f6d4e3e94c65e1a4ab6b89cc96a1d1b2dfe04b8d..1d52397bb122ef9cb788c0b860befe7dd234f939 100644 --- a/ext_tables.sql +++ b/ext_tables.sql @@ -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,