summaryrefslogtreecommitdiffstats
path: root/templates/products/entry.html
blob: 0b5cee7172dfb2e7c987719bc6a6dd86d0439f44 (plain)
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
<h2>Product Information</h2>
<p>
	<table class="table table-bordered table-nonfluid">
		<th>EAN</th><td>{{{EAN}}}</td></tr>
		<th>Name</th><td>{{{NAME}}}</td></tr>
		<th>Amount</th><td>{{{AMOUNT}}}</td></tr>
	</table>
</p></p>

<h2>Price History</h2>
<table class="table table-bordered table-nonfluid">
	<tr><th>Valid Since</th><th>Memberprice</th><th>Guestprice</th></tr>
	{{{PRICES}}}
</table>

<div id="new_price" style="display: {{{ISADMIN}}};">
	<form action="/products/{{{EAN}}}/newprice" class="form-horizontal">
		<input class="input-small" name="member" type="number" step="0.01" min="0.01" placeholder="Member" />
		<input class="input-small" name="guest"  type="number" step="0.01" min="0.01" placeholder="Guest" />
		<button type="submit" class="btn btn-primary">Add new Prices</button>
	</form>
</div>

<h2>Restock</h2>
<table class="table table-bordered table-nonfluid">
	<tr><th>Date</th><th>Amount</th><th>Unit Price</th><th>Supplier</th><th>Best before Date</th></tr>
	{{{RESTOCKS}}}
</table>

<div id="restock" style="display: {{{ISADMIN}}};">
	<form action="/products/{{{EAN}}}/restock" class="form-horizontal">
		<input class="input-small" name="amount" type="number" min="1" placeholder="Amount" title="Amount" />
		<input class="input-small" name="price"  type="number" step="0.01" min="0.01" placeholder="Price" title="Price per Piece" />
		<select name="supplier" title="Supplier">
			{{{SUPPLIERS}}}
		</select>
		<input class="input-small" name="best_before_date"  type="date" title="Best Before Date (YYYY-MM-DD)" />
		<button type="submit" class="btn btn-primary"><i class="icon-plus"></i></button>
	</form>
</div>