forked from RealistikOsu/RealistikPanel
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathusers.html
99 lines (96 loc) · 2.94 KB
/
users.html
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{% extends "base.html" %}
{% import "components/pagination.html" as pagination %}
{% block content %}
<style>
/* #page-items li {
display: inline-block;
}
#page-after,
#page-before {
display: inline-block;
} */
</style>
<h2 class="section-title">Users</h2>
<p class="section-lead">
This is the users panel. It lists all registered users and provides links to
actions that can be quickly done to the users.
</p>
<div class="card">
<div class="card-header">Search for users.</div>
<div class="card-body">
<form action="/users/1" method="post">
<div class="form-group">
<input
type="text"
class="form-control"
name="user"
placeholder="Username or Email"
value="{{ User }}"
/>
</div>
<button class="btn btn-success" type="submit" name="">Search</button>
</form>
</div>
<div class="card-footer">RealistikPanel</div>
</div>
{{ pagination.pagination('/users', page, pages) }}
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">Name</th>
<th scope="col">Privilege</th>
<th scope="col">Allowed</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
{% for user in UserData %}
<tr>
<td>{{ user["Id"] }}</td>
<td>
<div class="user-info">
{% if not user['Country'] == "XX" %}
<img
class="nflag"
src="https://ussr.pl/static/images/new-flags/flag-{{ user['Country'].lower() }}.svg"
/>
{% else %}
<img
class="nflag"
src="https://ussr.pl/static/images/new-flags/xx.png"
/>
{% endif %}
<a href="{{ config.srv_url }}u/{{ user['Id'] }}" target="_blank"
>{{ user["Name"] }}</a
>
</div>
</td>
<td>
<a
class="badge badge-{{ user['Privilege']['Colour'] }}"
style="color: white;"
>{{ user["Privilege"]["Name"] }}</a
>
</td>
{% if user["Allowed"] %}
<td>
<a class="badge badge-success" style="color: white;">Yes</a>
</td>
{% else %}
<td><a class="badge badge-danger" style="color: white;">No</a></td>
{% endif %}
<td>
<a class="btn btn-danger" href="/user/edit/{{ user['Id'] }}"
>Edit</a
>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{{ pagination.pagination('/users', page, pages) }}
{{ pagination.paginationJs('/users', page, pages) }}
{% endblock %}