-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5355 from bcgov/origin/dev-marshal-SS-3968
[FOIMOD-3389] add generic cover email template
- Loading branch information
Showing
7 changed files
with
60 additions
and
18 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
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
32 changes: 32 additions & 0 deletions
32
request-management-api/migrations/versions/5b9b19213803_generic_cover_template.py
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,32 @@ | ||
"""empty message | ||
Revision ID: 5b9b19213803 | ||
Revises: 3e8203b24730 | ||
Create Date: 2024-08-09 15:35:11.747935 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '5b9b19213803' | ||
down_revision = '3e8203b24730' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by FAlembic - please adjust! ### | ||
op.execute(""" | ||
INSERT INTO public."ApplicantCorrespondenceTemplates"( documenturipath, "name", description, active, "version", created_at, createdby, display) | ||
VALUES | ||
('/TEMPLATES/EMAILS/generic_cover_email_template.html', 'GENERICCOVEREMAILTEMPLATE', 'Generic Cover Email Template', true, 1, now(), 'system', true); | ||
commit;""") | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.execute("""delete from public."ApplicantCorrespondenceTemplates" act where name = 'GENERICCOVEREMAILTEMPLATE'; commit;""") | ||
# ### end Alembic commands ### |
8 changes: 8 additions & 0 deletions
8
request-management-api/request_api/email_templates/generic_cover_email_template.html
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,8 @@ | ||
<p><span style="font-size: 13px;">Subject: FOI Request {{axisRequestId}}</span></p> | ||
<p style="text-align: center;"><span style="font-size: 13px; "> </span></p> | ||
<p><span style='font-size:13px;font-family:"BC Sans";'>Please see the attached regarding your FOI request/consultation. </span> | ||
<p style="text-align: center;"><span style="font-size: 13px; "> </span></p> | ||
<p><span style="font-size: 13px;">Thank you,</span></p> | ||
<p><strong><span style="font-size: 13px;">Information Access Operations | Ministry of Citizens' Services</span></strong><span style="font-size: 13px;"></span></p> | ||
<p><strong><span style="font-size: 13px;"><a href="https://www.gov.bc.ca/freedomofinformation"><span style="font-size: 13px; ">www.gov.bc.ca/freedomofinformation</span></a></span></strong><span style="font-size: 13px;"></span></p> | ||
|
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