Subversion Repositories SmartDukaan

Rev

Rev 23173 | Go to most recent revision | Details | 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 class="col-lg-9 form-group pull-right">
41
    				<div class="col-md-6 col-sm-6 col-xs-6 form-group pull-right top_search">
42
    					<div class="input-group">
43
                			<div id="reportrange" class="pull-right" style="width:80%;margin:auto;background: #fff; cursor: pointer; padding: 8px; border: 1px solid #ccc">
44
                        		<i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
45
                        		<span></span>
46
                			</div>
47
                			<span class="input-group-btn">
48
                      			<button class="btn btn-primary submit" id="wallet-history-date-button" type="button">Go!</button>
49
                    		</span>
50
                    	</div>
51
                	</div>
52
                	<div class="col-md-5 col-sm-5 col-xs-5 form-group pull-right top_search">
53
                  		<div class="input-group">
54
                    		<input type="text" class="form-control" id="wallet-history-search-text"" placeholder="Search by invoice number..." value="" />
55
                    		<span class="input-group-btn">
56
                      			<button class="btn btn-primary submit" id="wallet-history-search-button" type="button">Go!</button>
57
                    		</span>
58
                  		</div>
59
                	</div>
60
              	</div>
61
         	</div>
62
       	</div>
63
   	</div>
64
  	<div id="wallet-history-table">
65
		<div class="row">
66
	    	<div class="col-lg-12">
67
	    		<table class="table table-striped table-advance table-hover">
68
	    			<tbody>
69
	    				<tr>
70
	    					<th>Id</th>
71
	    					<th>Reference</th>
72
	    					<th>Reference Type</th>
73
	    					<th>+ / -</th>
74
	    					<th>Amount</th>
75
	    					<th>Date</th>
76
	    					<th>Description</th>
77
	    				</tr>
78
	    				#if(!$walletHistories.isEmpty())
79
			    			#foreach( $walletHistory in $walletHistories )
80
			    				<tr class="wallet-details" data="$walletHistory.getId()">
81
			    					<td>$walletHistory.getId()</td>
82
			    					<td>$walletHistory.getReference()</td>
83
			    					<td>$walletHistory.getReferenceType()</td>
84
			    					#if($walletHistory.getAmount() >= 0)
85
			    						<td>+</td>
86
			    						<td>$walletHistory.getAmount()</td>
87
			    					#else
88
			    						<td>-</td>
89
			    						#set($amount = 0-$walletHistory.getAmount())
90
			    						<td>$amount</td>
91
			    					#end
92
			    					<td>$walletHistory.getFormattedDate()</td>
93
			    					#if($walletHistory.getDescription())
94
			    						<td>$walletHistory.getDescription()</td>
95
			    					#else
96
			    						<td></td>
97
			    					#end
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(!$walletHistories.isEmpty())
111
    	<div class="row" id="wallet-history-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
 
130
 
131
</section>
132
<div id="wallet-history-details-container" style="background:white;background-color:white;">
133
</div>