From 7e2a6d1379dd61b388b8fc92d40955f05b5df37b Mon Sep 17 00:00:00 2001
From: Craig Williams
Date: Tue, 15 Feb 2022 16:37:22 +0000
Subject: [PATCH] Created requested, accepted and rejected email templates for
requests
---
...organisation-membership-accepted.html.twig | 16 ++++++++
...organisation-membership-rejected.html.twig | 16 ++++++++
.../organisation-membership-request.html.twig | 40 +++++++++++++++++++
3 files changed, 72 insertions(+)
create mode 100644 templates/mail/organisation-membership-accepted.html.twig
create mode 100644 templates/mail/organisation-membership-rejected.html.twig
create mode 100644 templates/mail/organisation-membership-request.html.twig
diff --git a/templates/mail/organisation-membership-accepted.html.twig b/templates/mail/organisation-membership-accepted.html.twig
new file mode 100644
index 0000000..8a68367
--- /dev/null
+++ b/templates/mail/organisation-membership-accepted.html.twig
@@ -0,0 +1,16 @@
+{% block subject %}
+ {{site.title}} - organisation registration approved
+{% endblock %}
+
+{% block body %}
+
+ Dear {{recipient.first_name}},
+
+
+ Your request to join the organisation {{organisation.name}} you submitted at {{site.title}} ({{site.uri.public}}) has been approved.
+
+
+ With regards,
+ The {{site.title}} Team
+
+{% endblock %}
\ No newline at end of file
diff --git a/templates/mail/organisation-membership-rejected.html.twig b/templates/mail/organisation-membership-rejected.html.twig
new file mode 100644
index 0000000..daeaac2
--- /dev/null
+++ b/templates/mail/organisation-membership-rejected.html.twig
@@ -0,0 +1,16 @@
+{% block subject %}
+ {{site.title}} - organisation registration rejected
+{% endblock %}
+
+{% block body %}
+
+ Dear {{recipient.first_name}},
+
+
+ Your request to join the organisation {{organisation.name}} you submitted at {{site.title}} ({{site.uri.public}}) has been rejected.
+
+
+ With regards,
+ The {{site.title}} Team
+
+{% endblock %}
\ No newline at end of file
diff --git a/templates/mail/organisation-membership-request.html.twig b/templates/mail/organisation-membership-request.html.twig
new file mode 100644
index 0000000..424dff6
--- /dev/null
+++ b/templates/mail/organisation-membership-request.html.twig
@@ -0,0 +1,40 @@
+{% block subject %}
+ {{site.title}} - new membership requested
+{% endblock %}
+
+{% block body %}
+
+ Dear {{recipient.first_name}},
+
+
+ Someone has requested to join your organisation {{organisation.name}} at {{site.title}} ({{site.uri.public}}).
+
+
+ The requester details are:
+
+ - Requester name:
+ - {{requester.full_name}}
+
+ - Requester email:
+ - {{requester.email}}
+
+
+
+ You may verify or reject this request via the control dashboard ({{site.uri.public}}/organisations/o/{{organisation.slug}}).
+
+
+ To accept this request immediately you may do so by visiting: {{site.uri.public}}/organisations/members/accept?token={{token}}.
+
+
+ To reject this request immediately you may do so by visiting: {{site.uri.public}}/organisations/members/reject?token={{token}}.
+
+{% if approval_expiration %}
+
+ The approval period for this request will expire in {{approval_expiration}} at which point the request will be automatically rejected.
+
+{% endif %}
+
+ With regards,
+ The {{site.title}} Team
+
+{% endblock %}
\ No newline at end of file