-
Notifications
You must be signed in to change notification settings - Fork 0
/
add.html
74 lines (72 loc) · 2.24 KB
/
add.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<template name="add">
<div class="page">
<h1>Add</h1>
<form>
<table>
<tr>
<td></td>
<td colspan="2" style="text-align:center">
<!--
<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-barcode"></span></button>
or
<button type="submit" class="btn btn-default" formaction="camera"><span class="glyphicon glyphicon-camera"></span></button>
-->
<img id="itemImg" width="50px" height="50px" src="{{itemImage.url}}" /> <button type="button" class="btn btn-default" id="btnCancelImg"><span class="glyphicon glyphicon-remove"></span></button>
<br />
<input type="file" id="imgInput" />
</td>
<td></td>
</tr>
<tr>
<td>
Name:
</td>
<td></td>
<td>
<input type="text" id="itemName" autocomplete="off">
</td>
</tr>
<tr>
<td>
Quantity:
</td>
<td>
<button type="button" class="btn btn-default" id="btnDecrement"><span class="glyphicon glyphicon-minus-sign"></span></button>
</td>
<td>
<input type="number" id="txtQuantity" value="1" min="1">
</td>
<td>
<button type="button" class="btn btn-default" id="btnIncrement"><span class="glyphicon glyphicon-plus-sign"></span></button>
</td>
</tr>
<tr>
<td>
Total Cost:
</td>
<td style="text-align:right">
$
</td>
<td>
<input type="number" id="txtCost" step="0.01" min="0" value="0.99" />
</td>
</tr>
<tr>
<td>
Expiration Date:
</td>
<td></td>
<td>
<input type="date" id="expDate" />
</td>
</tr>
</table>
<button type="submit" class="btn btn-default" id="btnSave">Add</button>
</form>
<div>
{{#each recentAdds}}
{{>item}}
{{/each}}
</div>
</div>
</template>