Implemented users

Changed DB type to MySQL
Cried
This commit is contained in:
Benjamyn Love committed 2020-01-29 20:46:54 +11:00
1 parent a450e8aea2
commit 22d030edd6
11 files changed
+128 -48

No files matched your search

+7 -5
View File
@@ -1,5 +1,5 @@
<table class="table-striped table">
<thead class="thead-dark">
<table class="table table-striped table-dark table-hover">
<thead class="">
<tr>
<th scope="col">Item</th>
<th scope="col">Requester</th>
@@ -7,11 +7,12 @@
<th scope="col">Remove</th>
</tr>
{% for x in data["results"] %}
<tr id="row-{{x[0]}}">
<tbody>
<tr scope="row" id="row-{{x[0]}}">
<td>{{x[1]}}</td>
<td>{{x[4]}}</td>
<td>{{x[3].title()}}</td>
<td> {% if x[3] == 0 %}
<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>
@@ -22,4 +23,5 @@
</td>
</tr>
{% endfor %}
</tbody>
</table>