From 252439a59e435fcb44c4692c6522083e03282038 Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Fri, 18 Jan 2019 14:43:11 -0500 Subject: Style Account pages Adds some prettiness to the account pages that list bookings, etc Change-Id: I90508cfafba00380d67965a038dc54d1fac43f60 Signed-off-by: Parker Berberian --- dashboard/src/static/css/detail_view.css | 33 ++++++++---- dashboard/src/templates/account/booking_list.html | 63 +++++++++------------- .../src/templates/account/configuration_list.html | 33 ++++-------- dashboard/src/templates/account/details.html | 8 +-- dashboard/src/templates/account/image_list.html | 38 ++++++++----- dashboard/src/templates/account/resource_list.html | 31 ++++------- 6 files changed, 95 insertions(+), 111 deletions(-) diff --git a/dashboard/src/static/css/detail_view.css b/dashboard/src/static/css/detail_view.css index 89d0867..69a2643 100644 --- a/dashboard/src/static/css/detail_view.css +++ b/dashboard/src/static/css/detail_view.css @@ -1,14 +1,25 @@ -.detail_card { - border: 2px; - border-color: black; - border-radius: 5px; - margin: 5px; - padding: 5px; - box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.75); +.card_container { + display: grid; + grid-template-columns: 1fr 1fr 1fr 1fr; + grid-gap: 25px 25px; + justify-items: stretch; +} + +.card_container ul > li { + padding: 7px !important; + font-size: 16px; } -.detail_btn_group { - margin: 3px; - padding: 3px; - padding-bottom: 5px; +.detail_card { + border: 2px; + border-color: black; + border-radius: 5px; + margin: 5px; + padding-left: 25px; + padding-right: 25px; + padding-bottom: 15px; + box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.75); + display: flex; + flex-direction: column; + justify-content: space-between; } diff --git a/dashboard/src/templates/account/booking_list.html b/dashboard/src/templates/account/booking_list.html index c7c5e00..9c6f3db 100644 --- a/dashboard/src/templates/account/booking_list.html +++ b/dashboard/src/templates/account/booking_list.html @@ -1,52 +1,41 @@ {% extends "base.html" %} {% block content %} -

Bookings I Own

+
{% for booking in bookings %}
-
    -
  • 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}}
  • -
-
- - +
+

Booking {{booking.id}}

+
    +
  • 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}}
  • +
+ Details
{% endfor %} +

Bookings I Collaborate On

+
{% for booking in collab_bookings %}
-
    -
  • id: {{booking.id}}
  • -
  • lab: {{booking.lab}}
  • -
  • resource: {{booking.resource_name}}
  • -
  • start: {{booking.start}}
  • -
  • end: {{booking.end}}
  • -
  • purpose: {{booking.purpose}}
  • -
-
- - +
+

Booking {{booking.id}}

+
    +
  • id: {{booking.id}}
  • +
  • lab: {{booking.lab}}
  • +
  • resource: {{booking.resource_name}}
  • +
  • start: {{booking.start}}
  • +
  • end: {{booking.end}}
  • +
  • purpose: {{booking.purpose}}
  • +
+ Details
{% endfor %} +
{% endblock %} diff --git a/dashboard/src/templates/account/configuration_list.html b/dashboard/src/templates/account/configuration_list.html index 9dcec07..14d0472 100644 --- a/dashboard/src/templates/account/configuration_list.html +++ b/dashboard/src/templates/account/configuration_list.html @@ -1,31 +1,18 @@ {% extends "base.html" %} {% block content %} - +
{% for config in configurations %}
-
    -
  • id: {{config.id}}
  • -
  • name: {{config.name}}
  • -
  • description: {{config.description}}
  • -
  • resource: {{config.bundle}}
  • -
-
- +
+

Configuration {{config.id}}

+
    +
  • id: {{config.id}}
  • +
  • name: {{config.name}}
  • +
  • description: {{config.description}}
  • +
  • resource: {{config.bundle}}
  • +
{% endfor %} +
{% endblock %} diff --git a/dashboard/src/templates/account/details.html b/dashboard/src/templates/account/details.html index acf3eb1..3092ad0 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

-My Resources -My Bookings -My Configurations -My Snapshots +My Resources +My Bookings +My Configurations +My Snapshots {% endblock content %} diff --git a/dashboard/src/templates/account/image_list.html b/dashboard/src/templates/account/image_list.html index 72ea1f5..7566a9c 100644 --- a/dashboard/src/templates/account/image_list.html +++ b/dashboard/src/templates/account/image_list.html @@ -1,27 +1,37 @@ {% extends "base.html" %} {% block content %}

Images I Own

+
{% for image in images %}
-
    -
  • id: {{image.id}}
  • -
  • lab: {{image.from_lab.name}}
  • -
  • name: {{image.name}}
  • -
  • description: {{image.description}}
  • -
  • host profile: {{image.host_type.name}}
  • -
+
+

Image {{image.id}}

+
    +
  • id: {{image.id}}
  • +
  • lab: {{image.from_lab.name}}
  • +
  • name: {{image.name}}
  • +
  • description: {{image.description}}
  • +
  • host profile: {{image.host_type.name}}
  • +
+
{% endfor %} +

Public Images

+
{% for image in public_images %}
-
    -
  • id: {{image.id}}
  • -
  • lab: {{image.from_lab.name}}
  • -
  • name: {{image.name}}
  • -
  • description: {{image.description}}
  • -
  • host profile: {{image.host_type.name}}
  • -
+
+

Image {{image.id}}

+
    +
  • id: {{image.id}}
  • +
  • lab: {{image.from_lab.name}}
  • +
  • name: {{image.name}}
  • +
  • description: {{image.description}}
  • +
  • host profile: {{image.host_type.name}}
  • +
+
{% endfor %} +
{% endblock %} diff --git a/dashboard/src/templates/account/resource_list.html b/dashboard/src/templates/account/resource_list.html index 7e4194b..cdacdd6 100644 --- a/dashboard/src/templates/account/resource_list.html +++ b/dashboard/src/templates/account/resource_list.html @@ -1,30 +1,17 @@ {% extends "base.html" %} {% block content %} - +
{% for resource in resources %}
-
    -
  • id: {{resource.id}}
  • -
  • name: {{resource.name}}
  • -
  • description: {{resource.description}}
  • -
-
- +
+

Resource {{resource.id}}

+
    +
  • id: {{resource.id}}
  • +
  • name: {{resource.name}}
  • +
  • description: {{resource.description}}
  • +
{% endfor %} +
{% endblock %} -- cgit 1.2.3-korg