From 74923100444ad669f63293466880ac59b05f5585 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 --- dashboard/src/static/css/detail_view.css | 13 +++++++++++++ dashboard/src/templates/account/booking_list.html | 16 ++++++++-------- dashboard/src/templates/account/configuration_list.html | 6 ++++-- dashboard/src/templates/account/details.html | 8 ++++---- dashboard/src/templates/account/image_list.html | 4 ++-- dashboard/src/templates/account/resource_list.html | 6 ++++-- dashboard/src/templates/base.html | 1 + 7 files changed, 36 insertions(+), 18 deletions(-) create mode 100644 dashboard/src/static/css/detail_view.css (limited to 'dashboard') diff --git a/dashboard/src/static/css/detail_view.css b/dashboard/src/static/css/detail_view.css new file mode 100644 index 0000000..b0e271d --- /dev/null +++ b/dashboard/src/static/css/detail_view.css @@ -0,0 +1,13 @@ +.detail_card { + border: 2px; + border-color: black; + border-radius: 5px; + margin: 5px; + box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.75); +} + +.detail_btn_group { + margin: 3px; + padding: 3px; + padding-bottom: 5px; +} diff --git a/dashboard/src/templates/account/booking_list.html b/dashboard/src/templates/account/booking_list.html index ef4df3a..4cd1408 100644 --- a/dashboard/src/templates/account/booking_list.html +++ b/dashboard/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/dashboard/src/templates/account/configuration_list.html b/dashboard/src/templates/account/configuration_list.html index ee61e97..f4b174b 100644 --- a/dashboard/src/templates/account/configuration_list.html +++ b/dashboard/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/dashboard/src/templates/account/details.html b/dashboard/src/templates/account/details.html index 5641064..740dce6 100644 --- a/dashboard/src/templates/account/details.html +++ b/dashboard/src/templates/account/details.html @@ -2,8 +2,8 @@ {% load staticfiles %} {% block content %}

Account Details

- - - - + + + + {% endblock content %} diff --git a/dashboard/src/templates/account/image_list.html b/dashboard/src/templates/account/image_list.html index fb436df..72ea1f5 100644 --- a/dashboard/src/templates/account/image_list.html +++ b/dashboard/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/dashboard/src/templates/account/resource_list.html b/dashboard/src/templates/account/resource_list.html index 482a000..e70cca7 100644 --- a/dashboard/src/templates/account/resource_list.html +++ b/dashboard/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/dashboard/src/templates/base.html b/dashboard/src/templates/base.html index c63db8c..067c3e6 100644 --- a/dashboard/src/templates/base.html +++ b/dashboard/src/templates/base.html @@ -8,6 +8,7 @@ +