Fakultas Ilmu Komputer UI

verif.html 3.02 KB
Newer Older
Samuel Dimas Partogi's avatar
Samuel Dimas Partogi committed
1
{% extends 'administration/base_administrasi2.html' %}
2
3
{% load static %}

Samuel Dimas Partogi's avatar
Samuel Dimas Partogi committed
4
5
6
{% block title %}
<title>Verifikasi Materi | Digipus</title>
{% endblock %}
7

Samuel Dimas Partogi's avatar
Samuel Dimas Partogi committed
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
{% block content %}
 <!-- DataTales Example -->
 <div class="card shadow mb-4">
  <div class="card-header py-3">
    <h6 class="m-0 font-weight-bold text-primary" id="titleTabelPending">Verifikasi Materi</h6>
  </div>
  <div class="card-body">
    <div class="table-responsive">
      <table class="table table-bordered" id="dataTablePending" aria-describedby="titleTabelPending">
        {% if not materi_list_pending %}
          Tidak ada materi yang perlu diverifikasi
        {% else %}
        <thead>
          <tr>
            <th scope="col">Judul Materi</th>
            <th scope="col">Nama Kontributor</th>
            <th scope="col">Status</th>
            <th scope="col">Tombol</th>
          </tr>
        </thead>
        <tfoot>
          <tr>
            <th scope="col">Judul Materi</th>
            <th scope="col">Nama Kontributor</th>
            <th scope="col">Status</th>
            <th scope="col">Tombol</th>
          </tr>
        </tfoot>
        <tbody>
          {% for materi in materi_list_pending %}
          <tr>
            <td>{{ materi.title }}</td>
            <td>{{ materi.uploader.name }}</td>
            <td>{{ materi.get_status_display }}</td>
            {% if materi.status == "PENDING" %}
            <td class="verif-buttons">
              <a href="/administration/detail-verif/{{materi.id}}/" class="accept-button"
                style="background-color:#4e73df">Detail</a>
            {% endif %}

          </tr>
          {% endfor %}
        </tbody>
        {% endif %}
      </table>
53
54
    </div>
  </div>
Samuel Dimas Partogi's avatar
Samuel Dimas Partogi committed
55
</div>
56

Samuel Dimas Partogi's avatar
Samuel Dimas Partogi committed
57
58
59
60
61
62
63
<!-- DataTales Example -->
<div class="card shadow mb-4">
  <div class="card-header py-3">
    <h6 class="m-0 font-weight-bold text-primary" id="titleTabelRiwayat">Riwayat Verifikasi Materi</h6>
  </div>
  <div class="card-body">
    <div class="table-responsive">
64
      <table class="table table-bordered" id="dataTableRiwayat" aria-describedby="titleTabelRiwayat">
Samuel Dimas Partogi's avatar
Samuel Dimas Partogi committed
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
        <thead>
          <tr>
            <th scope="col">Judul Materi</th>
            <th scope="col">Nama Kontributor</th>
            <th scope="col">Status</th>
            <th scope="col">Tombol</th>
          </tr>
        </thead>
        <tfoot>
          <tr>
            <th scope="col">Judul Materi</th>
            <th scope="col">Nama Kontributor</th>
            <th scope="col">Status</th>
            <th scope="col">Tombol</th>
          </tr>
        </tfoot>
        <tbody>
          {% for materi in materi_list_history %}
          <tr>
            <td>{{ materi.title }}</td>
            <td>{{ materi.uploader.name }}</td>
            <td>{{ materi.get_status_display }}</td>
            <td class="verif-buttons">
              <a href="/administration/detail-verif/{{materi.id}}/" class="accept-button"
                style="background-color:#4e73df">Detail</a>

          </tr>
          {% endfor %}
        </tbody>
      </table>
    </div>
  </div>
</div>
{% endblock %}