From acaec7fd14987b1e4b09d7cf1f675bfab05c78e4 Mon Sep 17 00:00:00 2001 From: sahama Date: Tue, 6 Aug 2024 15:07:36 +0330 Subject: [PATCH] better table in list --- templates/base.html | 1 - .../gooyal_oauth2/application_detail.html | 46 ++++++--- templates/gooyal_oauth2/application_list.html | 98 +++++++++++++------ .../application_scope_detail.html | 10 -- .../gooyal_oauth2/application_scope_list.html | 52 +++++++--- 5 files changed, 141 insertions(+), 66 deletions(-) diff --git a/templates/base.html b/templates/base.html index 972b2d9..b105386 100644 --- a/templates/base.html +++ b/templates/base.html @@ -14,7 +14,6 @@ - diff --git a/templates/gooyal_oauth2/application_detail.html b/templates/gooyal_oauth2/application_detail.html index 408b1c3..0835c07 100644 --- a/templates/gooyal_oauth2/application_detail.html +++ b/templates/gooyal_oauth2/application_detail.html @@ -25,16 +25,40 @@ {% block content %} -

application: {{ object.name }}!

-

client id: {{ object.client_id }}!

-

allowed_scopes:

- {% for scope in object.allowed_scopes %} -
{{ scope }}
- {% endfor %} -

own_scopes:

- {% for scope in object.scopes.all %} -
{{ scope }}
- {% endfor %} - +
application
+

{{ object.name }}

+
allowed_scopes:
+
+ + + + + + + {# #} + + + + {% for scope in object.scopes.all %} + + + + + {% endfor %} + +
allowed_scopes
+
+
+ name +
+
+
+
+
+ description +
+
+
actions
{{ scope.name }}{{ scope.description }}
+
{% endblock %} diff --git a/templates/gooyal_oauth2/application_list.html b/templates/gooyal_oauth2/application_list.html index 8e89b8c..2a7db52 100644 --- a/templates/gooyal_oauth2/application_list.html +++ b/templates/gooyal_oauth2/application_list.html @@ -21,41 +21,79 @@ {% block content %} - - - - - - - - {% for obj in object_list %} +
+
name{% if request.GET.ordering and 'name' in request.GET.ordering %}{% endif %}client id{% if request.GET.ordering and 'client_id' in request.GET.ordering %}{% endif %}typeactions
+ + + - - - - + + + + - {% endfor %} -
application list
{{ obj.name }}{{ obj.client_id }}{{ obj.allows_grant_type }} + + + + +
+ actions +
+
+ + + {% for obj in object_list %} + + {{ obj.name }} + {{ obj.client_id }} + {# {{ obj.allows_grant_type }}#} + +
+
+ + {# #} +
+
+ + + {% endfor %} + + + {% include 'include/paginator.html' %} {% endblock %} \ No newline at end of file diff --git a/templates/gooyal_oauth2/application_scope_detail.html b/templates/gooyal_oauth2/application_scope_detail.html index 90d5b42..97723ad 100644 --- a/templates/gooyal_oauth2/application_scope_detail.html +++ b/templates/gooyal_oauth2/application_scope_detail.html @@ -20,14 +20,4 @@ {% block content %}

application: {{ object.name }}!

client id: {{ object.client_id }}!

-

allowed_scopes:

- {% for scope in object.allowed_scopes %} -
{{ scope }}
- {% endfor %} -

own_scopes:

- {% for scope in object.scopes.all %} -
{{ scope }}
- {% endfor %} - - {% endblock %} diff --git a/templates/gooyal_oauth2/application_scope_list.html b/templates/gooyal_oauth2/application_scope_list.html index c97f3fd..6a7eaa7 100644 --- a/templates/gooyal_oauth2/application_scope_list.html +++ b/templates/gooyal_oauth2/application_scope_list.html @@ -21,35 +21,59 @@ {% block content %} - +
+ - -{# #} - - + + {# #} + + {% for obj in object_list %} -{# #} + {# #}
application scope list
name{% if request.GET.ordering and 'name' in request.GET.ordering %}{% endif %}client id{% if request.GET.ordering and 'client_id' in request.GET.ordering %}{% endif %}descriptionactions + + client id{% if request.GET.ordering and 'client_id' in request.GET.ordering %}{% endif %} +
+
+ description +
+
+
+
+
+ actions +
+
+
{{ obj.name }}{{ obj.client_id }}{{ obj.client_id }}{{ obj.description }}
- -{# #} + {# #}