aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/oauth2/view-user.html
blob: 34526b1462d165a8eeedcc8b6e7f505f8cf362bf (about) (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
40
41
42
43
44
45
46
47
48
{%extends "base.html"%}
{%from "oauth2/profile_nav.html" import profile_nav%}
{%block title%}View User{%endblock%}
{%block content%}
<div class="container" style="min-width: 1250px;">
  {{profile_nav("dashboard", user_privileges)}}
  <h3>View User</h3>

  {{flash_me()}}

  <div class="container-fluid">
    <div class="row">
      {%if user_details%}
      <p><strong>Name</strong>: {{user_details.name}}</p>
      <p><strong>E-Mail</strong>: {{user_details.email}}</p>
      {%if user_details.group%}
      <p><strong>Group</strong>:{{user_details.group.group_name}}</p>
      {%else%}
      <p>
	<span class="glyphicon glyphicon-warning-sign text-warning"></span>
	&nbsp;
	<span class="text-warning">User is not a member of a group.</span>
      </p>

      {%if group_join_request is defined and group_join_request.exists %}
      <p>
	<span class="glyphicon glyphicon-info-sign text-warning"></span>
	&nbsp;
	<span class="text-info">You have an active join request to a group.</span>
      </p>
      {%else%}
      <p><a href="{{url_for('oauth2.group.join_or_create')}}"
	    class="btn btn-primary"
	    title="Join an existing group, or create your own group">
	  Join or Create group
      </a></p>
      {%endif%}

      {%endif%}
      {%else%}
      <p class="text-warning">No details found.</p>
      {%endif%}
    </div>

  </div>

</div>
{%endblock%}