Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new fields jobs form (HNEE-612) #6

Merged
merged 4 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions Classes/Domain/Model/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ class Job extends AbstractEntity

protected string $sector;

protected string $requiredDegree;

protected string $contractualRelationship;

protected int $alumniRecommend = 0;

protected int $internationalsWelcome = 0;

/**
* employmentType
*
Expand Down Expand Up @@ -132,6 +140,46 @@ public function setSector(string $sector): void
$this->sector = $sector;
}

public function getRequiredDegree(): string
{
return $this->requiredDegree;
}

public function setRequiredDegree(string $requiredDegree): void
{
$this->requiredDegree = $requiredDegree;
}

public function getContractualRelationship(): string
{
return $this->contractualRelationship;
}

public function setContractualRelationship(string $contractualRelationship): void
{
$this->contractualRelationship = $contractualRelationship;
}

public function getAlumniRecommend(): int
{
return $this->alumniRecommend;
}

public function setAlumniRecommend(int $alumniRecommend): void
{
$this->alumniRecommend = $alumniRecommend;
}

public function getInternationalsWelcome(): int
{
return $this->internationalsWelcome;
}

public function setInternationalsWelcome(int $internationalsWelcome): void
{
$this->internationalsWelcome = $internationalsWelcome;
}

public function getWorkLocation(): string
{
return $this->workLocation;
Expand Down
42 changes: 42 additions & 0 deletions Configuration/TCA/tx_academicjobs_domain_model_job.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,42 @@
'default' => '',
],
],
'required_degree' => [
'exclude' => true,
'label' => 'LLL:EXT:academic_jobs/Resources/Private/Language/locallang.xlf:tx_academicjobs_domain_model_job.required_degree',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim',
'default' => '',
],
],
'contractual_relationship' => [
'exclude' => true,
'label' => 'LLL:EXT:academic_jobs/Resources/Private/Language/locallang.xlf:tx_academicjobs_domain_model_job.contractual_relationship',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim',
'default' => '',
],
],
'alumni_recommend' => [
'exclude' => true,
'label' => 'LLL:EXT:academic_jobs/Resources/Private/Language/locallang.xlf:tx_academicjobs_domain_model_job.alumni_recommend',
'config' => [
'type' => 'check',
'default' => 0,
],
],
'internationals_welcome' => [
'exclude' => true,
'label' => 'LLL:EXT:academic_jobs/Resources/Private/Language/locallang.xlf:tx_academicjobs_domain_model_job.internationals_welcome',
'config' => [
'type' => 'check',
'default' => 0,
],
],
'employment_type' => [
'exclude' => true,
'label' => 'LLL:EXT:academic_jobs/Resources/Private/Language/locallang.xlf:tx_academicjobs_domain_model_job.employment_type',
Expand Down Expand Up @@ -330,6 +366,12 @@
company_name,
sector,
--linebreak--,
required_degree,
contractual_relationship,
--linebreak--,
alumni_recommend,
internationals_welcome,
--linebreak--,
contact,
',
],
Expand Down
33 changes: 32 additions & 1 deletion Resources/Private/Language/de.locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,22 @@
<source>Sector</source>
<target>Branche Beschreibung</target>
</trans-unit>

<trans-unit id="tx_academicjobs_domain_model_job.required_degree" resname="tx_academicjobs_domain_model_job.required_degree">
<source>Required degree</source>
<target>Benötigter Abschluss</target>
</trans-unit>
<trans-unit id="tx_academicjobs_domain_model_job.contractual_relationship" resname="tx_academicjobs_domain_model_job.contractual_relationship">
<source>Contractual relationship</source>
<target>Vertragsverhältnis</target>
</trans-unit>
<trans-unit id="tx_academicjobs_domain_model_job.alumni_recommend" resname="tx_academicjobs_domain_model_job.alumni_recommend">
<source>Alumni recommends</source>
<target>Alumni empfiehlt</target>
</trans-unit>
<trans-unit id="tx_academicjobs_domain_model_job.internationals_welcome" resname="tx_academicjobs_domain_model_job.internationals_welcome">
<source>Internationals welcome</source>
<target>Internationals willkommen</target>
</trans-unit>
<trans-unit id="tx_academicjobs_domain_model_job.employment_type" resname="tx_academicjobs_domain_model_job.employment_type">
<source>Employment Type</source>
<target>Art des Stellenangebots</target>
Expand Down Expand Up @@ -285,6 +300,22 @@
<source>Industry</source>
<target>Branche</target>
</trans-unit>
<trans-unit id="tx_academicjobs.fe.form.text.required_degree">
<source>Required degree</source>
<target>Benötigter Abschluss</target>
</trans-unit>
<trans-unit id="tx_academicjobs.fe.form.text.contractual_relationship">
<source>Contractual relationship</source>
<target>Vertragsverhältnis</target>
</trans-unit>
<trans-unit id="tx_academicjobs.fe.form.text.alumni_recommend">
<source>Alumni recommends: </source>
<target>Alumni empfiehlt: </target>
</trans-unit>
<trans-unit id="tx_academicjobs.fe.form.text.internationals_welcome">
<source>Internationals welcome: </source>
<target>Internationals willkommen: </target>
</trans-unit>
<trans-unit id="tx_academicjobs.fe.form.text.job_location">
<source>Location</source>
<target>Ort</target>
Expand Down
24 changes: 24 additions & 0 deletions Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@
<trans-unit id="tx_academicjobs_domain_model_job.sector.description" resname="tx_academicjobs_domain_model_job.sector.description">
<source>Sector</source>
</trans-unit>
<trans-unit id="tx_academicjobs_domain_model_job.required_degree" resname="tx_academicjobs_domain_model_job.required_degree">
<source>Required degree</source>
</trans-unit>
<trans-unit id="tx_academicjobs_domain_model_job.contractual_relationship" resname="tx_academicjobs_domain_model_job.contractual_relationship">
<source>Contractual relationship</source>
</trans-unit>
<trans-unit id="tx_academicjobs_domain_model_job.alumni_recommend" resname="tx_academicjobs_domain_model_job.alumni_recommend">
<source>Alumni recommends</source>
</trans-unit>
<trans-unit id="tx_academicjobs_domain_model_job.internationals_welcome" resname="tx_academicjobs_domain_model_job.internationals_welcome">
<source>Internationals welcome</source>
</trans-unit>
<trans-unit id="tx_academicjobs_domain_model_job.employment_type" resname="tx_academicjobs_domain_model_job.employment_type">
<source>Employment Type</source>
</trans-unit>
Expand Down Expand Up @@ -218,6 +230,18 @@
<trans-unit id="tx_academicjobs.fe.form.text.job_industry">
<source>Industry</source>
</trans-unit>
<trans-unit id="tx_academicjobs.fe.form.text.required_degree">
<source>Required degree</source>
</trans-unit>
<trans-unit id="tx_academicjobs.fe.form.text.contractual_relationship">
<source>Contractual relationship</source>
</trans-unit>
<trans-unit id="tx_academicjobs.fe.form.text.alumni_recommend">
<source>Alumni recommends: </source>
</trans-unit>
<trans-unit id="tx_academicjobs.fe.form.text.internationals_welcome">
<source>Internationals welcome: </source>
</trans-unit>
<trans-unit id="tx_academicjobs.fe.form.text.job_location">
<source>Location</source>
</trans-unit>
Expand Down
4 changes: 4 additions & 0 deletions ext_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ CREATE TABLE tx_academicjobs_domain_model_job (
image int(11) unsigned NOT NULL DEFAULT '0',
company_name text NOT NULL DEFAULT '',
sector text NOT NULL DEFAULT '',
required_degree text NOT NULL DEFAULT '',
contractual_relationship text NOT NULL DEFAULT '',
alumni_recommend tinyint(1) unsigned DEFAULT '0' NOT NULL,
internationals_welcome tinyint(1) unsigned DEFAULT '0' NOT NULL,
employment_type int(11) DEFAULT '0' NOT NULL,
work_location varchar(255) NOT NULL DEFAULT '',
link varchar(255) NOT NULL DEFAULT '',
Expand Down
Loading