From 8f2e89ed65f4da9ad9db1dacc917bb04be74cd0b Mon Sep 17 00:00:00 2001 From: Eniko Tot <eniko.tot@codebrewery.hu> Date: Thu, 11 Jan 2024 09:37:31 +0100 Subject: [PATCH] [FEATURE] Convert Job cards with Bootstrap 5 --- .../Private/Partials/Bootstrap5/Job.html | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Resources/Private/Partials/Bootstrap5/Job.html diff --git a/Resources/Private/Partials/Bootstrap5/Job.html b/Resources/Private/Partials/Bootstrap5/Job.html new file mode 100644 index 00000000..830854ca --- /dev/null +++ b/Resources/Private/Partials/Bootstrap5/Job.html @@ -0,0 +1,43 @@ +<div class="col-md-6 col-sm-6 col-xs-12"> + <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}"> + <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> + </f:if> + </div> + <div class="card-footer bg-light text-center"> + <f:link.action id="offer-{job.uid}" pageUid="{settings.applyPage}" controller="Joblist" action="applyForm" + pluginName="JobApplication" arguments="{jobId: job.uid}" class="btn btn-warning stretched-link w-100"> + <f:format.raw> + <f:translate key="frontend.jobDetailsCta" /> + </f:format.raw> + </f:link.action> + </div> + </div> +</div> \ No newline at end of file -- GitLab