Subversion Repositories SmartDukaan

Rev

Rev 32207 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
29268 manish 1
<script>
32207 amit.gupta 2
    $(document).ready(function () {
3
        $('#activeStore').DataTable(
4
                {
5
                    "bPaginate": true,
6
                    "bLengthChange": true,
7
                    "bFilter": true,
8
                    "bInfo": false,
9
                    "bAutoWidth": false
10
                }
11
        );
12
 
13
    });
29268 manish 14
</script>
32207 amit.gupta 15
<section class="wrapper">
16
    <div class="row">
17
        <div class="col-lg-12">
18
            <h3 class="page-header"><i class="icon_document_alt"></i>Retailer</h3>
19
            <ol class="breadcrumb">
20
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
21
                <li><i class="icon_document_alt"></i>STORE</li>
22
            </ol>
23
        </div>
29268 manish 24
    </div>
32207 amit.gupta 25
    <div id="active-store-table">
26
        <div class="row">
27
            <div class="col-lg-12">
28
 
29
                <table class="table table-bordered" id="activeStore">
30
                    <thead>
31
                    <tr>
32
                        <th>PartnerId</th>
33
                        <th>Store Name</th>
34
                        <th>Email</th>
35
                        <th>Store Code</th>
36
                        <th>Investment</th>
37
                        #if($canChangeCategory)
38
                            <th>Category</th>
39
                        #end
40
                        <th>Action</th>
41
                    </tr>
42
                    </thead>
43
                    <tbody>
44
                        #if(!$fofoStores.isEmpty())
45
                            #foreach( $fofoStore in $fofoStores)
46
                            <tr>
47
                                <td>$fofoStore.getId()</td>
48
                                <td>$customRetailers.get($fofoStore.getId()).getBusinessName()</td>
49
                                <td>$customRetailers.get($fofoStore.getId()).getEmail()</td>
50
                                <td>$fofoStore.getCode()</td>
51
                                #if ($investments.get($fofoStore.getId()))
52
                                    #if($fofoStore.getGraceCount() > 0)
53
                                        <td>Billing expires on $dateFormatter.format($fofoStore.getGraceDate()) (Grace
54
                                            Count - $fofoStore.getGraceCount())
55
                                        </td>
56
                                    #else
57
                                        <td>OK</td>
58
                                    #end
59
                                #else
60
                                    <td>
61
                                        #if($fofoStore.getGraceCount() > 0)
62
                                            Grace Period expired on $dateFormatter.format($fofoStore.getGraceDate())
63
                                            (Grace Count - $fofoStore.getGraceCount())<br>
64
                                        #end
65
                                        <button class="btn btn-primary extend-billing" data-fofoid="$fofoStore.getId()">
66
                                            Extend for 2 days
67
                                        </button>
68
                                    </td>
69
 
70
                                #end
71
                                #if($canChangeCategory)
72
                                    <td>
73
                                        <a class="changePartnerCategory" data-id="$fofoStore.getId()" href="#"> change
74
                                            category</a>
75
                                    </td>
76
                                #end
77
                                <td>
35962 amit 78
                                    <button class="btn btn-primary deactivate-store" data-fofoid="$fofoStore.getId()" data-storecode="$fofoStore.getCode()">
32207 amit.gupta 79
                                        Deactivate
80
                                    </button>
81
                                </td>
82
                            </tr>
83
                            #end
84
                        #else
85
                        <tr>
86
                            <td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
87
                        </tr>
88
                        #end
89
                    </tbody>
90
                </table>
91
            </div>
92
        </div>
93
    </div>
29268 manish 94
</section>