Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
24089 tejbeer 1
<script>
2
 
3
 $(".approve").click(function(){
4
        $("#newAddwalletModal").modal({backdrop: false});
5
    });
24093 tejbeer 6
 
7
    $(".confirm").click(function(){
8
        $("#newAddwalletModal").modal({backdrop: false});
9
    });
10
 
11
     $(".approved").click(function(){
12
        $("#newAddwalletModal").modal({backdrop: false});
13
    });
14
 
15
      $(".cancel").click(function(){
16
        $("#newAddwalletModal").modal({backdrop: false});
17
    });
24089 tejbeer 18
</script>
19
 
23936 tejbeer 20
<style>
21
	.table-striped > tbody > tr:nth-child(odd) > td{
22
  		background: white;
23
  		background-color: white;
24
	}
25
	.table-striped > tbody > tr:nth-child(even) > td{
26
  		background: white;
27
  		background-color:white;
28
	}
29
	.table-striped > tbody > tr:hover > td,
30
	.table-striped > tbody > tr:hover {
31
		background-color: #e98c8f;
32
	  	color:white;
33
	}
34
	.btn:hover{
35
  		color: grey;
36
  		text-decoration: none;
37
	}
38
	.btn-primary:hover{
39
  		color: grey;
40
  		text-decoration: none;
41
	}
42
	.sale-details{
43
		cursor:pointer;
44
	}
45
</style>
46
<section class="wrapper">
47
	<div class="row">
48
		<div class="col-lg-12">
49
			<h3 class="page-header"><i class="icon_document_alt"></i>SCHEME</h3>
50
			<ol class="breadcrumb">
51
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
52
				<li><i class="icon_document_alt"></i>WALLET REQUEST</li>						  	
53
			</ol>
54
		</div>
55
	</div>
56
 
57
	<input id="url" name="url" type="hidden" value="$url"/>
58
	<div id="add-wallet-request-table">
59
		<div class="row">
60
	    	<div class="col-lg-12">
61
	    		<table class="table table-striped table-advance table-hover">
62
	    			<tbody>
63
	    				<tr>
64
	    					<th>Retailer Id</th>
65
	    					<th>Retailer Name</th>
66
	    					<th>Email</th>
67
	    					<th>City</th>
68
	    					<th>State</th>
23985 tejbeer 69
	    					<th>Mobile</th>
23936 tejbeer 70
	    					<th>Transaction Reference</th>
24089 tejbeer 71
	    					<th>Reference Date</th>
23936 tejbeer 72
	    					<th>Amount</th>
73
	    					<th>Created On</th>
74
	    					<th>Updated On </th>
75
	    					#if($rStatus == "pending")
23985 tejbeer 76
	    					<th colspan = 2>Status</th>
23936 tejbeer 77
	    					#end
78
	    				</tr>
79
	    					#if(!$walletRequest.isEmpty())
80
			    			#foreach( $request in $walletRequest )
81
			    				<tr class="add-wallet" data="$request.getId()">
82
			    					<td>$request.getRetailerId()</td>
83
			    					<td>$fofoIdsAndRetailerName.get($request.getRetailerId()).getBusinessName()</td>
84
			    					<td>$fofoIdsAndRetailerName.get($request.getRetailerId()).getEmail()</td>
85
			    					<td>$fofoIdsAndRetailerName.get($request.getRetailerId()).getAddress().city</td>
86
			    					<td>$fofoIdsAndRetailerName.get($request.getRetailerId()).getAddress().state</td>
23985 tejbeer 87
			    					<td>$fofoIdsAndRetailerName.get($request.getRetailerId()).getMobileNumber()</td>
23936 tejbeer 88
			    					<td>$request.getTransaction_reference()</td>
24089 tejbeer 89
			    					<td>$request.getReference_date()</td>
23936 tejbeer 90
			    					<td>$request.getAmount()</td>
23956 tejbeer 91
			    					<td>$request.getCreateTimestamp().format($dateTimeFormatter)</td>
92
			    					<td>$request.getUpdateTimestamp().format($dateTimeFormatter)</td>
23936 tejbeer 93
			    					#if($request.getStatus()=="pending")
24089 tejbeer 94
 
95
			    					<td><button class="btn btn-primary check"  data-requestid="$request.getId()" data-amount="$request.getAmount()" data-toggle="modal" data-target="#newAddwalletModal"  type="button" style="width:100%;border-radius:0px;">Approve</button>
23936 tejbeer 96
								     </td>
24089 tejbeer 97
 
23985 tejbeer 98
								     <td><button class="btn btn-primary rejected" data-requestid="$request.getId()"  type="button" style="width:100%;border-radius:0px;">Reject</button>
99
								     </td>
23936 tejbeer 100
			    					#end	
101
			    				</tr>	
102
			    	   #end
103
		    			#else
104
		    				<tr>
105
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
106
		    				</tr>
107
		    			#end
108
	    			</tbody>
109
	    		</table>
110
	    	</div>
111
	    </div>
112
    </div>
113
 
24089 tejbeer 114
   <div id="newAddwalletModal" class="modal fade" role="dialog">
115
	  <div class="modal-dialog">
116
 
117
	    <!-- Modal content-->
118
	    <div class="modal-content">
119
	      <div class="modal-header">
120
	        <button type="button" class="close" data-dismiss="modal">&times;</button>
121
	        <h4 class="modal-title">Unsettled Payments</h4>
122
	      </div>
123
	   <div class="modal-body">
124
	   <div id="unsettle-payment-modal">
125
 
126
         </div>
127
      </div>
128
    </div>
129
   </div>
130
 </div>
131
 
23936 tejbeer 132
    #if(!$walletRequest.isEmpty())
133
    	<div class="row" id="add-wallet-request-paginated">
134
    		<div class="col-lg-9">
135
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
136
    		</div>
137
    		<div class="col-lg-3" style="text-align:right;">
138
				<div class="btn-group" style="width:40%">
139
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
140
				</div>
141
				<div class="btn-group" style="width:40%">
142
					#if($end >= $size)
143
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
144
					#else
145
						<button class="btn btn-primary next" style="width:100%">Next</button>
146
					#end
147
				</div>
148
	    	</div>
149
	    </div>
150
    #end
151
</section>
152
<div id="add-wallet-request-container" style="background:white;background-color:white;">
153
</div>