Skip to content

Commit

Permalink
updated some email templates and made an html version of new_membership
Browse files Browse the repository at this point in the history
  • Loading branch information
jsayles committed Nov 18, 2021
1 parent f7f968a commit a065315
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
5 changes: 2 additions & 3 deletions nadine/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ def send_new_membership(user):
context = default_context()
context['user'] = user
context['membership'] = membership
message = render_to_string('email/new_membership.txt', context=context)
send(user.email, subject, message)
text_message, html_message = render_templates(context, "new_membership")
send(user.email, subject, text_message, html_message=html_message)


def send_first_day_checkin(user):
Expand Down Expand Up @@ -419,4 +419,3 @@ def send_email(recipient, subject, text_message, html_message=None, fail_silentl


# Copyright 2021 Office Nomads LLC (https://officenomads.com/) Licensed under the AGPL License, Version 3.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.gnu.org/licenses/agpl-3.0.html. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

File renamed without changes.
2 changes: 1 addition & 1 deletion staff/templates/email/introduction.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% load i18n %}{% autoescape off %}
{{ user.first_name }},

Thanks for visiting {{ site_name }}! We just created a new user for you in Nadine, the system we use to run our space. You can log in to see other members, update your profile, and view your activity and billing history. The first time you will need to reset your password. As always, if you have any trouble at all, swing by the front desk and we can help you out.
Thanks for visiting {{ site_name }}! We just created a new user for you in Nadine, the system we use to run our space. You can log in to see other members, update your profile, and view your activity and billing history. The first time you will need to reset your password. If you have any trouble at all, please let us know.

{{ site_url }}{% url 'member:profile:redirect' %}

Expand Down
21 changes: 21 additions & 0 deletions staff/templates/email/new_membership.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{% load i18n %}
{{ user.first_name }},

<p>
Congratulations on your new membership! Your billing date will be the
{{ membership.start_date|date:"jS" }} of each month. If you have not already
done so, please log in to your Nadine profile (link below) and make sure we
have a valid billing profile. We will assume you would like to stay at your
current membership level unless you tell us otherwise before your billing date
arrives.
</p>

<p>
If you have any questions or concerns, please don't hesitate to ask us.
In the mean time, welcome! We're so happy to have you as a part of the family.
</p>

{{ site_url }}{% url 'member:profile:redirect' %}

Thanks!
The {{ site_name }} Team
2 changes: 1 addition & 1 deletion staff/templates/email/new_membership.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% load i18n %}{% autoescape off %}
{{ user.first_name }},

Congratulations on your new membership! Your billing date will be the {{ membership.start_date|date:"jS" }} of each month. If you have not already done so, please log in to your Nadine profile (link below) and make sure we have a valid billing profile. We will assume you would like to stay at your current membership level unless you tell us otherwise (by email or dropping by the front desk) before your billing date arrives. If you have signed up as a Resident member, we ask that you give us 30 days notice before changing your membership. If you have any questions or concerns, please don't hesitate to ask us. In the mean time, welcome! We're so happy to have you as a part of our Nomad family.
Congratulations on your new membership! Your billing date will be the {{ membership.start_date|date:"jS" }} of each month. If you have not already done so, please log in to your Nadine profile (link below) and make sure we have a valid billing profile. We will assume you would like to stay at your current membership level unless you tell us otherwise before your billing date arrives. If you have signed up as a Resident member, we ask that you give us 30 days notice before changing your membership. If you have any questions or concerns, please don't hesitate to ask us. In the mean time, welcome! We're so happy to have you as a part of the family.

{{ site_url }}{% url 'member:profile:redirect' %}

Expand Down

0 comments on commit a065315

Please sign in to comment.