Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
27893 tejbeer 1
<style>
2
 
3
 
4
 #brand-instock tr.hide-table-padding td {
5
  padding: 0;
6
}
7
 
8
.expand-button {
9
	position: relative;
10
}
11
 
12
.accordion-toggle .expand-button:after
13
{
14
  position: absolute;
15
  left:.75rem;
16
  top: 50%;
17
  transform: translate(0, -50%);
18
  content: '-';
19
}
20
.accordion-toggle.collapsed .expand-button:after
21
{
22
  content: '+';
23
}
24
 
25
</style>
26
 
27
 
28
 <div class="modal-header">
29
	        <button type="button" class="close" data-dismiss="modal">&times;</button>
30
	        <h4 class="modal-title">Secondary Sale  ($customRetailer.getBusinessName())
31
	        </h4>
32
       </div>
33
  <div class="modal-body" id="brand-secondary-model" style="height:400px;overflow:auto;">
34
    <div class = "row">
35
       <div class="col-lg-12">
36
 
37
	             <table class="table  table-advance" id = "brand-secondary">
38
	    			<tbody>
39
	    			  <tr>
40
	    			    <th>#</th>
41
				        <th>Brand</th>
42
				        <th>Quantity</th>
43
						<th>Amount</th>
44
	                 </tr>	
45
	                 #set($index = 0)
46
 
47
	               #foreach($brand in $secondarySale)
48
 
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>$brand.getQty()</td>
53
		    	          <td class="currency">$brand.getAmount()</td>
54
		    		   </tr>	
55
 
56
 
57
		    		<tr class="hide-table-padding">
58
		    		<td></td>
59
					<td colspan="3">
60
					<div  class="collapse p-3" id="brand-$index">
61
					 <table class="table  table-advance" >
62
	    			<tbody>
63
	    			  <tr>
64
				        <th width="36%">Item</th>
65
				        <th>Quantity</th>
66
						<th>Amount</th>
67
	                 </tr>	
68
 
69
	                 #foreach($brands in $secondaryItemSale.get($brand.getBrand())) 
70
 
71
			            <tr>	
72
			              <td>$brands.getModelNumber() $brands.getColor()</td>
73
		    	          <td>$brands.getQty()</td>
74
		    	          <td class="currency">$brands.getAmount()</td>
75
		    		   </tr>	
76
		    		  #end
77
 
78
 
79
		    		   </tbody>
80
	                  </table>
81
			        </div>
82
					</td>
83
 
84
 
85
					</tr>
86
					#set($index=$index+1)
87
					#end
88
 
89
 
90
		    	    </tbody>
91
	             </table>
92
 
93
	         </div>	
94
	      </div>	
95
	  </div>
96
 
97
  	<div class="modal-footer">
98
      <button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button>
99
	</div>