summaryrefslogtreecommitdiffstats
path: root/templates/products/inventory.html
blob: ede1aea30150751bf4de5b07c313f4dc69139bb5 (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
41
42
43
44
45
46
47
48
49
<h1>Inventory <small>Thanks that you do it! </small></h1>

<div class="{{{SUCESS_HIDDEN}}} alert alert-success">
    <strong>Success!</strong> Every change was added. Thank you!
</div>

<div class="alert alert-info">
    <strong>Tip!</strong> You can download an inventory PDF to collect the data offline. 
    <a href="/products/inventory-pdf" target="_blank" class="btn btn-primaryn">Only products with amount > 0</a>
    <a href="/products/inventory-pdf?all=1" target="_blank" class="btn btn-primaryn">All products</a>
</div>

<form action="/products/inventory" method="POST" class="form form-horizontal">
    <div class="{{{RESTOCK_HIDDEN}}} control-group">
        <label class="control-label">Select the supplier for the restock action.</label>
        <div class="controls">
            <select name="supplierId">
                {{{SUPPLIERS}}}
            </select>
        </div>
    </div>
    <div class="{{{RESTOCK_HIDDEN}}} control-group">
        <label class="control-label">Select the Shop User for loss transaction.</label>
        <div class="controls">
            <select name="userId">
                {{{USERS}}}
            </select>
        </div>
    </div>
    <table class="sortable table table-bordered table-striped table-condensed">
        <thead>
            <tr>
                <th>EAN</th>
                <th>Name</th>
                <th>Category</th>
                <th>Expected Amount</th>
                <th>Real Amount</th>
            </tr>
        </thead>
        <tbody>
            {{{DATA}}}
        </tbody>
    </table>

    <div class="pull-right">
        {{{ACTION}}}
    </div>

</form>