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

Commit

Permalink
feat: Custom email for closed and archived conversation (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
wadedvsa authored Mar 7, 2024
1 parent 5483fcd commit 41038d5
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 1 deletion.
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; ?>.

0 comments on commit 41038d5

Please sign in to comment.