Subversion Repositories SmartDukaan

Rev

Rev 34261 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
34102 aman.kumar 1
<script>
2
 
3
    $(".approve").click(function () {
4
        $("#newAddwalletModal").modal({backdrop: false});
5
    });
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
    });
18
</script>
19
 
20
<style>
21
    .table-striped > tbody > tr:nth-child(odd) > td {
22
        background: white;
23
        background-color: white;
24
    }
25
 
26
    .table-striped > tbody > tr:nth-child(even) > td {
27
        background: white;
28
        background-color: white;
29
    }
30
 
31
    .table-striped > tbody > tr:hover > td,
32
    .table-striped > tbody > tr:hover {
33
        background-color: #e98c8f;
34
        color: white;
35
    }
36
 
37
    .btn:hover {
38
        color: grey;
39
        text-decoration: none;
40
    }
41
 
42
    .btn-primary:hover {
43
        color: grey;
44
        text-decoration: none;
45
    }
46
 
47
    .sale-details {
48
        cursor: pointer;
49
    }
50
</style>
51
<script type="text/javascript">
52
    $(function () {
53
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
54
            partnerId = selectedPartner.partnerId;
55
 
56
            console.log(partnerId);
57
        });
58
    });
59
 
60
    $(function () {
61
        $('input[name="referenceTime"]').daterangepicker(getSingleDatePicker());
62
    });
63
</script>
64
<section class="wrapper">
65
    <div class="row">
66
        <div class="col-lg-12">
67
            <h3 class="page-header"><i class="icon_document_alt"></i>WALLET ADDN-REQUEST/APPROVED/REJECTED</h3>
68
            <ol class="breadcrumb">
69
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
70
                <li><i class="icon_document_alt"></i>Wallet Addn-Request/Approved/Rejected</li>
71
                <li>
72
                    <button class="btn btn-primary newEntry" data-toggle="modal" data-target="#newEntrywalletModal"
73
                            type="button">New
74
                    </button>
75
                </li>
76
            </ol>
77
        </div>
78
    </div>
79
 
80
    <input id="url" name="url" type="hidden" value="$url"/>
81
    <div id="add-wallet-request-table">
82
        <div class="row">
83
            <div class="col-lg-12">
84
                <table class="table table-striped table-advance table-hover">
85
                    <tbody>
86
                    <tr>
87
                        <th>Retailer Id</th>
88
                        <th>Retailer Name</th>
89
                        <th>Email</th>
90
                        <th>City</th>
91
                        <th>State</th>
92
                        <th>Mobile</th>
93
                        <th>Transaction Reference</th>
94
                        <th>Bank Name</th>
95
                        <th>Reference Date</th>
96
                        <th>Amount</th>
97
                        <th>Requested By</th>
98
                        <th>Created On</th>
99
                        <th>Updated On</th>
100
 
101
 
102
                        #if($rStatus == "pending")
103
                            <th colspan=2>Status</th>
104
                        #end
105
                    </tr>
106
                        #if(!$walletRequest.isEmpty())
107
                            #foreach( $wallet in $walletRequest )
108
                            <tr class="add-wallet" data="$wallet.getId()">
109
                                <td>$wallet.getRetailerId()</td>
110
                                <td>$fofoIdsAndRetailerName.get($wallet.getRetailerId()).getBusinessName()</td>
111
                                <td>$fofoIdsAndRetailerName.get($wallet.getRetailerId()).getEmail()</td>
112
                                <td>$fofoIdsAndRetailerName.get($wallet.getRetailerId()).getAddress().city</td>
113
                                <td>$fofoIdsAndRetailerName.get($wallet.getRetailerId()).getAddress().state</td>
114
                                <td>$fofoIdsAndRetailerName.get($wallet.getRetailerId()).getMobileNumber()</td>
115
                                <td>$wallet.getTransaction_reference()</td>
116
                                #if($wallet.getBank_name())
117
                                    <td>$wallet.getBank_name()</td>
118
                                #else
119
                                    <td> null</td>
120
                                #end
121
                                <td>$wallet.getReference_date()</td>
122
 
123
                                <td class="currency">$wallet.getAmount()</td>
124
                                #if(
125
                                    $wallet.getRequestedBy() > 0)
126
                                    <td>$authUsers.get($wallet.getRequestedBy()).getFullName()</td>
127
                                #else
128
                                    <td> Retailer</td>
129
                                #end
130
                                <td>$wallet.getCreateTimestamp().format($dateTimeFormatter)</td>
131
                                <td>$wallet.getUpdateTimestamp().format($dateTimeFormatter)</td>
132
                                #if($wallet.getStatus()=="pending")
133
 
134
                                    <td>
135
                                        <button class="btn btn-primary check" data-requestid="$wallet.getId()"
136
                                                data-amount="$wallet.getAmount()" data-toggle="modal"
137
                                                data-target="#newAddwalletModal" type="button">Approve
138
                                        </button>
139
                                    </td>
140
 
141
                                    <td>
142
                                        <button class="btn btn-primary rejected" data-requestid="$wallet.getId()"
143
                                                type="button">Reject
144
                                        </button>
145
                                    </td>
146
 
147
                                #end
148
                            </tr>
149
                            #end
150
                        #else
151
                        <tr>
152
                            <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
153
                        </tr>
154
                        #end
155
                    </tbody>
156
                </table>
157
            </div>
158
        </div>
159
    </div>
160
 
161
    <div id="newAddwalletModal" class="modal" role="dialog">
162
        <div class="modal-dialog">
163
 
164
            <!-- Modal content-->
165
            <div class="modal-content">
166
                <div class="modal-header">
167
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
168
                    <h4 class="modal-title">Unsettled Payments</h4>
169
                </div>
170
                <div class="modal-body">
171
                    <div id="unsettle-payment-modal">
172
 
173
                    </div>
174
                </div>
175
            </div>
176
        </div>
177
    </div>
178
 
179
 
180
    <div id="newEntrywalletModal" class="modal" role="dialog">
181
        <div class="modal-dialog">
182
 
183
            <!-- Modal content-->
184
            <div class="modal-content">
185
                <div class="modal-header">
186
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
187
                    <h4 class="modal-title">Add money to Wallet</h4>
188
                </div>
189
                <div class="modal-body">
190
                    <div id="add-wallet-amount">
191
                        <div class="row">
192
                            <div class="col-lg-3">
193
                                <div class="input-group">
194
                                    <input placeholder="Partner Name" type="text" class="typeahead form-control"
195
                                           id="typeaheadpartner" name="Item" data-provide="typeahead"
196
                                           autocomplete="off">
197
                                </div>
198
                            </div>
199
 
200
                            <div class="col-lg-3 form-group">
201
                                <input placeholder="Amount" id="amount" name="amount" type="number" value=""
202
                                       class="form-control input-sm">
203
                            </div>
204
 
205
                            <div class="col-lg-3 form-group">
206
                                <input placeholder="Transaction Reference" id="transactionReference"
207
                                       name="transactionReference" type="text" value="" class="form-control input-sm">
208
                            </div>
209
                        </div>
210
                        <div class="row">
211
 
212
                            <div class="col-lg-3 form-group">
213
                                <select id="bankName" name="bankName" class="form-control input-sm">
214
                                    <option value="HDFC Bank Limited">HDFC Bank Limited</option>
215
                                    <option value="Indusind Bank Ltd">Indusind Bank Ltd</option>
216
                                </select>
217
                            </div>
218
 
219
                            <div class="col-lg-3 form-group">
220
                                <input id="referenceTime" name="referenceTime" type="text" value=""
221
                                       class="form-control input-sm">
222
                            </div>
223
                        </div>
224
                    </div>
225
                </div>
226
 
227
                <div class="modal-footer">
228
                    <button type="button" data-dismiss="modal" class="btn btn-default request-cancel">Cancel</button>
229
                    <button type="button" data-dismiss="modal" class="btn btn-default add-money-request">Submit</button>
230
 
231
                </div>
232
            </div>
233
        </div>
234
    </div>
235
 
236
 
237
    #if(!$walletRequest.isEmpty())
238
        <div class="row" id="add-wallet-request-paginated">
239
            <div class="col-lg-9">
240
                <p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span
241
                        class="size">$size</span> items</p>
242
            </div>
243
            <div class="col-lg-3" style="text-align:right;">
244
                <div class="btn-group" style="width:40%">
245
                    <button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
246
                </div>
247
                <div class="btn-group" style="width:40%">
248
                    #if($end >= $size)
249
                        <button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
250
                    #else
251
                        <button class="btn btn-primary next" style="width:100%">Next</button>
252
                    #end
253
                </div>
254
            </div>
255
        </div>
256
    #end
257
</section>
258
<div id="add-wallet-request-container" style="background:white;background-color:white;">
259
</div>
260
This paste expires in <1 hour. Public IP access. Share whatever you see with others in seconds with Context.Terms of ServiceReport this