Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_jobs
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_jobs
Commits
a4308248
Commit
a4308248
authored
7 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Using static info tables in frontend
parent
8aa072cb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Classes/Controller/JoblistController.php
+9
-0
9 additions, 0 deletions
Classes/Controller/JoblistController.php
Resources/Private/Templates/Joblist/ApplyForm.html
+2
-2
2 additions, 2 deletions
Resources/Private/Templates/Joblist/ApplyForm.html
with
11 additions
and
2 deletions
Classes/Controller/JoblistController.php
+
9
−
0
View file @
a4308248
...
...
@@ -30,12 +30,14 @@ use SGalinski\SgJobs\Domain\Model\JobApplication;
use
SGalinski\SgJobs\Property\TypeConverter\UploadedFileReferenceConverter
;
use
SGalinski\SgJobs\Service\FrontendFilterService
;
use
SGalinski\SgMail\Service\MailTemplateService
;
use
SJBR\StaticInfoTables\Domain\Repository\CountryRepository
;
use
TYPO3\CMS\Core\Log\LogLevel
;
use
TYPO3\CMS\Core\Log\LogManager
;
use
TYPO3\CMS\Core\Resource\ResourceFactory
;
use
TYPO3\CMS\Core\Utility\GeneralUtility
;
use
TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
;
use
TYPO3\CMS\Extbase\Mvc\Controller\ActionController
;
use
TYPO3\CMS\Extbase\Object\ObjectManager
;
/**
* The joblist plugin controller
...
...
@@ -121,6 +123,13 @@ class JoblistController extends ActionController {
$this
->
view
->
assign
(
'job'
,
$jobData
);
}
// display country options
$objectManager
=
GeneralUtility
::
makeInstance
(
ObjectManager
::
class
);
/** @var CountryRepository $countryRepository */
$countryRepository
=
$objectManager
->
get
(
CountryRepository
::
class
);
$countries
=
$countryRepository
->
findAllOrderedBy
(
'shortNameEn'
)
->
toArray
();
$this
->
view
->
assign
(
'countries'
,
$countries
);
$allowedMimeTypes
=
$this
->
settings
[
'allowedMimeTypes'
];
$this
->
view
->
assign
(
'allowedMimeTypes'
,
$allowedMimeTypes
);
$allowedFileExtensions
=
$this
->
settings
[
'allowedFileExtensions'
];
...
...
This diff is collapsed.
Click to expand it.
Resources/Private/Templates/Joblist/ApplyForm.html
+
2
−
2
View file @
a4308248
...
...
@@ -92,7 +92,7 @@
<p>
<label
for=
"apply-country"
><f:translate
key=
"frontend.apply.country"
/></label>
<f:form.
textfield
property=
"country"
id=
"apply-country"
/>
<f:form.
select
property=
"country"
id=
"apply-country"
options=
"{countries}"
optionLabelField=
"shortNameDe"
optionValueField=
"shortNameDe"
/>
<f:form.validationResults
for=
"applyData.country"
>
<f:for
each=
"{validationResults.errors}"
as=
"error"
>
<div
class=
"sg-jobs-validation-error"
>
...
...
@@ -104,7 +104,7 @@
<p>
<label
for=
"apply-nationality"
><f:translate
key=
"frontend.apply.nationality"
/></label>
<f:form.
textfield
property=
"nationality"
id=
"apply-nationality"
/>
<f:form.
select
property=
"nationality"
id=
"apply-nationality"
options=
"{countries}"
optionLabelField=
"shortNameDe"
optionValueField=
"shortNameDe"
/>
<f:form.validationResults
for=
"applyData.nationality"
>
<f:for
each=
"{validationResults.errors}"
as=
"error"
>
<div
class=
"sg-jobs-validation-error"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment