Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
22551 ashik.ali 1
<style>
2
.grn-product-info{
3
	float:left;
4
}
5
.vertical-center {
6
  display: flex;
7
  align-items: center;
8
}
9
.span-bold{
10
	font-weight:bold;
11
	margin-right:5px;
12
}
13
</style>
14
<section class="wrapper">
15
	<div class="row">
16
		<div class="col-lg-12">
17
			<h3 class="page-header"><i class="fa fa-google-wallet"></i>WALLET</h3>
18
			<ol class="breadcrumb">
19
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
20
				<li><i class="fa fa-google-wallet"></i>WALLET</li>
21
			</ol>
22
		</div>
23
	</div>
24
 
25
 
26
 
27
	<div id="wallet-history-search">
28
    	<div class="row">
29
    		<div class="col-lg-12">
30
    			<div class="col-lg-2">
31
					<h4>Wallet Balance</h4>
32
				</div>
33
				<div class="col-lg-1">
34
					#if($userWallet)
35
						<h4>$userWallet.getAmount()</h4>	
36
					#else
37
						<h4>NA</h4>
38
					#end
39
				</div>
40
         	</div>
41
       	</div>
42
   	</div>
43
  	<div id="wallet-history-table">
44
		<div class="row">
45
	    	<div class="col-lg-12">
46
	    		<table class="table table-striped table-advance table-hover">
47
	    			<tbody>
48
	    				<tr>
49
	    					<th>Id</th>
50
	    					<th>Reference</th>
51
	    					<th>Reference Type</th>
52
	    					<th>+ / -</th>
53
	    					<th>Amount</th>
54
	    					<th>Date</th>
55
	    					<th>Description</th>
56
	    				</tr>
57
	    				#if(!$walletHistories.isEmpty())
58
			    			#foreach( $walletHistory in $walletHistories )
59
			    				<tr class="wallet-details" data="$walletHistory.getId()">
60
			    					<td>$walletHistory.getId()</td>
61
			    					<td>$walletHistory.getReference()</td>
62
			    					<td>$walletHistory.getReferenceType()</td>
63
			    					#if($walletHistory.getAmount() >= 0)
64
			    						<td>+</td>
65
			    						<td>$walletHistory.getAmount()</td>
66
			    					#else
67
			    						<td>-</td>
68
			    						#set($amount = 0-$walletHistory.getAmount())
69
			    						<td>$amount</td>
70
			    					#end
71
			    					<td>$walletHistory.getFormattedDate()</td>
72
			    					#if($walletHistory.getDescription())
73
			    						<td>$walletHistory.getDescription()</td>
74
			    					#else
75
			    						<td></td>
76
			    					#end
77
			    				</tr>
78
			    			#end
79
		    			#else
80
		    				<tr>
81
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
82
		    				</tr>
83
		    			#end
84
	    			</tbody>
85
	    		</table>
86
	    	</div>
87
	    </div>
88
    </div>
89
    #if(!$walletHistories.isEmpty())
90
    	<div class="row" id="wallet-history-paginated">
91
    		<div class="col-lg-9">
92
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
93
    		</div>
94
    		<div class="col-lg-3" style="text-align:right;">
95
				<div class="btn-group" style="width:40%">
96
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
97
				</div>
98
				<div class="btn-group" style="width:40%">
99
					#if($end >= $size)
100
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
101
					#else
102
						<button class="btn btn-primary next" style="width:100%">Next</button>
103
					#end
104
				</div>
105
	    	</div>
106
	    </div>
107
    #end
108
 
109
 
110
</section>
111
<div id="wallet-history-details-container" style="background:white;background-color:white;">
112
</div>