useradmin.html 1.63 KB
Newer Older
1 2 3 4
{% extends 'layouts/base.html' %}


{% block title %}
David Haynes's avatar
David Haynes committed
5
SRCT Go • Administration Panel
6 7 8 9 10 11 12 13 14
{% endblock %}


{% block content %}

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

15 16 17 18 19 20 21
      <h1><strong>
        <span class="fa-stack fa-lg">
          <i class="fa fa-circle fa-stack-2x"></i>
          <i class="fa fa-balance-scale fa-stack-1x fa-inverse"></i>
        </span>
        <i class="fa">Moderation Panel</i>
      </strong></h1>
22 23 24 25 26 27 28 29

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

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

30
    <h3>Users awaiting moderation</h3>
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

    <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>
47 48
          <td><input type="checkbox" name="username" value={{ unapproved.user }}></td>
          <td>{{ unapproved.user }}</td>
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
          <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">

66 67 68
      <input type="submit" name="_approve" value="Approve" class="btn btn-primary btn-sm">
      <input type="submit" name="_deny" value="Deny" class="btn btn-danger btn-sm">

69 70 71 72 73 74 75 76 77 78

    </div>

    </form>

  </div>
</div>


{% endblock %}