Subversion Repositories SmartDukaan

Rev

Rev 31944 | Rev 31997 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31944 Rev 31994
Line -... Line 1...
-
 
1
 
-
 
2
<style>
-
 
3
 
-
 
4
 
-
 
5
 #brand-instock tr.hide-table-padding td {
-
 
6
  padding: 0;
-
 
7
}
-
 
8
 
-
 
9
.expand-button {
-
 
10
	position: relative;
-
 
11
}
-
 
12
 
-
 
13
.accordion-toggle .expand-button:after
-
 
14
{
-
 
15
  position: absolute;
-
 
16
  left:.75rem;
-
 
17
  top: 50%;
-
 
18
  transform: translate(0, -50%);
-
 
19
  content: '-';
-
 
20
}
-
 
21
.accordion-toggle.collapsed .expand-button:after
-
 
22
{
-
 
23
  content: '+';
-
 
24
}
-
 
25
 
-
 
26
</style>
-
 
27
 
1
<div class="modal-header">
28
<div class="modal-header">
2
	        <button type="button" class="close" style="margin:-10px" data-dismiss="modal">&times;</button>
29
	        <button type="button" class="close" style="margin:-10px" data-dismiss="modal">&times;</button>
3
	        <h4 class="modal-title"> Aging Models
30
	        <h4 class="modal-title"> Aging Models
4
	        </h4>
31
	        </h4>
5
       </div>
32
       </div>
6
  <div class="modal-body" style="height:400px;overflow:auto;">
33
  <div class="modal-body" style="height:400px;overflow:auto;">
7
       	 <div class="col-lg-12">
34
       	 <div class="col-lg-12">
8
        <table class="table table-striped table-advance table-hover"  id="partnerItemAging" style="width:100%">
35
         <table class="table  table-advance" id="partnerItemAging" >	
9
          <thead>
36
          <thead>
10
 
37
 
11
            <tr style="color:black;">
38
            <tr> 
12
            <th style="vertical-align:middle">Item Id</th>
39
                 <th>#</th>
13
	    					<th style="vertical-align:middle">Description</th>
-
 
14
	    					<th style="vertical-align:middle">Item Type</th>
-
 
15
	    						<th style="vertical-align:middle">Price</th>
-
 
16
	    							<th style="vertical-align:middle">Qty</th>
40
		        <th>Brand</th>
17
	    									
41
				<th>Amount</th>	
18
						
-
 
19
            </tr>
42
            </tr>
20
      </thead>
43
      </thead>
21
      <tbody>
44
      <tbody>
22
      
45
      
23
      
46
      
-
 
47
         #set($index = 0)
-
 
48
	        #foreach($brand in $brands)
-
 
49
			  <tr  class="accordion-toggle collapsed" id="accordion1" data-toggle="collapse" data-parent="#accordion1" href="#brand-$index">	
-
 
50
			         <td class="expand-button"></td>	
-
 
51
		    	         <td>$brand.getBrand()</td>
-
 
52
		    	          <td>brandInventoryItemAging.get($brand.getBrand())</td>
-
 
53
		    	     </tr>	
24
      
54
			      
-
 
55
		    		
25
      #if(!$inventoryItemAgingModels.isEmpty())
56
		    		<tr class="hide-table-padding">
-
 
57
		    		<td></td>
-
 
58
					<td colspan="2">
-
 
59
					<div  class="collapse p-2" id="brand-$index">
-
 
60
					 <table class="table  table-advance" >
-
 
61
	    			<tbody>
-
 
62
	    			  <tr>
-
 
63
				        <th>Id</th>
-
 
64
				        <th>Name</th>
-
 
65
				        <th>Item Type</th>
-
 
66
				        <th>Quantity</th>
-
 
67
						<th>Amount</th>
-
 
68
	                 </tr>	
-
 
69
	                 
26
							#foreach( $inventoryItemAgingModel in $inventoryItemAgingModels )
70
	                 #foreach($inventoryItemAgingModel in $inventoryItemAgingModelMap.get($brand.getBrand())) 
27
								<tr class="item-aging-details">
71
	                       </tr>
28
									<td>$inventoryItemAgingModel.getItemId()</td>
72
			                        <td>$inventoryItemAgingModel.getItemId()</td>
29
									<td>$inventoryItemAgingModel.getBrand() $inventoryItemAgingModel.getModelName() $inventoryItemAgingModel.getModelNumber() $inventoryItemAgingModel.getColor()</td>
73
									<td>$inventoryItemAgingModel.getBrand() $inventoryItemAgingModel.getModelName() $inventoryItemAgingModel.getModelNumber() $inventoryItemAgingModel.getColor()</td>
30
									<td>$inventoryItemAgingModel.getItemType()</td>
74
									<td>$inventoryItemAgingModel.getItemType()</td>
31
									#if(!$inventoryItemAgingModel.getValues().isEmpty())
75
									#if(!$inventoryItemAgingModel.getValues().isEmpty())
32
							
76
							
33
									   #if($inventoryItemAgingModel.getValues().get(1))
77
									   #if($inventoryItemAgingModel.getValues().get(1))
Line 41... Line 85...
41
											<td style="text-align:center;">-</td>
85
											<td style="text-align:center;">-</td>
42
										#end
86
										#end
43
									
87
									
44
									#end
88
									#end
45
									
89
									
46
					
-
 
47
								</tr>
-
 
48
							#end
90
									
49
						#else
-
 
50
							<tr>
-
 
51
								<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
-
 
52
							</tr>
91
							</tr>
-
 
92
		    		  #end
-
 
93
		    		 
-
 
94
		    		   
-
 
95
		    		   </tbody>
-
 
96
	                  </table>
-
 
97
			        </div>
-
 
98
					</td>
-
 
99
					
-
 
100
					
-
 
101
					</tr>
-
 
102
					#set($index=$index+1)
53
						#end
103
					#end
-
 
104
					
54
      
105
      
55
	</tbody>
106
	</tbody>
56
	
107
	
57
	</table>
108
	</table>
58
  
109