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 +++++++++++++++++---- src/templates/base/notifier/expiring_booking.html | 149 ++++++++++++++++++---- src/templates/base/notifier/new_booking.html | 145 +++++++++++++++++---- 3 files changed, 369 insertions(+), 73 deletions(-) (limited to 'src/templates') 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
+
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
+
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