aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/oauth2/masquerade.html
blob: 48ec6cee49e64babbcf14a7f6c3ae324758ac738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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%}