Rev 37765 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<script>$(document).ready(function() {$('#inactiveStore').DataTable({"bPaginate": true,"bLengthChange": true,"bFilter": true,"bInfo": false,"bAutoWidth": false });} );function closeStore(fofoId, storeCode) {openStoreClosureModal(fofoId, storeCode, function() {inactiveStoreInfo("main-content");});}</script><section class="wrapper"><div class="row"><div class="col-lg-12"><h3 class="page-header"><i class="icon_document_alt"></i>INACTIVE STORE (SUSPENDED / CLOSED)</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>INACTIVE-STORE</li></ol></div></div><div id="inactive-store-table"><div class="row"><div class="col-lg-12"><table class="table table-bordered" id="inactiveStore"><thead><th>PartnerId</th><th>Store Name</th><th>Email</th><th>Store Code</th><th>Status</th><th>Days For Activation</th><th>Action</th></tr></thead><tbody>#if(!$inActiveFofoStores.isEmpty())#foreach( $inactivefofoStore in $inActiveFofoStores)<tr><td>$inactivefofoStore.getId()</td>#if($customRetailers.get($inactivefofoStore.getId()).getBusinessName())<td>$customRetailers.get($inactivefofoStore.getId()).getBusinessName()</td>#else<td>-</td> #end#if($customRetailers.get($inactivefofoStore.getId()).getEmail())<td>$customRetailers.get($inactivefofoStore.getId()).getEmail()</td>#else<td>-</td> #end<td>$inactivefofoStore.getCode()</td>#if($inactivefofoStore.isClosed())<td><span class="label label-default">CLOSED</span></td><td>-</td><td><span class="text-muted">Permanently Closed</span><a href="#" class="store-status-history" data-fofoid="$inactivefofoStore.getId()" data-storecode="$inactivefofoStore.getCode()">History</a></td>#else<td><span class="label label-danger">SUSPENDED</span></td><td>#if($statusPermissions.get("change"))<input type="text" name="temporaryActivationStore" placeholder="days" style="width: 60px;"><button class="btn btn-primary btn-xs activate-store-temporary" data-page="inactive" data-fofoid="$inactivefofoStore.getId()">Temp Activate</button>#else - #end</td><td>#if($statusPermissions.get("change"))<button class="btn btn-primary btn-xs activate-store-forever" data-page="inactive" data-fofoid="$inactivefofoStore.getId()">Activate</button><button class="btn btn-warning btn-xs store-status-action" data-action="pause" data-page="inactive" data-fofoid="$inactivefofoStore.getId()" data-storecode="$inactivefofoStore.getCode()">Pause</button>#end#if($statusPermissions.get("close"))<button class="btn btn-danger btn-xs" onclick="closeStore($inactivefofoStore.getId(), '$inactivefofoStore.getCode()')">Close Store</button>#end<a href="#" class="store-status-history" data-fofoid="$inactivefofoStore.getId()" data-storecode="$inactivefofoStore.getCode()">History</a></td>#end</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>