Subversion Repositories SmartDukaan

Rev

Rev 4687 | Rev 5110 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4687 mandeep.dh 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
    <head>
4
        <title>
5
            Inventory at $action.getWarehouse().getDisplayName()
6
        </title>
7
        <script type="text/javascript" src="/inventory/js/jquery-1.4.2.js"></script>
8
        <script type="text/javascript" src="/inventory/js/current-inventory.js"></script>
9
        <link rel="stylesheet" href="/inventory/css/common.css" type="text/css" />
10
    </head>
11
    <body>
12
        <div >
13
            <a href="/inventory/current-inventory">Go to all warehouses</a>
14
            <br />
15
            <table border="1">
16
                <thead >
17
                    <tr >
18
                        <th>Item ID</th>
19
                        <th>Product</th>
20
                        <th>Availability</th>
21
                        <th>Reserved</th>
4754 mandeep.dh 22
                        #if($action.isPermitted("inventory:edit"))
23
                        <th ></th>
24
                        #end
4687 mandeep.dh 25
                    </tr>
26
                </thead>
27
                <tbody >
28
                    #foreach($item in $action.getInventory())
29
                        <tr >
30
                            <td >$item.getId()</td> 
31
                            <td >$action.getName($item)</td>
32
                            <td >$action.getAvailibility($item)</td>
33
                            <td >$action.getReserved($item)</td>
4754 mandeep.dh 34
                            #if($action.isPermitted("inventory:edit"))
35
                            <td ><input class="increaseAvailabilityButton" type="button" value="Increase availability"/>
36
                                 <form class="increaseAvailabilityForm hidden" method="post" action="/inventory/current-inventory!increaseAvailability">
37
                                    <div >
38
                                        <label >Quantity: </label>
39
                                        <input type="text" name="quantity"/> <br />
40
                                        <input type="submit" value="Increase availability"/>
41
                                        <input type="button" value="Cancel" class="cancelButton"/>
42
                                        <input type="hidden" name="itemId" value="$item.getId()"/>
43
                                        <input type="hidden" name="id" value="$action.getId()"/>
44
                                    </div>
45
                                 </form>
46
                            </td>
47
                            #end
4687 mandeep.dh 48
                        </tr>
49
                    #end
50
                </tbody>
51
            </table>
52
        </div>
53
    </body>
54
</html>