From e26a8259dbe879d722d5e619f9d6efe0b113d1cd Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Tue, 4 Dec 2018 15:30:42 -0500 Subject: Abstract Out Inline CSS for Account Views Change-Id: I2da02fa7865b618c583d15cca9ef256c62f19286 Signed-off-by: Sawyer Bergeron --- src/templates/account/booking_list.html | 16 ++++++++-------- src/templates/account/configuration_list.html | 6 ++++-- src/templates/account/details.html | 8 ++++---- src/templates/account/image_list.html | 4 ++-- src/templates/account/resource_list.html | 6 ++++-- src/templates/base.html | 1 + 6 files changed, 23 insertions(+), 18 deletions(-) (limited to 'src/templates') diff --git a/src/templates/account/booking_list.html b/src/templates/account/booking_list.html index ef4df3a..4cd1408 100644 --- a/src/templates/account/booking_list.html +++ b/src/templates/account/booking_list.html @@ -17,7 +17,7 @@ function edit_booking(pk){

Bookings I Own

{% for booking in bookings %} -
+
  • id: {{booking.id}}
  • lab: {{booking.resource.template.lab.lab_user.username}}
  • @@ -26,15 +26,15 @@ function edit_booking(pk){
  • end: {{booking.end}}
  • purpose: {{booking.purpose}}
-
- - +
+ +
{% endfor %}

Bookings I Collaborate On

{% for booking in collab_bookings %} -
+
  • id: {{booking.id}}
  • lab: {{booking.lab}}
  • @@ -43,9 +43,9 @@ function edit_booking(pk){
  • end: {{booking.end}}
  • purpose: {{booking.purpose}}
-
- - +
+ +
{% endfor %} diff --git a/src/templates/account/configuration_list.html b/src/templates/account/configuration_list.html index ee61e97..f4b174b 100644 --- a/src/templates/account/configuration_list.html +++ b/src/templates/account/configuration_list.html @@ -16,13 +16,15 @@ function edit_configuration(pk){ } {% for config in configurations %} -
+
  • id: {{config.id}}
  • name: {{config.name}}
  • description: {{config.description}}
- +
+ +
{% endfor %} {% endblock %} diff --git a/src/templates/account/details.html b/src/templates/account/details.html index 5641064..740dce6 100644 --- a/src/templates/account/details.html +++ b/src/templates/account/details.html @@ -2,8 +2,8 @@ {% load staticfiles %} {% block content %}

Account Details

- - - - + + + + {% endblock content %} diff --git a/src/templates/account/image_list.html b/src/templates/account/image_list.html index fb436df..72ea1f5 100644 --- a/src/templates/account/image_list.html +++ b/src/templates/account/image_list.html @@ -2,7 +2,7 @@ {% block content %}

Images I Own

{% for image in images %} -
+
  • id: {{image.id}}
  • lab: {{image.from_lab.name}}
  • @@ -14,7 +14,7 @@ {% endfor %}

    Public Images

    {% for image in public_images %} -
    +
    • id: {{image.id}}
    • lab: {{image.from_lab.name}}
    • diff --git a/src/templates/account/resource_list.html b/src/templates/account/resource_list.html index 482a000..e70cca7 100644 --- a/src/templates/account/resource_list.html +++ b/src/templates/account/resource_list.html @@ -16,13 +16,15 @@ function edit_resource(pk){ } {% for resource in resources %} -
      +
      • id: {{resource.id}}
      • name: {{resource.name}}
      • description: {{resource.description}}
      - +
      + +
      {% endfor %} {% endblock %} diff --git a/src/templates/base.html b/src/templates/base.html index c63db8c..067c3e6 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -8,6 +8,7 @@ +