useradmin.html 1.41 KB
Newer Older
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
{% extends 'layouts/base.html' %}


{% block title %}
Go - Administration Panel
{% endblock %}


{% block content %}

<div class="page-header" id="banner">
  <div class="row">
    <div class="col-md-12">

      <h1><strong>Moderation Panel</strong></h1>

    </div>
  </div>
</div>

<div class="row">
  <div class="col-md-12">

    <h2>Users awaiting moderation</h2>

    <form method="post" action="useradmin">{% csrf_token %}

    <table class="table table-striped table-hover ">
      <thead>
        <tr>
          <th>Selected</th>
          <th>Username</th>
          <th>Full Name</th>
          <th>Description</th>
        </tr>
      </thead>
      <tbody>

      {% for unapproved in need_approval %}
        <tr>
          <td><input type="checkbox" name="username" value={{ unapproved.username }}></td>
          <td>{{ unapproved.username }}</td>
          <td>{{ unapproved.full_name }}</td>
          <td>{{ unapproved.description|default:"No description provided" }}</td>
        </tr>
      {% empty %}
        <tr>
          <td>none</td>
          <td>none</td>
          <td>none</td>
          <td>none</td>
        </tr>
      {% endfor %}

      </tbody>
    </table>

    <div class="form-group">

      <input type="submit" name="_approve" value="Approve" class="btn btn-primary">
      <input type="submit" name="_deny" value="Deny" class="btn btn-default">

    </div>

    </form>

  </div>
</div>


{% endblock %}