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/new_booking.html | 145 ++++++++++++++++++++++----- 1 file changed, 122 insertions(+), 23 deletions(-) (limited to 'src/templates/base/notifier/new_booking.html') diff --git a/src/templates/base/notifier/new_booking.html b/src/templates/base/notifier/new_booking.html index 7580694..6d3c344 100644 --- a/src/templates/base/notifier/new_booking.html +++ b/src/templates/base/notifier/new_booking.html @@ -1,34 +1,133 @@ + + + + + -
+
{% if owner %} -

You have created a new booking

+

You Have Created a New Booking.

We have recieved your booking request and will start working on it right away.

{% else %} -

You have been added as a collaborator to a booking

+

You Have Been Added as a Collaborator to a Booking.

{{booking.owner.username}} has given you access to their booking.

{% 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