From 204a308be0f741726b9a620d88fbc22b22124c81 Mon Sep 17 00:00:00 2001
From: Arun Isaac
Date: Fri, 29 Dec 2023 18:55:37 +0000
Subject: Namespace all modules under gn2.
We move all modules under a gn2 directory. This is important for
"correct" packaging and deployment as a Guix service.
---
.../templates/admin/change_resource_owner.html | 114 +++++++++
gn2/wqflask/templates/admin/create_group.html | 84 +++++++
gn2/wqflask/templates/admin/group_manager.html | 147 +++++++++++
gn2/wqflask/templates/admin/ind_user_manager.html | 111 +++++++++
gn2/wqflask/templates/admin/manage_resource.html | 124 ++++++++++
gn2/wqflask/templates/admin/manage_user.html | 79 ++++++
gn2/wqflask/templates/admin/search_for_groups.html | 134 ++++++++++
.../templates/admin/set_group_privileges.html | 102 ++++++++
gn2/wqflask/templates/admin/user_manager.html | 41 ++++
gn2/wqflask/templates/admin/view_group.html | 270 +++++++++++++++++++++
10 files changed, 1206 insertions(+)
create mode 100644 gn2/wqflask/templates/admin/change_resource_owner.html
create mode 100644 gn2/wqflask/templates/admin/create_group.html
create mode 100644 gn2/wqflask/templates/admin/group_manager.html
create mode 100644 gn2/wqflask/templates/admin/ind_user_manager.html
create mode 100644 gn2/wqflask/templates/admin/manage_resource.html
create mode 100644 gn2/wqflask/templates/admin/manage_user.html
create mode 100644 gn2/wqflask/templates/admin/search_for_groups.html
create mode 100644 gn2/wqflask/templates/admin/set_group_privileges.html
create mode 100644 gn2/wqflask/templates/admin/user_manager.html
create mode 100644 gn2/wqflask/templates/admin/view_group.html
(limited to 'gn2/wqflask/templates/admin')
diff --git a/gn2/wqflask/templates/admin/change_resource_owner.html b/gn2/wqflask/templates/admin/change_resource_owner.html
new file mode 100644
index 00000000..7fd84387
--- /dev/null
+++ b/gn2/wqflask/templates/admin/change_resource_owner.html
@@ -0,0 +1,114 @@
+{% extends "base.html" %}
+{% block title %}Resource Manager{% endblock %}
+{% block css %}
+
+
+{% endblock %}
+{% block content %}
+
+
+
+ {{ flash_me() }}
+ {% set DATA_ACCESS = access_role.get('data') %}
+ {% set METADATA_ACCESS = access_role.get('metadata') %}
+ {% set ADMIN_STATUS = access_role.get('admin') %}
+ {% set ADMIN_STATUS = access_role.get('admin') %}
+ Resource Manager
+ {% if resource_info.get('owner_id') %}
+ {% set user_details = resource_info.get('owner_details') %}
+
+ Current Owner: {{ user_details.get('full_name') }}
+
+ {% if user_details.get('organization') %}
+
+ Organization: {{ user_details.get('organization')}}
+
+ {% endif %}
+ {% endif %}
+ {% if DATA_ACCESS > DataRole.VIEW and ADMIN_STATUS > AdminRole.NOT_ADMIN %}
+
+ Change Owner
+
+ {% endif %}
+
+
+
+
+
+
+ {% endblock %}
+ {% block js %}
+
+
+
+ {% endblock %}
diff --git a/gn2/wqflask/templates/admin/manage_user.html b/gn2/wqflask/templates/admin/manage_user.html
new file mode 100644
index 00000000..3ef90b90
--- /dev/null
+++ b/gn2/wqflask/templates/admin/manage_user.html
@@ -0,0 +1,79 @@
+{% extends "base.html" %}
+{% block title %}View and Edit Group{% endblock %}
+{% block css %}
+
+
+
+{% endblock %}
+{% block content %}
+
+
+ {% if 'full_name' in user_details %}
+
+ {% endif %}
+
+
+
+
+
+{% endblock %}
+
+{% block js %}
+
+
+
+{% endblock %}
diff --git a/gn2/wqflask/templates/admin/search_for_groups.html b/gn2/wqflask/templates/admin/search_for_groups.html
new file mode 100644
index 00000000..0e1ec720
--- /dev/null
+++ b/gn2/wqflask/templates/admin/search_for_groups.html
@@ -0,0 +1,134 @@
+{% extends "base.html" %}
+{% block title %}Resource Manager{% endblock %}
+{% block css %}
+
+
+{% endblock %}
+{% block content %}
+
+
+
+
+
+{% endblock %}
+
+{% block js %}
+
+
+
+
+
+{% endblock %}
diff --git a/gn2/wqflask/templates/admin/set_group_privileges.html b/gn2/wqflask/templates/admin/set_group_privileges.html
new file mode 100644
index 00000000..04842453
--- /dev/null
+++ b/gn2/wqflask/templates/admin/set_group_privileges.html
@@ -0,0 +1,102 @@
+{% extends "base.html" %}
+{% block title %}Set Group Privileges{% endblock %}
+{% block css %}
+
+
+
+{% endblock %}
+{% block content %}
+
+
+
+
+
+{% endblock %}
+
+{% block js %}
+
+
+{% endblock %}
diff --git a/gn2/wqflask/templates/admin/user_manager.html b/gn2/wqflask/templates/admin/user_manager.html
new file mode 100644
index 00000000..2b6c1b2b
--- /dev/null
+++ b/gn2/wqflask/templates/admin/user_manager.html
@@ -0,0 +1,41 @@
+{% extends "base.html" %}
+{% block title %}User Manager{% endblock %}
+{% block content %}
+
+ {{ header("List of users", "" )}}
+
+
+
+
+
+
+
+
+ Email |
+ Organization |
+ Active |
+ Confirmed |
+ Superuser |
+
+
+ {% for user in users %}
+
+
+ {{ user.email_address }}
+ |
+ {{ user.organization }} |
+ {{ 'Yes' if user.active else 'No' }} |
+ {{ 'True' if user.confirmed else 'False' }} |
+ {{ 'True' if user.superuser else 'False' }} |
+
+ {% endfor %}
+
+
+
+
+
+
+
+{% endblock %}
diff --git a/gn2/wqflask/templates/admin/view_group.html b/gn2/wqflask/templates/admin/view_group.html
new file mode 100644
index 00000000..c88ce0e7
--- /dev/null
+++ b/gn2/wqflask/templates/admin/view_group.html
@@ -0,0 +1,270 @@
+{% extends "base.html" %}
+{% block title %}View and Edit Group{% endblock %}
+{% block css %}
+
+
+
+{% endblock %}
+{% block content %}
+
+{% set GROUP_URL = url_for('group_management.view_group', group_id=group_info.guid) %}
+{% set UPDATE_GROUP_URL = url_for('group_management.update_group', group_id=group_info.guid) %}
+
+
+
+
+{% endblock %}
+
+{% block js %}
+
+
+
+{% endblock %}
--
cgit v1.2.3