From c45c56b169aeb346454f55d8af4b9e973eac8e27 Mon Sep 17 00:00:00 2001 From: Tim Wagner <tim.wagner@sgalinski.de> Date: Tue, 8 Oct 2019 13:26:37 +0200 Subject: [PATCH] [TASK] Add salary informatio to job schema --- .../Private/Partials/ApplyFormSchema.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Resources/Private/Partials/ApplyFormSchema.html b/Resources/Private/Partials/ApplyFormSchema.html index caa5ecb4..04fcaace 100644 --- a/Resources/Private/Partials/ApplyFormSchema.html +++ b/Resources/Private/Partials/ApplyFormSchema.html @@ -19,6 +19,25 @@ "validThrough": "{f:format.date(date: job.validThrough, format: 'Y-m-d')}", </f:if> + <f:if condition="{job.salaryCurrency} && {job.baseSalary} > 0"> + "baseSalary": {leftBrace} + "@type": "MonetaryAmount", + "currency": "{job.salaryCurrency}", + "value": {leftBrace} + "@type": "QuantitativeValue", + <f:if condition="{job.baseSalary} === {job.maxSalary}"> + <f:then> + "value": {job.baseSalary}, + </f:then> + <f:else> + "minValue": {job.baseSalary}, + "maxValue": {job.maxSalary}, + </f:else> + </f:if> + "unitText": "{job.salaryUnit}" + {rightBrace} + {rightBrace}, + </f:if> <f:if condition="{job.telecommutePossible}"> "jobLocationType": "TELECOMMUTE", -- GitLab