Skip to content
Snippets Groups Projects
Commit 24205deb authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Add location for unsolicited applications to the mail template

parent 8524ff7c
No related branches found
No related tags found
2 merge requests!5Feature 1 6,!4Feature 1 6
......@@ -403,8 +403,14 @@ class JoblistController extends ActionController {
* @return array
*/
private function getApplicationMailMarkers($applyData): array {
$location = '';
if ($applyData->getCompany() !== NULL) {
$location = $applyData->getCompany()->getCity();
}
return [
'salutation' => $applyData->getGender(),
'location' => $location,
'firstname' => $applyData->getFirstName(),
'lastname' => $applyData->getLastName(),
'street' => $applyData->getStreet(),
......
......@@ -12,6 +12,12 @@ return [
'value' => 'Webdeveloper',
'description' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang.xlf:application_mail.marker.jobtitle'
],
[
'marker' => 'application.company.location',
'type' => \SGalinski\SgMail\Service\MailTemplateService::MARKER_TYPE_STRING,
'value' => 'München',
'description' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang.xlf:application_mail.marker.location'
],
[
'marker' => 'application.gender',
'type' => \SGalinski\SgMail\Service\MailTemplateService::MARKER_TYPE_STRING,
......
......@@ -45,6 +45,10 @@
<source>Last name</source>
<target>Nachname</target>
</trans-unit>
<trans-unit id="application_mail.marker.location" approved="yes">
<source>The location regarding the unsolicited application</source>
<target>Der Standort für die Initiativbewerbung</target>
</trans-unit>
<trans-unit id="application_mail.marker.message" approved="yes">
<source>Message</source>
<target>Bemerkungen</target>
......
......@@ -36,6 +36,9 @@
<trans-unit id="application_mail.marker.lastname">
<source>Last name</source>
</trans-unit>
<trans-unit id="application_mail.marker.location">
<source>The location regarding the unsolicited application</source>
</trans-unit>
<trans-unit id="application_mail.marker.message">
<source>Message</source>
</trans-unit>
......
Eine neue {f:if(condition: '{application.jobTitle}', then: 'Bewerbung als <b>{application.jobTitle}</b>.', else: 'Initiativbewerbung.')}
Eine neue {f:if(condition: '{application.jobTitle}', then: 'Bewerbung als <b>{application.jobTitle}</b>.', else: 'Initiativbewerbung für den Standort <b>{application.company.city}</b>.')}
Geschlecht: {f:if(condition: '{application.gender} == \'0\'', then: 'weiblich', else: 'männlich')}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment