Skip to content

Commit

Permalink
Update ticket-related emails
Browse files Browse the repository at this point in the history
  • Loading branch information
aviupadhyayula committed Nov 23, 2024
1 parent b280dc0 commit 64270fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 21 deletions.
3 changes: 2 additions & 1 deletion backend/clubs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,8 @@ def send_confirmation_email(self):
if self.owner.email:
send_mail_helper(
name="ticket_confirmation",
subject=f"Ticket confirmation for {owner.get_full_name()}",
subject=f"Ticket confirmation for {owner.get_full_name()}"
f" to {self.event.name}",
emails=[owner.email],
context=context,
attachment={
Expand Down
23 changes: 5 additions & 18 deletions backend/templates/emails/ticket_confirmation.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,18 @@
<h2>Thanks for using Penn Clubs!</h2>

<p style="font-size: 1.2em">
{{ first_name }}, thank you for your recent acquisition of a ticket to {{ name }} with ticket type {{type }}.
{{ first_name }}, thank you for your recent acquisition of a ticket to <b>{{ name }}</b> with ticket type <b>{{ type }}</b>.
</p>

<p style="font-size: 1.2em">
As a reminder, the event starts at {{ start_time }} and ends at {{ end_time }}.


As a reminder, the event starts at <b>{{ start_time }}</b> and ends at <b>{{ end_time }}</b>.
</p>

<p style="font-size: 1.2em"> Below is a
QR code for
your confirmation. </p>

<p style="font-size: 1.2em"> Below is a QR code for your confirmation: </p>

<img id="now" style="max-width: 60%; width: auto;" alt="Ticket QR code" src="cid:{{ cid }}" />

<p style="font-size: 1.2em"> Note: all tickets issued by us are <b>non-refundable</b>. </p>


<p style="font-size: 1.2em"> All tickets issued by us are <b>non-refundable</b>. You can view your tickets and transfer them to other users through <a href="{{ ticket_url }}">your Penn Clubs profile</a>.</p>

<p style="font-size: 1.2em">
If you have any questions, feel free to respond to this email.
</p>

<p style="font-size: 1.2em">
You can view your tickets and transfer them to other users <a href="{{ ticket_url }}">here</a>.
</p>
<p style="font-size: 1.2em">If you have any questions, feel free to respond to this email.</p>
{% endblock %}
4 changes: 2 additions & 2 deletions backend/templates/emails/ticket_transfer.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<h2>Ticket Transfer Confirmation</h2>

<p style="font-size: 1.2em">
<b>{{ sender_first_name }}</b>, this is confirmation that you have transferred a ticket to <b>{{ receiver_first_name }}</b> (<b>{{ receiver_username }}</b>) for <b>{{ event_name }}</b> with ticket type <b>{{ type }}</b>.
{{ sender_first_name }}, this is confirmation that you have transferred a ticket to <b>{{ receiver_first_name }}</b> (<b>{{ receiver_username }}</b>) for <b>{{ event_name }}</b> with ticket type <b>{{ type }}</b>.
</p>


<p style="font-size: 1.2em">
If you believe that this was sent in error or have any questions, feel free to respond to this email.
If you have any questions or believe this was sent in error, feel free to respond to this email.
</p>
{% endblock %}

0 comments on commit 64270fa

Please sign in to comment.