From fef3a855657a7e5c2393dc469690d73bb249bd8f Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Tue, 29 Jan 2019 10:05:27 -0500 Subject: Allow Users to Delete objects and Cancel Bookings A user can now delete thier own resources, configs, and snapshots as well as cancelling bookings. Change-Id: Ic8e4751feeb0b8fa0d76816b8df2d16729ad2828 Signed-off-by: Parker Berberian --- src/templates/account/booking_list.html | 57 +++++++++++- src/templates/account/configuration_list.html | 77 +++++++++++++--- src/templates/account/image_list.html | 109 ++++++++++++++++++++--- src/templates/account/resource_list.html | 121 +++++++++++++++++++++++--- 4 files changed, 327 insertions(+), 37 deletions(-) (limited to 'src/templates/account') diff --git a/src/templates/account/booking_list.html b/src/templates/account/booking_list.html index 9c6f3db..e56b19e 100644 --- a/src/templates/account/booking_list.html +++ b/src/templates/account/booking_list.html @@ -15,7 +15,15 @@
  • purpose: {{booking.purpose}}
  • - Details +
    + Details + +
    {% endfor %} @@ -38,4 +46,51 @@ {% endfor %} + + + {% endblock %} diff --git a/src/templates/account/configuration_list.html b/src/templates/account/configuration_list.html index 14d0472..b920ba6 100644 --- a/src/templates/account/configuration_list.html +++ b/src/templates/account/configuration_list.html @@ -1,18 +1,71 @@ {% extends "base.html" %} {% block content %} -
    - {% for config in configurations %} -
    -
    -

    Configuration {{config.id}}

    -
      -
    • id: {{config.id}}
    • -
    • name: {{config.name}}
    • -
    • description: {{config.description}}
    • -
    • resource: {{config.bundle}}
    • -
    +
    +{% for config in configurations %} +
    +
    +

    Configuration {{config.id}}

    +
      +
    • id: {{config.id}}
    • +
    • name: {{config.name}}
    • +
    • description: {{config.description}}
    • +
    • resource: {{config.bundle}}
    • +
    +
    +
    + +
    +
    +{% endfor %} +
    + +