From 572aa1246fcdc7b85c8e0c910ff302021b6a0b4e Mon Sep 17 00:00:00 2001 From: Eniko Tot <eniko.tot@codebrewery.hu> Date: Mon, 15 Jan 2024 18:33:05 +0100 Subject: [PATCH] [FEATURE] Convert Related jobs teaser cards --- .../Private/Partials/Bootstrap5/Teaser.html | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Resources/Private/Partials/Bootstrap5/Teaser.html diff --git a/Resources/Private/Partials/Bootstrap5/Teaser.html b/Resources/Private/Partials/Bootstrap5/Teaser.html new file mode 100644 index 00000000..48e8ad33 --- /dev/null +++ b/Resources/Private/Partials/Bootstrap5/Teaser.html @@ -0,0 +1,47 @@ +<div class="col-md"> + <div class="default-content-element"> + <div class="card shadow"> + <div class="card-header text-center bg-light"> + <h2 class="card-title h3">{job.title}</h2> + </div> + <div class="card-body"> + <f:if condition="{job.description}"> + <f:format.html parseFuncTSPath="lib.parseFunc_RTE">{job.description}</f:format.html> + </f:if> + <f:if condition="{job.qualification}"> + <div class="sgjobs-highlight-area"> + <ul> + <li> + <f:format.raw><f:translate key="frontend.jobStart" /></f:format.raw> + <f:if condition="{job.alternativeStartDate}"> + <f:then> + {job.alternativeStartDate} + </f:then> + <f:else> + <f:format.date date="{job.startDate}" format="d.m.Y" /> + </f:else> + </f:if> + </li> + <li> + <f:for each="{job.companies}" as="company" iteration="iterator"> + {company.city}{f:if(condition: '!{iterator.isLast} || {iterator.isLast} && {job.telecommutePossible} ', then: ', ')} + </f:for> + <f:if condition="{job.telecommutePossible}"> + <f:translate key="frontend.remote" /> + </f:if> + </li> + </ul> + </div> + </f:if> + </div> + <div class="card-footer bg-light text-center"> + <f:link.action class="sg-jobs-job card shadow" id="offer-{job.uid}" pageUid="{applyPageUid}" controller="Joblist" action="applyForm" + pluginName="JobApplication" arguments="{jobId: job.uid}" class="btn btn-default stretched-link w-100"> + <f:format.raw> + <f:translate key="frontend.jobDetailsCta" /> + </f:format.raw> + </f:link.action> + </div> + </div> + </div> +</div> -- GitLab