Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robotrix updates #127

Merged
merged 4 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
17 changes: 17 additions & 0 deletions corpus/templates/emails/robotrix/announcement.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{% extends 'emails/base.html' %}

{% block title %}
Announcement | Robotrix
{% endblock %}

{% block content %}
<h1>Announcement - Robotrix</h1>
<div style="font-size: 1.2em;">
{{ announcement.content | linebreaks }}
</div>
{% if announcement.url_link %}
<p>
<a href="{{ announcement.url_link }}">{{ announcement.url_link_text }}</a>
</p>
{% endif %}
{% endblock %}
13 changes: 13 additions & 0 deletions corpus/templates/emails/robotrix/payment_complete.html
anirudhprabhakaran3 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% extends 'emails/base.html' %}

{% block title %}
Payment status Updated
{% endblock %}

{% block content %}
<h1>Hi {{ user }},</h1>

<p>Your payment status has been updated to <strong> Complete </strong> </p>

<p>Thanks for registering for Robotrix.</p>
{% endblock %}
13 changes: 13 additions & 0 deletions corpus/templates/emails/robotrix/payment_incomplete.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% extends 'emails/base.html' %}

{% block title %}
Payment status - Incomplete
{% endblock %}

{% block content %}
<h1>Hi {{ user }},</h1>

<p>Your payment status for Robotrix has been updated to <strong>Incomplete</strong>.</p>

<p>Please contact us if you have any questions.</p>
{% endblock %}
11 changes: 10 additions & 1 deletion corpus/templates/robotrix/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,16 @@ <h3 class="font-bold text-lg">Edit Team</h3>
</div>
</div>


{% if team.payment_status == "P" or team.payment_status == "E" %}
<div class="flex justify-between items-center w-1/2 mx-auto">
<h4> Join the Whatsapp Group</h4>
<a href="https://chat.whatsapp.com/KuoxyXxpqZqLcN7r1eywXg" target="_blank" class="text-blue-500">
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="100" height="100" viewBox="0 0 100 100">
<path fill="#ee3e54" d="M13 27A2 2 0 1 0 13 31A2 2 0 1 0 13 27Z"></path><path fill="#f1bc19" d="M77 12A1 1 0 1 0 77 14A1 1 0 1 0 77 12Z"></path><path fill="#fce0a2" d="M50 13A37 37 0 1 0 50 87A37 37 0 1 0 50 13Z"></path><path fill="#f1bc19" d="M83 11A4 4 0 1 0 83 19A4 4 0 1 0 83 11Z"></path><path fill="#ee3e54" d="M87 22A2 2 0 1 0 87 26A2 2 0 1 0 87 22Z"></path><path fill="#fbcd59" d="M81 74A2 2 0 1 0 81 78 2 2 0 1 0 81 74zM15 59A4 4 0 1 0 15 67 4 4 0 1 0 15 59z"></path><path fill="#ee3e54" d="M25 85A2 2 0 1 0 25 89A2 2 0 1 0 25 85Z"></path><path fill="#fff" d="M18.5 51A2.5 2.5 0 1 0 18.5 56A2.5 2.5 0 1 0 18.5 51Z"></path><path fill="#f1bc19" d="M21 66A1 1 0 1 0 21 68A1 1 0 1 0 21 66Z"></path><path fill="#fff" d="M80 33A1 1 0 1 0 80 35A1 1 0 1 0 80 33Z"></path><path fill="#add4a1" d="M51.5,25C38.5,25,28,35.5,28,48.5c0,4.5,1.2,8.6,3.4,12.2L28,71.1l10.1-3.3c3.8,2.7,8.4,4.2,13.4,4.2 C64.5,72,75,61.5,75,48.5S64.5,25,51.5,25z"></path><path fill="#472b29" d="M51.5,72.7c-4.9,0-9.5-1.4-13.5-4.1l-9.7,3.2c-0.3,0.1-0.5,0-0.7-0.2c-0.2-0.2-0.3-0.5-0.2-0.7l3.3-10.1 c-2.2-3.7-3.3-7.9-3.3-12.3c0-13.3,10.9-24.2,24.2-24.2s24.2,10.9,24.2,24.2S64.8,72.7,51.5,72.7z M38.1,67.1c0.1,0,0.3,0,0.4,0.1 c3.8,2.7,8.3,4.1,13,4.1c12.6,0,22.8-10.2,22.8-22.8c0-12.6-10.2-22.8-22.8-22.8c-12.6,0-22.8,10.2-22.8,22.8 c0,4.2,1.1,8.3,3.3,11.8c0.1,0.2,0.1,0.4,0.1,0.6L29.1,70l8.7-2.9C37.9,67.1,38,67.1,38.1,67.1z"></path><path fill="#5aba9e" d="M66.6,37.1c-3.5-4.5-8.9-7.5-15.1-7.5c-10.4,0-18.9,8.5-18.9,18.9c0,3.9,1.2,7.6,3.3,10.6l-2,6.2l6-1.9 c3.2,2.5,7.3,4.1,11.7,4.1c10.4,0,18.9-8.5,18.9-18.9c0-1.1-0.1-2.1-0.3-3.2"></path><path fill="#472b29" d="M51.5,67.9c-4.3,0-8.4-1.4-11.8-4L34,65.8c-0.2,0.1-0.4,0-0.5-0.1c-0.1-0.1-0.2-0.3-0.1-0.5l1.9-6 c-2.1-3.2-3.2-6.9-3.2-10.7c0-10.7,8.7-19.4,19.4-19.4c6.1,0,11.8,2.8,15.5,7.7c0.2,0.2,0.1,0.5-0.1,0.7c-0.2,0.2-0.5,0.1-0.7-0.1 c-3.5-4.6-8.9-7.3-14.7-7.3c-10.1,0-18.4,8.3-18.4,18.4c0,3.7,1.1,7.3,3.2,10.3c0.1,0.1,0.1,0.3,0.1,0.4l-1.7,5.3l5-1.6 c0.2-0.1,0.3,0,0.5,0.1c3.3,2.6,7.2,4,11.4,4c10.1,0,18.4-8.3,18.4-18.4c0-1-0.1-2.1-0.3-3.1c0-0.3,0.1-0.5,0.4-0.6 c0.3,0,0.5,0.1,0.6,0.4c0.2,1.1,0.3,2.2,0.3,3.2C70.9,59.2,62.2,67.9,51.5,67.9z"></path><g><path fill="#5aba9e" d="M69.5,42.6c-0.4-1.1-0.9-2.2-1.4-3.3"></path><path fill="#472b29" d="M69.5,43.1c-0.2,0-0.4-0.1-0.5-0.3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