Subversion Repositories SmartDukaan

Rev

Rev 35971 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35971 Rev 36242
Line 104... Line 104...
104
                        <th>Reference Date</th>
104
                        <th>Reference Date</th>
105
                        <th>Amount</th>
105
                        <th>Amount</th>
106
                        <th>Requested By</th>
106
                        <th>Requested By</th>
107
                        <th>Created On</th>
107
                        <th>Created On</th>
108
                        <th>Updated On</th>
108
                        <th>Updated On</th>
109
 
-
 
-
 
109
                        <th>Doc</th>
110
 
110
 
111
                        #if($rStatus == "pending")
111
                        #if($rStatus == "pending")
112
                            <th colspan=2>Status</th>
112
                            <th colspan=2>Status</th>
113
                        #end
113
                        #end
114
                    </tr>
114
                    </tr>
Line 142... Line 142...
142
                                #else
142
                                #else
143
                                    <td> Retailer</td>
143
                                    <td> Retailer</td>
144
                                #end
144
                                #end
145
                                <td>$wallet.getCreateTimestamp().format($dateTimeFormatter)</td>
145
                                <td>$wallet.getCreateTimestamp().format($dateTimeFormatter)</td>
146
                                <td>$wallet.getUpdateTimestamp().format($dateTimeFormatter)</td>
146
                                <td>$wallet.getUpdateTimestamp().format($dateTimeFormatter)</td>
-
 
147
                                <td>
-
 
148
                                    #if($wallet.getFspId() > 0 && $fspAttachmentMap && $fspAttachmentMap.containsKey($wallet.getId()))
-
 
149
                                        <button type="button" class="btn btn-info btn-xs wallet-doc-view-btn"
-
 
150
                                                data-doc-url="${rc.contextPath}/document/$fspAttachmentMap.get($wallet.getId())">
-
 
151
                                            <i class="fa fa-eye"></i>
-
 
152
                                        </button>
-
 
153
                                    #end
-
 
154
                                </td>
147
                                #if($wallet.getStatus()=="pending")
155
                                #if($wallet.getStatus()=="pending")
148
 
156
 
149
                                    <td>
157
                                    <td>
150
                                        <button class="btn btn-primary check" data-requestid="$wallet.getId()"
158
                                        <button class="btn btn-primary check" data-requestid="$wallet.getId()"
151
                                                data-amount="$wallet.getAmount()" data-toggle="modal"
159
                                                data-amount="$wallet.getAmount()" data-toggle="modal"
Line 267... Line 275...
267
                    #end
275
                    #end
268
                </div>
276
                </div>
269
            </div>
277
            </div>
270
        </div>
278
        </div>
271
    #end
279
    #end
-
 
280
 
-
 
281
    <!-- Document View Modal -->
-
 
282
    <div class="modal fade" id="walletDocViewModal" role="dialog">
-
 
283
        <div class="modal-dialog modal-lg">
-
 
284
            <div class="modal-content">
-
 
285
                <div class="modal-header">
-
 
286
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
-
 
287
                    <h4 class="modal-title">Payment Proof</h4>
-
 
288
                </div>
-
 
289
                <div class="modal-body" style="text-align:center;">
-
 
290
                    <img id="wallet-doc-preview" src="" style="max-width:100%; max-height:500px;">
-
 
291
                </div>
-
 
292
                <div class="modal-footer">
-
 
293
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
-
 
294
                </div>
-
 
295
            </div>
-
 
296
        </div>
-
 
297
    </div>
-
 
298
    <script type="text/javascript">
-
 
299
        $(document).on('click', '.wallet-doc-view-btn', function () {
-
 
300
            var docUrl = $(this).data('doc-url');
-
 
301
            $('#wallet-doc-preview').attr('src', docUrl);
-
 
302
            $('#walletDocViewModal').modal('show');
-
 
303
        });
-
 
304
    </script>
272
</section>
305
</section>
273
<div id="add-wallet-request-container" style="background:white;background-color:white;">
306
<div id="add-wallet-request-container" style="background:white;background-color:white;">
274
</div>
307
</div>