Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5591 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>
24923 amit.gupta 4
        <script type="text/javascript" src="/inventory/js/jquery-1.4.2.js"></script>
24921 amit.gupta 5
        <script type="text/javascript" src="/inventory/js/jquery.dataTables.min.js"></script>
5591 mandeep.dh 6
		<title>
7
			Suppliers
8
		</title>
24926 amit.gupta 9
		<style>
10
			.might-overflow {
11
			    text-overflow: ellipsis;
12
			    overflow : hidden;
13
			    white-space: nowrap;
14
			}
15
			.might-overflow:hover {
16
			    text-overflow: clip;
17
			    white-space: normal;
18
			    word-break: break-all;
19
			}
20
 
21
		</style>
5591 mandeep.dh 22
        <script>
23
            $(document).ready(function() {
24
                $('td').css('white-space', 'nowrap');
25
            });
26
        </script>
27
	</head>
24926 amit.gupta 28
 
5591 mandeep.dh 29
	<body>
30
        <a href="/inventory">Go to Home page</a>
31
        <br />                
32
		<h2>Suppliers</h2>
33
        <span style="color:red">
34
            $action.getErrorMessage()
35
        </span>
24927 amit.gupta 36
        <div>
5591 mandeep.dh 37
            #if($action.isPermitted("supplier:create"))
38
            <a href="/inventory/supplier/new">Add new Supplier</a>
39
            #end
40
        </div>
24927 amit.gupta 41
        <table style="width:100vw";border="1">
42
            <thead>
43
                <tr>
44
                    <th>Id</th>
45
                    <th>Name</th>
46
                    <th>Phone</th>
47
                    <th>Fax</th>
48
                    <th>GSTN</th>
49
                    <th>Pan</th>
50
					<th>State</th>
51
					<th>PO Validity Days Limit</th>
52
                    <th>Head</th>
53
                    <th>Head email</th>
54
                    <th>Contact Person</th>
55
                    <th>Contact email</th>
56
                    <th>Contact phone</th>
57
                    <th>Contact fax</th>
58
                    <th>Registered address</th>
59
                    <th>Communicaton address</th>
5591 mandeep.dh 60
                </tr>
61
            </thead>
24927 amit.gupta 62
            <tbody>
5591 mandeep.dh 63
                #foreach($supplier in $action.getSuppliers())
24927 amit.gupta 64
                    <tr>
65
                        <td>$supplier.getId()</td>
66
                        <td>
5591 mandeep.dh 67
                            #if($action.isPermitted("supplier:edit"))
68
                                <a href="/inventory/supplier/$supplier.getId()/edit">$supplier.getName()</a>
69
                            #else
70
                                $supplier.getName()
71
                            #end
72
                        </td>
21874 amit.gupta 73
                        <td>$supplier.getPhone()</td>
74
                        <td>$supplier.getFax()</td>
75
                        <td>$supplier.getGstin()</td>
76
                        <td>$supplier.getPan()</td>
77
                        <td>$action.getStateName($supplier.getStateId())</td>
78
                        <td>$supplier.getPoValidityLimit()</td>
79
                        <td>$supplier.getHeadName()</td>
80
                        <td>$supplier.getHeadEmail()</td>
81
                        <td>$supplier.getContactName()</td>
24926 amit.gupta 82
                        <td class="might-overflow">$supplier.getContactEmail()</td>
21874 amit.gupta 83
                        <td>$supplier.getContactPhone()</td>
84
                        <td>$supplier.getContactFax()</td>
24926 amit.gupta 85
                        <td class="might-overflow">$supplier.getRegisteredAddress()</td>
86
                        <td class="might-overflow">$supplier.getCommunicationAddress()</td>
5591 mandeep.dh 87
                    </tr>
88
                #end
89
            </tbody>
90
        </table>
91
    </body>
24924 amit.gupta 92
</html>
93
<script type="text/javascript">
94
$('table').dataTable({
95
					"sPaginationType": "full_numbers",
96
		            "iDisplayLength" : 25,
97
		        });
98
</script>