Subversion Repositories SmartDukaan

Rev

Rev 25704 | Rev 29268 | Go to most recent revision | 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>
                                                <th>PartnerId</th>
                                                <th>Store Name</th>
                                                <th>Email</th>
                                                <th>Store Code</th>
                                                <th>Investment</th>
                                                <th>Category</th>
                                                <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>
                                                                #if ($investments.get($fofoStore.getId()))
                                                                                #if($fofoStore.getGraceCount() > 0)
                                                                                <td>Billing expires on $dateFormatter.format($fofoStore.getGraceDate()) (Grace Count - $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
                                                        <td><a class="changePartnerCategory" data-id="$fofoStore.getId()" href="#"> change category</a></td>
                                                                <td><button class="btn btn-primary deactivate-store"  data-fofoid="$fofoStore.getId()">Deactivate</button></td>
                                                        </tr>
                                                #end
                                        #else
                                                <tr>
                                                        <td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                                </tr>
                                        #end
                                </tbody>
                        </table>
                </div>
            </div>
    </div>
</section>