From 87405a438640cc8fe7e5fca326139cffe7c49ab2 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 22 Feb 2023 16:24:28 +0300 Subject: oauth2: Provide UI to select and list ungrouped data. --- wqflask/wqflask/templates/oauth2/data-list.html | 135 +++++++++++++++++++----- 1 file changed, 106 insertions(+), 29 deletions(-) diff --git a/wqflask/wqflask/templates/oauth2/data-list.html b/wqflask/wqflask/templates/oauth2/data-list.html index ebe00843..6c05845c 100644 --- a/wqflask/wqflask/templates/oauth2/data-list.html +++ b/wqflask/wqflask/templates/oauth2/data-list.html @@ -3,35 +3,112 @@ {%from "oauth2/display_error.html" import display_error%} {%block title%}View User{%endblock%} {%block content%} -
- {{profile_nav("data")}} - - {{flash_me()}} - -
-
-
- Link Data to Group -
- - - {%if groups_error is defined%} - {{display_error("Groups Error", groups_error)}} - {%endif%} -
- - -
+
+ {{profile_nav("data", user_privileges)}} + + {{flash_me()}} + +
+
+
+ Dataset Type +
+ + + +
+ +
+
+ + {%if dataset_type is defined%} + {%if data_items_error is defined%} + {{display_error("Data Error", data_items_error)}} + {%else%} +
+ + + + + + + + + + + + + + {%for data_item in data_items%} + + + + + + + + + + + {%else%} + + + + {%endfor%} + +
Link Data to Group
Dataset NameDataset Full NameGroupLink
+ + {{data_item.Name}} + + {{data_item.FullName}} + + + +
+ + +   + No available data to link +
+ +
+ + +
+ {%if offset != 0%} + + {%endif%} + {%if data_items | length == 100:%} + + {%endif%} +
+
+
+ {%endif%} + {%endif%} +
-
-
+
{%endblock%} -- cgit v1.2.3