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/end_booking.html | 148 ++++++++++++++++++++++----- 1 file changed, 123 insertions(+), 25 deletions(-) (limited to 'src/templates/base/notifier/end_booking.html') diff --git a/src/templates/base/notifier/end_booking.html b/src/templates/base/notifier/end_booking.html index ebad027..22fbd58 100644 --- a/src/templates/base/notifier/end_booking.html +++ b/src/templates/base/notifier/end_booking.html @@ -1,36 +1,134 @@ + + + + + + -
+
{% if owner %} -

Your booking has expired

+

Your Booking Has Expired.

Your booking has ended and the machines have been cleaned up.

Thank you for working on {{booking.lab.project}}, and feel free to book more machines if you need them.

{% else %} -

A booking that you collaborated on has expired

-

The booking owned by {{booking.owner.username}} that you worked on has ended

+

A Booking That You Collaborated on Has Expired.

+

The booking owned by {{booking.owner.username}} that you worked on has ended.

Thank you for contributing to {{booking.lab.project}}.

{% endif %} -

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