25 lines
898 B
HTML
25 lines
898 B
HTML
<table class="table-striped table">
|
|
<thead class="thead-dark">
|
|
<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"] %}
|
|
<tr id="row-{{x[0]}}">
|
|
<td>{{x[1]}}</td>
|
|
<td>{{x[4]}}</td>
|
|
|
|
<td> {% if x[3] == 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 %}
|
|
</table> |