about summary refs log tree commit diff
path: root/gn2/wqflask/templates/oauth2/masquerade.html
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/templates/oauth2/masquerade.html')
-rw-r--r--gn2/wqflask/templates/oauth2/masquerade.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/gn2/wqflask/templates/oauth2/masquerade.html b/gn2/wqflask/templates/oauth2/masquerade.html
new file mode 100644
index 00000000..48ec6cee
--- /dev/null
+++ b/gn2/wqflask/templates/oauth2/masquerade.html
@@ -0,0 +1,39 @@
+{%extends "base.html"%}
+{%from "oauth2/profile_nav.html" import profile_nav%}
+{%from "oauth2/display_error.html" import display_error%}
+{%block title%}Masquerade As{%endblock%}
+{%block content%}
+<div class="container" style="min-width: 1250px;">
+  {{profile_nav("masquerade", user_privileges)}}
+
+  {{flash_me()}}
+
+  {%if users_error is defined%}
+  {{display_error("Users", users_error)}}
+  {%else%}
+  <div class="container-fluid">
+    <div class="row">
+      <form method="POST"
+	    action="{{url_for('oauth2.user.masquerade')}}">
+	<legend>Masquerade As</legend>
+	<div class="form-group">
+	  <label for="select-masquerade" class="form-label">
+	    Masquerade as
+	  </label>
+	  <select id="select-masquerade" name="masquerade_as"
+		  required="required" class="form-control">
+	    <option value="">Select User</option>
+	    {%for user in users%}
+	    <option value="{{user.user_id}}">{{user.name}} ({{user.email}})</option>
+	    {%endfor%}
+	  </select>
+	</div>
+	<div class="form-group">
+	  <input type="submit" class="btn btn-primary" value="Masquerade" />
+	</div>
+      </form>
+    </div>
+  </div>
+  {%endif%}
+</div>
+{%endblock%}