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
c5118a18
Commit
c5118a18
authored
1 year ago
by
Eniko Tot
Browse files
Options
Downloads
Patches
Plain Diff
[WIP] Refactoring ApplyForm
parent
32e357a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!50
Bootstrap 5 Support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Resources/Private/Templates/Bootstrap5/Joblist/ApplyForm.html
+9
-16
9 additions, 16 deletions
...urces/Private/Templates/Bootstrap5/Joblist/ApplyForm.html
with
9 additions
and
16 deletions
Resources/Private/Templates/Bootstrap5/Joblist/ApplyForm.html
+
9
−
16
View file @
c5118a18
...
...
@@ -274,32 +274,27 @@
<div
class=
"col"
>
<f:render
section=
"formTextField"
arguments=
"{field-id: 'firstName', field-text: 'first_name', required: 'required'}"
/>
<f:render
section=
"formValidation"
arguments=
"{form-field: 'firstName'}"
/>
</div>
<div
class=
"col"
>
<f:render
section=
"formTextField"
arguments=
"{field-id: 'lastName', field-text: 'last_name', required: 'required'}"
/>
<f:render
section=
"formValidation"
arguments=
"{form-field: 'lastName'}"
/>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-6"
>
<f:render
section=
"formTextField"
arguments=
"{field-id: 'street', field-text: 'street', required: 'required'}"
/>
<f:render
section=
"formValidation"
arguments=
"{form-field: 'street'}"
/>
</div>
<div
class=
"col-4"
>
<f:render
section=
"formTextField"
arguments=
"{field-id: 'city', field-text: 'city', required: 'required'}"
/>
<f:render
section=
"formValidation"
arguments=
"{form-field: 'city'}"
/>
</div>
<div
class=
"col-2"
>
<f:render
section=
"formTextField"
arguments=
"{field-id: 'zip', field-text: 'zip', required: 'required'}"
/>
<f:render
section=
"formValidation"
arguments=
"{form-field: 'zip'}"
/>
</div>
</div>
<div
class=
"row"
>
...
...
@@ -322,7 +317,6 @@
<div
class=
"col"
>
<f:render
section=
"formTextField"
arguments=
"{field-id: 'education', field-text: 'education', required: 'required'}"
/>
<f:render
section=
"formValidation"
arguments=
"{form-field: 'education'}"
/>
</div>
<div
class=
"col"
>
...
...
@@ -337,12 +331,10 @@
<div
class=
"col"
>
<f:render
section=
"formTextField"
arguments=
"{field-id: 'phone', field-text: 'phone', required: 'required'}"
/>
<f:render
section=
"formValidation"
arguments=
"{form-field: 'phone'}"
/>
</div>
<div
class=
"col"
>
<f:render
section=
"formTextField"
arguments=
"{field-id: 'mobile', field-text: 'mobile'}"
/>
<f:render
section=
"formValidation"
arguments=
"{form-field: 'mobile'}"
/>
</div>
</div>
<div
class=
"row"
>
...
...
@@ -397,7 +389,7 @@
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group jobs-upload-group"
>
<label
for=
"apply-cv"
class=
"
smart
-label filled"
>
<label
for=
"apply-cv"
class=
"
form
-label filled"
>
<f:translate
key=
"frontend.apply.cv"
/>
(
<f:translate
key=
"frontend.apply.allowed_file_extensions"
/>
...
...
@@ -444,7 +436,7 @@
<div
class=
"col-xs-12"
>
<div
class=
"form-group jobs-upload-group"
>
<label
for=
"apply-certificate"
class=
"
smart
-label filled"
>
<label
for=
"apply-certificate"
class=
"
form
-label filled"
>
<f:translate
key=
"frontend.apply.certificate"
/>
(
<f:translate
key=
"frontend.apply.allowed_file_extensions"
/>
...
...
@@ -491,7 +483,7 @@
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<label
for=
"apply-message"
class=
"
smart
-label"
>
<label
for=
"apply-message"
class=
"
form
-label"
>
<f:translate
key=
"frontend.apply.message"
/>
</label>
<f:form.textarea
class=
"form-control"
rows=
"10"
property=
"message"
id=
"apply-message"
...
...
@@ -611,14 +603,15 @@
</label>
<f:form.textfield
property=
"{field-id}"
id=
"apply-{field-id}"
class=
"form-control"
placeholder=
"{f:translate(key:'frontend.apply.{field-text}')}"
required=
"{required}"
/>
<f:render
section=
"formValidation"
arguments=
"{form-field: '{field-id}'}"
/>
</f:section>
<f:section
name=
"formValidation"
>
<f:form.validationResults
for=
"applyData.{form-field}"
>
<ul
class=
"text-danger pt-2"
>
<f:for
each=
"{validationResults.errors}"
as=
"error"
>
<li>
{error.message}
</li>
</f:for>
</ul>
<ul
class=
"text-danger pt-2"
>
<f:for
each=
"{validationResults.errors}"
as=
"error"
>
<li>
{error.message}
</li>
</f:for>
</ul>
</f:form.validationResults>
</f:section>
\ No newline at end of file
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