Added some stuff
This commit is contained in:
1 parent
d8d4016803
commit
9f076442c8
3 files changed
+64
-13
No files matched your search
+21
-3
@@ -4,14 +4,14 @@
|
||||
</head>
|
||||
<body style="background: #868686">
|
||||
<h1>Shopping list </h1>
|
||||
<table style="width:100%; justify-content: left">
|
||||
<table >
|
||||
<tr>
|
||||
<th>Requester</th>
|
||||
<th>Item</th>
|
||||
<th>Quantity</th>
|
||||
<th>Got It?</th>
|
||||
</tr>
|
||||
{% for res in data %}
|
||||
<!-- {% for res in data %}
|
||||
<tr>
|
||||
{% for field in res %}
|
||||
<td>
|
||||
@@ -19,7 +19,25 @@
|
||||
</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %} -->
|
||||
|
||||
{% for lists in data %}
|
||||
<tr>
|
||||
<td> {{ lists['req'] }}</td>
|
||||
<td> {{ lists['item'] }}</td>
|
||||
<td> {{ lists['quantity'] }}</td>
|
||||
<td> {% if lists['gotten'] == "False" %}
|
||||
no
|
||||
{% else %}
|
||||
yes
|
||||
{% endif %}</td>
|
||||
<td> <form action="/" method="post">
|
||||
<input type="submit" name="gotten" value="*">
|
||||
<input type="hidden" name="id" value="{{ lists['id'] }}" />
|
||||
</form> </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</table>
|
||||
<table>
|
||||
<form action="/" method="post">
|
||||
@@ -36,7 +54,7 @@
|
||||
<td><input type="text" name='quantity'/><br/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="submit" value="Add Item"/></td>
|
||||
<td><input type="submit" name="addItem" value="Add Item"/></td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
|
||||
Reference in new issue
Block a user