-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reworked notification email into layout for reusability * Send rejection email to staff when time entry is rejected * Added WebUrl to server options, send email notification to PM when time is resubmitted. * Added BackgroundSendTimeEntryReminderEmail recurring job * Added BackgroundSendTimeSubmissionReminderEmail recurring job
- Loading branch information
1 parent
34f19fc
commit da5a436
Showing
15 changed files
with
318 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,4 @@ | ||
@model HQ.Abstractions.Emails.NotificationEmail | ||
<mj-column> | ||
<mj-text> | ||
@if (!String.IsNullOrEmpty(Model.Heading)) | ||
{ | ||
<h1 class="heading-1">@Model.Heading</h1> | ||
} | ||
@if (!String.IsNullOrEmpty(Model.Message)) | ||
{ | ||
<p>@Model.Message</p> | ||
} | ||
</mj-text> | ||
@if (!String.IsNullOrEmpty(Model.ButtonLabel) && Model.ButtonUrl != null) | ||
{ | ||
<mj-button mj-class="btn" href="@Model.ButtonUrl" target="_blank">@Model.ButtonLabel</mj-button> | ||
} | ||
</mj-column> | ||
@{ | ||
Layout = "_LayoutEmailNotificationHTML"; | ||
} |
60 changes: 17 additions & 43 deletions
60
src/dotnet/HQ.Email/Views/Emails/HTML/RejectTimeEntry.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,20 @@ | ||
@model HQ.Abstractions.Emails.RejectTimeEntryEmail | ||
<mj-column> | ||
<mj-text> | ||
@if (!String.IsNullOrEmpty(Model.Heading)) | ||
{ | ||
<h1 class="heading-1">@Model.Heading</h1> | ||
} | ||
@if (!String.IsNullOrEmpty(Model.Message)) | ||
{ | ||
<p>@Model.Message</p> | ||
} | ||
@if (!String.IsNullOrEmpty(Model.Date)) | ||
{ | ||
<div><strong>Date:</strong> @Model.Date</div> | ||
} | ||
@if (!String.IsNullOrEmpty(Model.ChargeCode)) | ||
{ | ||
<div><strong>Charge Code:</strong> @Model.ChargeCode</div> | ||
} | ||
@if (!String.IsNullOrEmpty(Model.Client)) | ||
{ | ||
<div><strong>Client:</strong> @Model.Client</div> | ||
} | ||
@if (!String.IsNullOrEmpty(Model.Project)) | ||
{ | ||
<div><strong>Project:</strong> @Model.Project</div> | ||
} | ||
@if (!String.IsNullOrEmpty(Model.ActivityTask)) | ||
{ | ||
<div><strong>Activity/Task:</strong> @Model.ActivityTask</div> | ||
} | ||
@if (!String.IsNullOrEmpty(Model.Description)) | ||
{ | ||
<div><strong>Description:</strong> @Model.Description</div> | ||
} | ||
<br> | ||
@if (!String.IsNullOrEmpty(Model.ReasonForRejection)) | ||
{ | ||
<div><strong>Reason for Rejection:</strong> @Model.ReasonForRejection</div> | ||
} | ||
</mj-text> | ||
@if (!String.IsNullOrEmpty(Model.ButtonLabel) && Model.ButtonUrl != null) | ||
@{ | ||
Layout = "_LayoutEmailNotificationHTML"; | ||
} | ||
<mj-text> | ||
<div><strong>Date:</strong> @Model.Date</div> | ||
<div><strong>Hours:</strong> @Model.Hours.ToString("0.00")</div> | ||
<div><strong>Charge Code:</strong> @Model.ChargeCode</div> | ||
<div><strong>Client:</strong> @Model.Client</div> | ||
<div><strong>Project:</strong> @Model.Project</div> | ||
<div><strong>Activity/Task:</strong> @Model.ActivityTask</div> | ||
<div><strong>Description:</strong> @Model.Description</div> | ||
</mj-text> | ||
<mj-text> | ||
@if (!String.IsNullOrEmpty(Model.ReasonForRejection)) | ||
{ | ||
<mj-button mj-class="btn" href="@Model.ButtonUrl" target="_blank">@Model.ButtonLabel</mj-button> | ||
<div><strong>Reason for Rejection:</strong> @Model.ReasonForRejection</div> | ||
} | ||
</mj-column> | ||
<div><strong>Rejected By :</strong> @Model.RejectedBy</div> | ||
</mj-text> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/dotnet/HQ.Email/Views/Shared/_LayoutEmailNotificationHTML.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@model HQ.Abstractions.Emails.NotificationEmail | ||
@{ | ||
Layout = "_LayoutEmailHTML"; | ||
} | ||
<mj-column> | ||
<mj-text> | ||
@if (!String.IsNullOrEmpty(Model.Heading)) | ||
{ | ||
<h1 class="heading-1">@Model.Heading</h1> | ||
} | ||
@if (!String.IsNullOrEmpty(Model.Message)) | ||
{ | ||
@Model.Message | ||
} | ||
</mj-text> | ||
@RenderBody() | ||
@if (!String.IsNullOrEmpty(Model.ButtonLabel) && Model.ButtonUrl != null) | ||
{ | ||
<mj-button mj-class="btn" href="@Model.ButtonUrl" target="_blank">@Model.ButtonLabel</mj-button> | ||
} | ||
</mj-column> |
20 changes: 20 additions & 0 deletions
20
src/dotnet/HQ.Email/Views/Shared/_LayoutEmailNotificationText.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@model HQ.Abstractions.Emails.NotificationEmail | ||
@{ | ||
Layout = "_LayoutEmailText"; | ||
} | ||
@if (!String.IsNullOrEmpty(Model.Heading)) | ||
{ | ||
<text>@Model.Heading</text> | ||
<text>---</text> | ||
<text></text> | ||
} | ||
@if (!String.IsNullOrEmpty(Model.Message)) | ||
{ | ||
<text>@Model.Message</text> | ||
<text></text> | ||
} | ||
@RenderBody() | ||
@if (!String.IsNullOrEmpty(Model.ButtonLabel) && Model.ButtonUrl != null) | ||
{ | ||
<text>@Model.ButtonLabel: @Model.ButtonUrl</text> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.