Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

feat: Custom email for closed and archived conversation #96

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ final class CreateCorrespondenceRecord extends AbstractCommand

public const TYPE_STANDARD = 'standard';
public const TYPE_CONTINUATION = 'continuation';
public const TYPE_CLOSED_CONVERSATION = 'conversation';

protected $document;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function handleCommand(CommandInterface $command): Result
[
'licence' => $conversation->getRelatedLicence(),
'document' => $documentResult->getId('document'),
'type' => CreateCorrespondenceRecord::TYPE_STANDARD,
'type' => CreateCorrespondenceRecord::TYPE_CLOSED_CONVERSATION,
],
),
),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<p>Annwyl weithredwr,</p>

<p><?php echo $this->translate('email.licensing-information.continuation.body'); ?></p>

<p>
<a href="<?php echo $this->escapeHtml($this->url); ?>">Mewngofnodi i'ch cyfrif</a>
</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Annwyl weithredwr,

<?php echo $this->translate('email.licensing-information.continuation.body'); ?>

Mewngofnodi i'ch cyfrif <?php echo $this->url; ?>.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<p>Dear operator,</p>

<p><?php echo $this->translate('email.licensing-information.continuation.body'); ?></p>

<p>
<a href="<?php echo $this->escapeHtml($this->url); ?>">Sign in to your account</a>
</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Dear operator,

<?php echo $this->translate('email.licensing-information.continuation.body'); ?>

Sign in to your account at <?php echo $this->url; ?>.
Loading