From 16ddeeac3f5fca5d62434b83c962505827a86448 Mon Sep 17 00:00:00 2001 From: Jacob Hodgdon Date: Wed, 9 Jun 2021 15:30:46 -0400 Subject: added CSS to email templates Change-Id: I841b7a06e4cf672ce5ba9bfa154eac3b6f4c5ef4 Signed-off-by: Jacob Hodgdon Signed-off-by: Raven Hodgdon --- src/templates/base/notifier/expiring_booking.html | 149 ++++++++++++++++++---- 1 file changed, 124 insertions(+), 25 deletions(-) (limited to 'src/templates/base/notifier/expiring_booking.html') diff --git a/src/templates/base/notifier/expiring_booking.html b/src/templates/base/notifier/expiring_booking.html index 89042fe..7247081 100644 --- a/src/templates/base/notifier/expiring_booking.html +++ b/src/templates/base/notifier/expiring_booking.html @@ -1,35 +1,134 @@ + + + + + + + -
+
{% if owner %} -

Your booking is about to expire

+

Your Booking Is About to Expire.

Your booking will expire within 48 hours ({{booking.end}}).

{% else %} -

A booking that you collaborate on is about to expire

-

The booking owned by {{booking.owner.username}} that you work on is about to expire

+

A Booking That You Collaborate on Is About to Expire.

+

The booking owned by {{booking.owner.username}} that you work on is about to expire.

{% endif %}

Please take the time to backup all data or extend the booking if needed.

-

Booking information:

-
    -
  • owner: {{booking.owner.username}}
  • -
  • id: {{booking.id}}
  • -
  • lab: {{booking.resource.template.lab.lab_user.username}}
  • -
  • resource: {{booking.resource.template.name}}
  • -
  • start: {{booking.start}}
  • -
  • end: {{booking.end}}
  • -
  • purpose: {{booking.purpose}}
  • -
  • collaborators: -
      - {% for user in booking.collaborators.all %} -
    • {{user.username}}
    • - {% empty %} -
    • No collaborators
    • - {% endfor %} -
    -
  • -
- -

You can find more detailed information Here

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {% for user in booking.collaborators.all %} + + + + + {% empty %} + + + + + {% endfor %} +
Booking Information:
Owner:{{booking.owner.username}}
id:{{booking.id}}
lab:{{booking.resource.template.lab.lab_user.username}}
resource:{{booking.resource.template.name}}
start:{{booking.start}}
end:{{booking.end}}
purpose:{{booking.purpose}}
collaborator{% booking.collaborators.all.count|pluralize:"s" %}:
{{user.username}}
No collaborators
+
-- cgit 1.2.3-korg