Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
26246 amit.gupta 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
	.add-to-bag{
24
		cursor:pointer;
25
	}
26
	modal-dialog.modal-lg{
27
		left:10%;
28
		right:auto;
29
		width:80%;
30
	}
31
	.modal-content{
32
		background : white;
33
	}
34
	.modelHeaderCustom{
35
		font-size:14px;
36
		font-weight:bold;
37
	}
38
	hr{
39
		background-color:#007aff;
40
		border:none;
41
		height:1px;
42
		background:#007aff;
43
	}
44
</style>
45
<section class="wrapper">
46
	<div class="row">
47
		<div class="col-lg-12">
48
			<h3 class="page-header"><i class="icon_genius"></i>CATALOG</h3>
49
			<ol class="breadcrumb">
50
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
51
				<li><i class="icon_genius"></i>Activated Imeis Not Yet Billed</li>
52
			</ol>
53
		</div>
54
	</div>
55
 
56
     <div id="catalog-table">
57
         <div class="row">
58
    		<div class="col-lg-12">
59
    			<table class="table table-striped table-advance table-hover">
60
    				<tbody>
61
    					<tr>
62
    						<th>Item Code</th>
63
    						<th>Brand</th>
64
    						<th>Model Name</th>
65
    						<th>Model Number</th>
66
    						<th>Color</th>
67
    						<th>IMEI</th>
68
    						<th>Stock Since</th>
69
    						<th>Activated On</th>
70
    					</tr>
71
    					#if(!$inventoryItems.isEmpty())
26249 amit.gupta 72
	    					 #foreach( $invetoryItem in $inventoryItems )
26246 amit.gupta 73
	    					 	<tr data="$inventoryItem.getItemId()" class="add-to-bag" data-toggle="modal" data-target="#bagModel">
74
	    					 		<td>$invetoryItem.getItemId()</td>
75
	    					 		<td>$invetoryItem.getItem().getBrand()</td>
76
	    					 		<td>$invetoryItem.getItem().getModelName()</td>
77
	    					 		<td>$invetoryItem.getItem().getModelNumber()</td>
78
	    					 		<td>$invetoryItem.getItem().getColor()</td>
79
	    					 		<td>$invetoryItem.getSerialNumber()</td>
80
	    					 		<td>$dateTimeFormatter.format($invetoryItem.getCreateTimestamp())</td>
81
	    					 		<td>$dateTimeFormatter.format($invetoryItem.getActivationTimestamp())</td>
82
	    					 	</tr>
83
	    					 #end
84
	    				#else
85
	    					<tr>
26249 amit.gupta 86
	    						<td colspan="8" style="text-align:center;">Great, you have no Activated IMEIs in Stock :)</td>
26246 amit.gupta 87
	    					</tr>
88
	    				#end
89
    				</tbody>
90
    			</table>
91
    		</div>
92
    	</div>
93
	</div>
94
</section>
95
 
96
<div id="bagModel" class="modal fade" role="dialog">
97
  		<div class="modal-dialog modal-md">
98
	       <!-- Modal content-->
99
		    <div class="modal-content">
100
		      <div class="modal-header">
101
		        <button type="button" class="close" data-dismiss="modal">&times;</button>
102
		        <h4 class="modal-title">Add Item To Bag</h4>
103
		      </div>
104
		      <div class="modal-body" style="min-height:200px">
105
		      <div id="catalogModalBody">
106
					<input type="hidden" class="itemId" />
107
					<input type="hidden" class="availability" />
108
					<h4 class="bagModalProductInfo modelHeaderCustom">Product Details : <span></span></h4>
109
					<h4 class="bagModalAvailability modelHeaderCustom">Availability : <span></span></h4>
110
					<h4 class="bagModalEarlyImeis modelHeaderCustom">Imeis to bill: <span></span></h4>
111
					<h4 class="bagModalQuantity modelHeaderCustom">Enter Quantity
112
					<span>
113
						<input type="number" min="1" class="form-control quantity"></input>
114
					</span></h4>
115
				<hr/>
116
				<span>
117
					<button type="submit" id="addToBagButton" class="btn btn-primary">Submit!</button>
118
		       	</span>
119
			  </div>
120
			  </div>
121
		    </div>
122
		</div>
123
 </div>