aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-17 15:52:23 -0500
committerFrederick Muriuki Muriithi2024-06-17 15:52:23 -0500
commitdd7268bc0c2d841779ba488b13ca0b1f0e9ea6bc (patch)
tree818e470de796b98bd2e20c370a086a73885ff40d /gn2/wqflask/templates
parent529932949c8631f3c3e64817123d67cd73d90d1e (diff)
downloadgenenetwork2-dd7268bc0c2d841779ba488b13ca0b1f0e9ea6bc.tar.gz
Remove deprecated endpoints/views and templates
Diffstat (limited to 'gn2/wqflask/templates')
-rw-r--r--gn2/wqflask/templates/oauth2/view-group-role.html102
1 files changed, 0 insertions, 102 deletions
diff --git a/gn2/wqflask/templates/oauth2/view-group-role.html b/gn2/wqflask/templates/oauth2/view-group-role.html
deleted file mode 100644
index 5da023bf..00000000
--- a/gn2/wqflask/templates/oauth2/view-group-role.html
+++ /dev/null
@@ -1,102 +0,0 @@
-{%extends "base.html"%}
-{%from "oauth2/profile_nav.html" import profile_nav%}
-{%from "oauth2/display_error.html" import display_error%}
-{%block title%}View User{%endblock%}
-{%block content%}
-<div class="container" style="min-width: 1250px;">
- {{profile_nav("roles", user_privileges)}}
- <h3>View Group Role</h3>
-
- {{flash_me()}}
-
- <div class="container-fluid">
- <div class="row">
- <h3>Role Details</h3>
- {%if group_role_error is defined%}
- {{display_error("Group Role", group_role_error)}}
- {%else%}
- <table class="table">
- <caption>Details for '{{group_role.role.role_name}}' Role</caption>
- <thead>
- <tr>
- <th>Privilege</th>
- <th>Description</th>
- <th>Action</th>
- </tr>
- </thead>
- <tbody>
- {%for privilege in group_role.role.privileges%}
- <tr>
- <td>{{privilege.privilege_id}}</td>
- <td>{{privilege.privilege_description}}</td>
- <td>
- <form action="{{url_for(
- 'oauth2.group.delete_privilege_from_role',
- group_role_id=group_role.group_role_id)}}"
- method="POST">
- <input type="hidden" name="privilege_id"
- value="{{privilege.privilege_id}}" />
- <input type="submit" class="btn btn-danger"
- value="Remove"
- {%if not group_role.role.user_editable%}
- disabled="disabled"
- {%endif%} />
- </form>
- </td>
- </tr>
- {%endfor%}
- </tbody>
- </table>
- {%endif%}
- </div>
-
- <div class="row">
- <h3>Other Privileges</h3>
- <table class="table">
- <caption>Other Privileges not Assigned to this Role</caption>
- <thead>
- <tr>
- <th>Privilege</th>
- <th>Description</th>
- <th>Action</th>
- </tr>
- </thead>
-
- <tbody>
- {%for priv in group_privileges%}
- <tr>
- <td>{{priv.privilege_id}}</td>
- <td>{{priv.privilege_description}}</td>
- <td>
- <form action="{{url_for(
- 'oauth2.group.add_privilege_to_role',
- group_role_id=group_role.group_role_id)}}"
- method="POST">
- <input type="hidden" name="privilege_id"
- value="{{priv.privilege_id}}" />
- <input type="submit" class="btn btn-warning"
- value="Add to Role"
- {%if not group_role.role.user_editable%}
- disabled="disabled"
- {%endif%} />
- </form>
- </td>
- </tr>
- {%else%}
- <tr>
- <td colspan="3">
- <span class="glyphicon glyphicon-info-sign text-info">
- </span>
- &nbsp;
- <span class="text-info">All privileges assigned!</span>
- </td>
- </tr>
- {%endfor%}
- </tbody>
- </table>
- </div>
-
- </div>
-
-</div>
-{%endblock%}