Skip to content

Commit

Permalink
Merge pull request #37 from EscolaLMS/feature/STAR-40
Browse files Browse the repository at this point in the history
Add reminder varable
  • Loading branch information
HerbertIV authored Mar 28, 2022
2 parents 1b4ae11 + 5b1fec3 commit 3822e10
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Consultations/ReminderAboutTermVariables.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace EscolaLms\TemplatesEmail\Consultations;

class ReminderAboutTermVariables extends CommonConsultationVariables
{
public static function defaultSectionsContent(): array
{
return [
'title' => __('Report term ":consultation"', [
'consultation' => self::VAR_CONSULTATION_TITLE,
]),
'content' => self::wrapWithMjml(__('<h1>Hello :user_name!</h1><p>I would like to remind you about the upcoming consultation :consultation, which will take place :proposed_term.</p>', [
'user_name' => self::VAR_USER_NAME,
'consultation' => self::VAR_CONSULTATION_TITLE,
'proposed_term' => self::VAR_CONSULTATION_PROPOSED_TERM
]),),
];
}
}
3 changes: 3 additions & 0 deletions src/Providers/ConsultationTemplatesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

use EscolaLms\Consultations\Events\ApprovedTerm;
use EscolaLms\Consultations\Events\RejectTerm;
use EscolaLms\Consultations\Events\ReminderAboutTerm;
use EscolaLms\Consultations\Events\ReportTerm;
use EscolaLms\TemplatesEmail\Consultations\ApprovedTermVariables;
use EscolaLms\TemplatesEmail\Consultations\RejectTermVariables;
use EscolaLms\TemplatesEmail\Consultations\ReminderAboutTermVariables;
use EscolaLms\TemplatesEmail\Consultations\ReportTermVariables;
use EscolaLms\TemplatesEmail\Core\EmailChannel;
use Illuminate\Support\ServiceProvider;
Expand All @@ -19,5 +21,6 @@ public function boot()
Template::register(ApprovedTerm::class, EmailChannel::class, ApprovedTermVariables::class);
Template::register(RejectTerm::class, EmailChannel::class, RejectTermVariables::class);
Template::register(ReportTerm::class, EmailChannel::class, ReportTermVariables::class);
Template::register(ReminderAboutTerm::class, EmailChannel::class, ReminderAboutTermVariables::class);
}
}

0 comments on commit 3822e10

Please sign in to comment.