Moved parts of the html separate files
This commit is contained in:
1 parent
1ba198f130
commit
a8b4c42e32
7 files changed
+49
-93
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<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 type="submit" formaction="/post" formmethod="POST" name="got" value="{{x[0]}}">No</button></form>
|
||||
{% else %}
|
||||
yes
|
||||
{% endif %}</td>
|
||||
<td><form>
|
||||
<button type="submit" formaction="/post" formmethod="POST" name="rem" value="{{x[0]}}">Remove</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
Reference in new issue
Block a user