Rev 35962 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<script>$(document).ready(function () {$('#activeStore').DataTable({"bPaginate": true,"bLengthChange": true,"bFilter": true,"bInfo": false,"bAutoWidth": false});});</script><section class="wrapper"><div class="row"><div class="col-lg-12"><h3 class="page-header"><i class="icon_document_alt"></i>Retailer</h3><ol class="breadcrumb"><li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li><li><i class="icon_document_alt"></i>STORE</li></ol></div></div><div id="active-store-table"><div class="row"><div class="col-lg-12"><table class="table table-bordered" id="activeStore"><thead><tr><th>PartnerId</th><th>Store Name</th><th>Email</th><th>Store Code</th><th>Status</th><th>Investment</th>#if($canChangeCategory)<th>Category</th>#end<th>Action</th></tr></thead><tbody>#if(!$fofoStores.isEmpty())#foreach( $fofoStore in $fofoStores)<tr><td>$fofoStore.getId()</td><td>$customRetailers.get($fofoStore.getId()).getBusinessName()</td><td>$customRetailers.get($fofoStore.getId()).getEmail()</td><td>$fofoStore.getCode()</td>#set($storeStatus = $fofoStore.getStoreStatus().name())<td>#if($storeStatus == "ACTIVE")<span class="label label-success">ACTIVE</span>#elseif($storeStatus == "PAUSED")<span class="label label-warning">PAUSED</span>#elseif($storeStatus == "SUSPENDED")<span class="label label-danger">SUSPENDED</span>#else<span class="label label-default">$storeStatus</span>#end#if($fofoStore.getActiveTimeStamp())<br><small>until $fofoStore.getActiveTimeStamp().toLocalDate()</small>#end</td>#if ($investments.get($fofoStore.getId()))#if($fofoStore.getGraceCount() > 0)<td>Billing expires on $dateFormatter.format($fofoStore.getGraceDate()) (GraceCount - $fofoStore.getGraceCount())</td>#else<td>OK</td>#end#else<td>#if($fofoStore.getGraceCount() > 0)Grace Period expired on $dateFormatter.format($fofoStore.getGraceDate())(Grace Count - $fofoStore.getGraceCount())<br>#end<button class="btn btn-primary extend-billing" data-fofoid="$fofoStore.getId()">Extend for 2 days</button></td>#end#if($canChangeCategory)<td><a class="changePartnerCategory" data-id="$fofoStore.getId()" href="#"> changecategory</a></td>#end<td>#if($storeStatus == "ACTIVE" && $statusPermissions.get("pause"))<button class="btn btn-warning btn-xs store-status-action" data-action="pause" data-page="active"data-fofoid="$fofoStore.getId()" data-storecode="$fofoStore.getCode()">Pause</button>#end#if($statusPermissions.get("change"))#if($storeStatus == "PAUSED")<button class="btn btn-success btn-xs store-status-action" data-action="unpause" data-page="active"data-fofoid="$fofoStore.getId()" data-storecode="$fofoStore.getCode()">Un-pause</button><input type="text" name="temporaryActivationStore" placeholder="days" style="width: 50px;"><button class="btn btn-primary btn-xs activate-store-temporary" data-page="active"data-fofoid="$fofoStore.getId()">Temp Activate</button>#end#if($storeStatus == "ACTIVE" && $fofoStore.getActiveTimeStamp())<button class="btn btn-primary btn-xs activate-store-forever" data-page="active"data-fofoid="$fofoStore.getId()">Activate permanently</button>#end#if($storeStatus == "ACTIVE" || $storeStatus == "PAUSED")<button class="btn btn-danger btn-xs store-status-action" data-action="suspend" data-page="active"data-fofoid="$fofoStore.getId()" data-storecode="$fofoStore.getCode()">Suspend</button>#end#end<a href="#" class="store-status-history" data-fofoid="$fofoStore.getId()"data-storecode="$fofoStore.getCode()">History</a></td></tr>#end#else<tr><td colspan="7" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td></tr>#end</tbody></table></div></div></div></section>