Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
23783 ashik.ali 1
<style>
2
	.table-striped > tbody > tr:nth-child(odd) > td{
3
  		background: white;
4
  		background-color: white;
5
	}
6
	.table-striped > tbody > tr:nth-child(even) > td{
7
  		background: white;
8
  		background-color:white;
9
	}
10
	.table-striped > tbody > tr:hover > td,
11
	.table-striped > tbody > tr:hover {
12
		background-color: #e98c8f;
13
	  	color:white;
14
	}
15
	.btn:hover{
16
  		color: grey;
17
  		text-decoration: none;
18
	}
19
	.btn-primary:hover{
20
  		color: grey;
21
  		text-decoration: none;
22
	}
23
	.vendor-details{
24
		cursor:pointer;
25
	}
26
</style>
27
 
28
<script>
29
	configureVendorsDropDown();
30
</script>
31
 
32
<section class="wrapper">            
33
	<div class="row">
34
		<div class="col-lg-12">
35
			<h3 class="page-header"><i class="icon_document_alt"></i>ITEM</h3>
36
			<ol class="breadcrumb">
37
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
38
				<li><i class="icon_document_alt"></i>ITEMS</li>						  	
39
			</ol>
40
		</div>
41
	</div>
42
	<div>
43
		<form id="create-item-form">
44
			<div class = "row">
45
				<div class="col-lg-3 form-group">
46
					<select class="form-control input-sm" id = "vendors" name = "vendors" placeholder="Vendors">
47
						<option value="" disabled selected>Vendors</option>
48
						#foreach($vendor in $vendors)
49
	         				<option value="$vendor.getId()">$vendor.getName()</option>
50
	         			#end
51
	         		</select>
52
				</div>
53
				<div class="col-lg-2 form-group">
54
				   	<input placeholder="Brand" id="itemBrand" name="itemBrand" type="text" value="" class="form-control input-sm">
55
				</div>
56
				<div class="col-lg-2 form-group">
57
				   	<input placeholder="Description" id="description" name="description" type="text" value="" class="form-control input-sm">
58
				</div>
59
				<div class="col-lg-2 form-group">
60
					<select class="form-control input-sm" id = "types" name = "types" placeholder="Types">
61
						<option value="" disabled selected>Types</option>
62
						#foreach($type in $types)
63
	         				<option value="$type">$type</option>
64
	         			#end
65
	         		</select>
66
				</div>
67
				<div class="col-lg-1 form-group">
68
				   	<input placeholder="Price" id="price" name="price" type="number" value="0" class="form-control input-sm">
69
				</div>
70
				<div class="col-lg-2 form-group">
71
					<input class="btn btn-primary" type="submit" style="width:100%;border-radius:0px;" value="Create Item">	
72
				</div>
73
			</div>
74
		</form>
75
	</div>
76
  	<div id="items-table">
77
		<div class="row">
78
	    	<div class="col-lg-12">
79
	    		<table class="table table-striped table-advance table-hover">
80
	    			<tbody>
81
	    				<tr>
82
	    					<th>Vendor Name</th>
83
	    					<th>Brand</th>
84
	    					<th>Description</th>
85
	    					<th>Type</th>
86
	    					<th>Price</th>
87
	    					<th>Created On</th>
88
	    				</tr>
89
	    				#if(!$items.isEmpty())
90
			    			#foreach( $item in $items )
91
			    				<tr class="item-details" data="$item.getId()">
92
			    					<td>$vendorIdNameMap.get($item.getVendorId())</td>
93
			    					<td>$item.getBrand()</td>
94
			    					<td>$item.getDescription()</td>
95
			    					<td>$item.getType()</td>
96
			    					<td>$item.getPrice()</td>
97
			    					<td>$item.getFormattedCreateTimestamp()</td>
98
			    				</tr>
99
			    			#end
100
		    			#else
101
		    				<tr>
102
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
103
		    				</tr>
104
		    			#end
105
	    			</tbody>
106
	    		</table>
107
	    	</div>
108
	    </div>
109
    </div>
110
    #if(!$items.isEmpty())
111
    	<div class="row" id="items-paginated">
112
    		<div class="col-lg-9">
113
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
114
    		</div>
115
    		<div class="col-lg-3" style="text-align:right;">
116
				<div class="btn-group" style="width:40%">
117
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
118
				</div>
119
				<div class="btn-group" style="width:40%">
120
					#if($end >= $size)
121
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
122
					#else
123
						<button class="btn btn-primary next" style="width:100%">Next</button>
124
					#end
125
				</div>
126
	    	</div>
127
	    </div>
128
    #end
129
</section>
130
<div id="item-details-container" style="background:white;background-color:white;">
131
</div>
23918 amit.gupta 132
<script type="text/javascript" src="resources/js/create-item.js?v=1"></script>