Subversion Repositories SmartDukaan

Rev

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