Added in a admin page and auth checks
This commit is contained in:
1 parent
853089f3b5
commit
40242afa36
5 files changed
+168
-54
No files matched your search
+29
-25
@@ -1,27 +1,31 @@
|
||||
<table class="table table-striped table-dark table-hover">
|
||||
<thead class="">
|
||||
<tr>
|
||||
<th scope="col">Item</th>
|
||||
<th scope="col">Requester</th>
|
||||
<th scope="col">Gottem?</th>
|
||||
<th scope="col">Remove</th>
|
||||
</tr>
|
||||
{% for x in data["results"] %}
|
||||
<tbody>
|
||||
<tr scope="row" id="row-{{x[0]}}">
|
||||
<td>{{x[1]}}</td>
|
||||
<td>{{x[3].title()}}</td>
|
||||
|
||||
<td> {% if x[2] == 0 %}
|
||||
<form><button class="btn btn-secondary" type="submit" formaction="/post" formmethod="POST" name="got" value="{{x[0]}}">No</button></form>
|
||||
{% else %}
|
||||
<form><button class="btn btn-secondary" type="submit" formaction="/post" formmethod="POST" name="ungot" value="{{x[0]}}">Yes</button></form>
|
||||
{% endif %}</td>
|
||||
<td><form>
|
||||
<button class="btn btn-secondary" type="submit" formaction="/post" formmethod="POST" name="rem" value="{{x[0]}}">Remove</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<thead class="">
|
||||
<tr>
|
||||
<th scope="col">Item</th>
|
||||
<th scope="col">Requester</th>
|
||||
<th scope="col">Gottem?</th>
|
||||
<th scope="col">Remove</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for x in data["results"] %}
|
||||
<tr scope="row" id="row-{{x[0]}}">
|
||||
<td>{{x[1]}}</td>
|
||||
<td>{{x[3].title()}}</td>
|
||||
<td> {% if x[2] == 0 %}
|
||||
<form><button class="btn btn-secondary" type="submit" formaction="/post" formmethod="POST" name="got"
|
||||
value="{{x[0]}}">No</button></form>
|
||||
{% else %}
|
||||
<form><button class="btn btn-secondary" type="submit" formaction="/post" formmethod="POST" name="ungot"
|
||||
value="{{x[0]}}">Yes</button></form>
|
||||
{% endif %}</td>
|
||||
<td>
|
||||
<form>
|
||||
<button class="btn btn-secondary" type="submit" formaction="/post" formmethod="POST" name="rem"
|
||||
value="{{x[0]}}">Remove</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in new issue
Block a user