feat: include jobprofile placeholder in email texts
addresses #869armp40
This commit is contained in:
@@ -63,11 +63,11 @@ texts:
|
|||||||
|
|
||||||
assignment_called_off:
|
assignment_called_off:
|
||||||
label: 'Reise abgesagt'
|
label: 'Reise abgesagt'
|
||||||
placeholders: ['destination']
|
placeholders: ['destination', 'jobProfile']
|
||||||
subject: 'Die Reise zu deinem Einsatz wurde abgesagt'
|
subject: 'Die Reise zu deinem Einsatz wurde abgesagt'
|
||||||
headline: 'Hallo aus Köln,'
|
headline: 'Hallo aus Köln,'
|
||||||
body: |-
|
body: |-
|
||||||
leider mussten wir die Reise zu deinem Einsatz '{destination}' absagen, sodass dein Einsatz nicht stattfinden kann.
|
leider mussten wir die Reise zu deinem Einsatz als {jobProfile} ('{destination}') absagen, sodass dein Einsatz nicht stattfinden kann.
|
||||||
|
|
||||||
Bitte entschuldige die Umstände!
|
Bitte entschuldige die Umstände!
|
||||||
|
|
||||||
@@ -75,11 +75,11 @@ texts:
|
|||||||
|
|
||||||
disposition_called_off:
|
disposition_called_off:
|
||||||
label: 'Einsatz abgesagt'
|
label: 'Einsatz abgesagt'
|
||||||
placeholders: ['destination', 'reason']
|
placeholders: ['destination', 'jobProfile', 'reason']
|
||||||
subject: 'Dein Einsatz wurde abgesagt'
|
subject: 'Dein Einsatz wurde abgesagt'
|
||||||
headline: 'Hallo aus Köln,'
|
headline: 'Hallo aus Köln,'
|
||||||
body: |-
|
body: |-
|
||||||
leider mussten wir deinen Einsatz '{destination}' absagen, sodass dein Einsatz nicht stattfinden kann:
|
leider mussten wir deinen Einsatz als {jobProfile} ('{destination}') absagen, sodass dein Einsatz nicht stattfinden kann:
|
||||||
|
|
||||||
{reason}
|
{reason}
|
||||||
|
|
||||||
|
|||||||
@@ -240,6 +240,7 @@ class EmailNotificationSubscriber implements EventSubscriberInterface
|
|||||||
|
|
||||||
$this->mailer->createAndSendText(EmailTextKey::DISPOSITION_CALLED_OFF, [
|
$this->mailer->createAndSendText(EmailTextKey::DISPOSITION_CALLED_OFF, [
|
||||||
'destination' => (string) $disposition->getAssignment()->getDestination(),
|
'destination' => (string) $disposition->getAssignment()->getDestination(),
|
||||||
|
'jobProfile' => $disposition->getAssignment()->getJobProfile()?->getName(),
|
||||||
'reason' => $disposition->getCalledOffReason(),
|
'reason' => $disposition->getCalledOffReason(),
|
||||||
], [
|
], [
|
||||||
'to' => $teamer->getCommunication()->getEmail(),
|
'to' => $teamer->getCommunication()->getEmail(),
|
||||||
@@ -261,6 +262,7 @@ class EmailNotificationSubscriber implements EventSubscriberInterface
|
|||||||
|
|
||||||
$this->mailer->createAndSendText(EmailTextKey::ASSIGNMENT_CALLED_OFF, [
|
$this->mailer->createAndSendText(EmailTextKey::ASSIGNMENT_CALLED_OFF, [
|
||||||
'destination' => (string) $assignment->getDestination(),
|
'destination' => (string) $assignment->getDestination(),
|
||||||
|
'jobProfile' => $assignment->getJobProfile()?->getName(),
|
||||||
], [
|
], [
|
||||||
'to' => $teamer->getCommunication()->getEmail(),
|
'to' => $teamer->getCommunication()->getEmail(),
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user