Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions common/templates/email_subscription_expired.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{% extends "base.html" %} {% block title %}Your SpaceDF subscription has expired{% endblock %} {% block content %}
<div style="margin-bottom: 30px">
{% if header_image_url %}
<div class="illustration">
<img src="{{ header_image_url }}" alt="Subscription Expired" />
</div>
{% endif %}
<h1 style="color: {{ contrast_background_color }}">
Your SpaceDF subscription has expired
</h1>

<p style="text-align: start">
Hi{% if user_name %} {{ user_name }}{% else %} there{% endif %},
</p>

<p style="text-align: start">
Your {{ plan_name }} subscription for <b>{{ organization_name }}</b> expired
on {{ expiry_date }}.
</p>

<p style="text-align: start">
As a result, some premium features may no longer be available until your
subscription is renewed.
</p>

<p style="text-align: start">
To restore full access, please contact our team to renew your subscription.
</p>

<p style="text-align: start">
<a
style="text-align: start; background-color: {{ primary_color }}; color: {{ contrast_primary_color }};"
href="{{ manage_subscription_url }}"
class="btn-invite"
target="_blank"
>
Manage Subscription
</a>
</p>

<p style="text-align: start">Best regards,</p>
<p style="text-align: start"><b>{{ sender_from }}</b></p>
</div>
{% endblock %}
39 changes: 39 additions & 0 deletions common/templates/email_subscription_expiry_reminder.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{% extends "base.html" %} {% block title %}Your SpaceDF subscription will expire soon{% endblock %} {% block content %}
<div style="margin-bottom: 30px">
{% if header_image_url %}
<div class="illustration">
<img src="{{ header_image_url }}" alt="Subscription Expiry Reminder" />
</div>
{% endif %}

<h1 style="color: {{ contrast_background_color }}">
Your SpaceDF subscription will expire soon.
</h1>

<p style="text-align: start">
Hi{% if user_name %} {{ user_name }}{% else %} there{% endif %},
</p>

<p style="text-align: start">
We hope you're enjoying SpaceDF.
</p>

<p style="text-align: start">
This is a friendly reminder that your {{ plan_name }} subscription for
<b>{{ organization_name }}</b> will expire on {{ expiry_date }}.
</p>

<p style="text-align: start">
To avoid any interruption to your services and continue accessing your
premium features, please renew your subscription before the expiration date.
</p>

<p style="text-align: start">
If you would like to renew or have any questions about your subscription,
please contact our team.
</p>

<p style="text-align: start">Best regards,</p>
<p style="text-align: start"><b>{{ sender_from }}</b></p>
</div>
{% endblock %}
38 changes: 38 additions & 0 deletions common/templates/email_subscription_request_received.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% extends "base.html" %} {% block title %}Subscription Request Received{% endblock %} {% block content %}
<div style="margin-bottom: 30px">
{% if header_image_url %}
<div class="illustration">
<img src="{{ header_image_url }}" alt="Subscription Request Received" />
</div>
{% endif %}
<h1 style="color: {{ contrast_background_color }}">
Your Subscription Request Has Been Received
</h1>

<p style="text-align: start">
Hi{% if name %} {{ name }}{% else %} there{% endif %},
</p>

<p style="text-align: start">
Thank you for your interest in subscribing to the {{ plan_name }} plan.<br />
We've successfully received your subscription request.
</p>

<p style="text-align: start">
<b style="color: {{ contrast_background_color }}">What happens next?</b>
</p>

<ul
style="text-align: start; padding-left: 20px; margin: 10px 0; font-size: 16px; line-height: 1.6"
>
<li>Our Sales team will review your request.</li>
<li>We'll contact you to discuss the selected subscription plan.</li>
<li>
Once the subscription is confirmed, your Organization will be upgraded accordingly.
</li>
</ul>

<p style="text-align: start">Best regards,</p>
<p style="text-align: start"><b>{{ sender_from }}</b></p>
</div>
{% endblock %}
5 changes: 4 additions & 1 deletion common/utils/email_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ def get_email_context(email_context_data, custom_email):
_get_value(custom_email, "sender_email")
or email_context_data.get("sender_email", "support@spacedf.com")
),
"email_footer": (_get_value(custom_email, "footer_text") or ""),
"email_footer": (
_get_value(custom_email, "footer_text")
or "©2025 Digital Fortress. All rights reserved."
),
"header_image_url": _get_value(custom_email, "url_header_image")
or email_context_data.get("header_image_url", ""),
"linkedin_url": social_links.get("linkedin_url", ""),
Expand Down
Loading