diff --git a/jasmin_services/models/role.py b/jasmin_services/models/role.py index cd4ea2e..4fc1a95 100644 --- a/jasmin_services/models/role.py +++ b/jasmin_services/models/role.py @@ -2,7 +2,6 @@ import functools from datetime import date -import django.apps import django.utils.timezone from django.conf import settings from django.contrib.auth import get_user_model diff --git a/jasmin_services/templates/jasmin_services/includes/display_accesses.html b/jasmin_services/templates/jasmin_services/includes/display_accesses.html index 0ce2504..09617c3 100644 --- a/jasmin_services/templates/jasmin_services/includes/display_accesses.html +++ b/jasmin_services/templates/jasmin_services/includes/display_accesses.html @@ -35,10 +35,10 @@ {% if access.status == "EXPIRING" or access.status == "EXPIRED" %} {% if access.frontend.may_apply %} - - Extend - - {% endif %} + + Extend + + {% endif %} {% elif access.status == "REVOKED" or access.status == "REJECTED" or access.status == "INCOMPLETE" %} - - - - -
-
-
Other approvers
-
- {% if approvers %} -
    - {% for user in approvers %} -
  • {{ user.username }}
  • - {% endfor %} -
- {% else %} - You are the only approver for this service. - {% endif %} -
-
-
- - {% endblock %} +
+
+ +
+
+ + +
+
+
Other approvers
+
+ {% if approvers %} +
    + {% for user in approvers %} +
  • {{ user.username }}
  • + {% endfor %} +
+ {% else %} + You are the only approver for this service. + {% endif %} +
+
+
+ + {% endblock %} - {% block stylesheets_page %} - - {% endblock %} + {% block stylesheets_page %} + + {% endblock %} - {% block js_page %} - - - {% endblock %} + {% block js_page %} + + + {% endblock %} diff --git a/jasmin_services/templates/jasmin_services/role_apply.html b/jasmin_services/templates/jasmin_services/role_apply.html index fadc64a..47d20a1 100644 --- a/jasmin_services/templates/jasmin_services/role_apply.html +++ b/jasmin_services/templates/jasmin_services/role_apply.html @@ -14,26 +14,26 @@ {% csrf_token %} {% block service_identity %} -
-
- -
-

- {{ role.service }} -

+
+
+ +
+

+ {{ role.service }} +

+
-
-
-
- -
-

- {{ role.name }} -

+
+
+ +
+

+ {{ role.name }} +

+
-
{% endblock service_identity %} {% if req or grant %}
diff --git a/jasmin_services/templatetags/service_tags.py b/jasmin_services/templatetags/service_tags.py index 563bc17..cb37d83 100644 --- a/jasmin_services/templatetags/service_tags.py +++ b/jasmin_services/templatetags/service_tags.py @@ -4,13 +4,6 @@ __author__ = "Matt Pryor" __copyright__ = "Copyright 2015 UK Science and Technology Facilities Council" - -import itertools -import random -import string - -import django.conf -import django.urls from django import template from ..models import Request, RequestState diff --git a/jasmin_services/views/service_details.py b/jasmin_services/views/service_details.py index 69c00c9..7f90ab5 100644 --- a/jasmin_services/views/service_details.py +++ b/jasmin_services/views/service_details.py @@ -5,8 +5,7 @@ import django.views.generic import jasmin_metadata.models -from django.conf import settings -from django.db.models import OuterRef, Q, Subquery +from django.db.models import Q from .. import models from . import common, mixins