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
cb5aed06
Commit
cb5aed06
authored
1 year ago
by
Kevin von Spiczak
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] use company.contact if job.contact is empty
parent
f73cf535
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!46
AZM changes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Resources/Private/Templates/Joblist/ApplyForm.html
+59
-36
59 additions, 36 deletions
Resources/Private/Templates/Joblist/ApplyForm.html
with
59 additions
and
36 deletions
Resources/Private/Templates/Joblist/ApplyForm.html
+
59
−
36
View file @
cb5aed06
...
...
@@ -82,7 +82,14 @@
<p>
<f:format.raw><f:translate
key=
"frontend.job.via.post"
/></f:format.raw><br>
{job.company.name}
<br>
{job.contact.title} {job.contact.firstName} {job.contact.lastName}
<br>
<f:if
condition=
"{job.contact}"
>
<f:then>
{job.contact.title} {job.contact.firstName} {job.contact.lastName}
<br>
</f:then>
<f:else>
{job.company.contact.title} {job.company.contact.firstName} {job.company.contact.lastName}
<br>
</f:else>
</f:if>
{job.company.street}
<br>
<f:if
condition=
"{job.company.state}"
>
{job.company.state}
<br>
...
...
@@ -96,7 +103,14 @@
<f:format.raw><f:translate
key=
"frontend.job.via.email"
/></f:format.raw>
<br>
<f:comment>
<!-- Spam Protection (lib.parseFunc encodes adresses) -->
</f:comment>
<f:format.html
parseFuncTSPath=
"lib.parseFunc"
><a
href=
"mailto:{job.contact.email}"
><f:translate
key=
"frontend.emailContact"
/></a></f:format.html>
<f:if
condition=
"{job.contact}"
>
<f:then>
<f:format.html
parseFuncTSPath=
"lib.parseFunc"
><a
href=
"mailto:{job.contact.email}"
><f:translate
key=
"frontend.emailContact"
/></a></f:format.html>
</f:then>
<f:else>
<f:format.html
parseFuncTSPath=
"lib.parseFunc"
><a
href=
"mailto:{job.company.contact.email}"
><f:translate
key=
"frontend.emailContact"
/></a></f:format.html>
</f:else>
</f:if>
</p>
</f:if>
...
...
@@ -111,40 +125,12 @@
</div>
</div>
<f:if
condition=
"{job.contact}"
>
<div
class=
"highlight-box bg-card sgjobs-meta-box"
>
<div
class=
"default-content-element sg-jobs-contact-box"
>
<div
class=
"sg-jobs-contact-box__text"
>
<p
class=
"h4"
>
<f:translate
key=
"frontend.apply.contact"
/>
</p>
{job.contact.title} {job.contact.firstName} {job.contact.lastName}
<f:if
condition=
"{job.contact.phone}"
>
<br/>
{job.contact.phone}
</f:if>
<f:if
condition=
"{job.contact.email}"
>
<br/>
<f:if
condition=
"!{job.hideApplyByEmail}"
>
<p>
<f:comment>
<!-- Spam Protection (lib.parseFunc encodes adresses) -->
</f:comment>
<f:format.html
parseFuncTSPath=
"lib.parseFunc"
><a
href=
"mailto:{job.contact.email}"
>
<f:translate
key=
"frontend.emailContact"
/></a></f:format.html>
</p>
</f:if>
</f:if>
</div>
<f:if
condition=
"{job.contact.image}"
>
<f:image
image=
"{job.contact.image}"
maxWidth=
"100"
maxHeight=
"100"
alt=
"{job.contact.title} {job.contact.firstName} {job.contact.lastName}"
/>
</f:if>
</div>
<hr>
<div
class=
"default-content-element sgjobs-social-sharer"
>
<p
class=
"h4"
>
<f:translate
key=
"frontend.apply.recommend"
/>
</p>
<base:sharer/>
</div>
</div>
<f:then>
<f:render
section=
"contactBox"
arguments=
"{contact: job.contact, hideApplyByEmail: job.hideApplyByEmail}"
/>
</f:then>
<f:else>
<f:render
section=
"contactBox"
arguments=
"{contact: job.company.contact, hideApplyByEmail: job.hideApplyByEmail}"
/>
</f:else>
</f:if>
<f:if
condition=
"{job.attachment}"
>
<div
class=
"highlight-box bg-card sgjobs-meta-box"
>
...
...
@@ -693,3 +679,40 @@
<f:translate
key=
"frontend.apply.privacyPolicy.link"
/>
</f:link.typolink>
</f:section>
<f:section
name=
"contactBox"
>
<div
class=
"highlight-box bg-card sgjobs-meta-box"
>
<div
class=
"default-content-element sg-jobs-contact-box"
>
<div
class=
"sg-jobs-contact-box__text"
>
<p
class=
"h4"
>
<f:translate
key=
"frontend.apply.contact"
/>
</p>
{contact.title} {contact.firstName} {contact.lastName}
<f:if
condition=
"{contact.phone}"
>
<br/>
{contact.phone}
</f:if>
<f:if
condition=
"{contact.email}"
>
<br/>
<f:if
condition=
"!{hideApplyByEmail}"
>
<p>
<f:comment>
<!-- Spam Protection (lib.parseFunc encodes adresses) -->
</f:comment>
<f:format.html
parseFuncTSPath=
"lib.parseFunc"
><a
href=
"mailto:{contact.email}"
>
<f:translate
key=
"frontend.emailContact"
/></a></f:format.html>
</p>
</f:if>
</f:if>
</div>
<f:if
condition=
"{contact.image}"
>
<f:image
image=
"{contact.image}"
maxWidth=
"100"
maxHeight=
"100"
alt=
"{contact.title} {contact.firstName} {contact.lastName}"
/>
</f:if>
</div>
<hr>
<div
class=
"default-content-element sgjobs-social-sharer"
>
<p
class=
"h4"
>
<f:translate
key=
"frontend.apply.recommend"
/>
</p>
<base:sharer/>
</div>
</div>
</f:section>
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