Subversion Repositories SmartDukaan

Rev

Rev 30122 | Rev 31170 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23343 ashik.ali 1
<section class="wrapper">
27873 amit.gupta 2
    <div class="row">
3
        <div class="col-lg-12">
4
            <ol class="breadcrumb">
5
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
6
                <li><i class="icon_document_alt"></i>MARGINS</li>
7
            </ol>
8
        </div>
9
    </div>
10
    <div class="row">
11
        <div class="col-lg-2 scheme-extendAll">
12
            #if($isAdmin)
30122 amit.gupta 13
                #if($fullAccess)
14
                    <div class="input-group">
15
                        <input placeholder="Extend Date Time" id="extendDatetime" name="extendDatetime"
16
                               type="text"
17
                               value=""
18
                               class="form-control">
19
                        <span class="input-group-btn"> <button class="btn btn-primary submit"
20
                                                               id="extendDatetime-button"
21
                                                               type="button">Extend All</button></span>
22
                    </div>
23
                #end
27873 amit.gupta 24
            #end
25
        </div>
26
        <div class="col-lg-2">
30122 amit.gupta 27
            #if($searchModel > 0)
27873 amit.gupta 28
                <div style="padding:12px">
30122 amit.gupta 29
                    <span> DP - </span><span class="currency">$dp</span>,&nbsp;&nbsp;
30
                    <span> MOP - </span><span class="currency">$mop</span>
27873 amit.gupta 31
                </div>
32
            #end
33
        </div>
30122 amit.gupta 34
        <div class="col-lg-2 form-inline">
35
            <div id="scheme-search" class="form-group">
36
                <div class="input-group top_search">
37
                    <input type="text" class="form-control" id="scheme-search-text"
38
                           placeholder="Search for schemeID..."
39
                        #if($searchScheme > 0)
40
                           value="$searchScheme"
41
                        #end />
42
                    <span class="input-group-btn">
43
			                  <button class="btn btn-primary submit" id="scheme-search-button"
44
                                      type="button">Go!</button>
45
			                </span>
46
                </div>
47
            </div>
48
        </div>
49
        <div class="col-lg-1">
27873 amit.gupta 50
            #if($isAdmin)
51
                <div class="form-group ">
52
                    <select class="form-control input-sm" id="partner-category" name="partner-category"
53
                            placeholder="Category">
30122 amit.gupta 54
                        <option disabled>Category</option>
27873 amit.gupta 55
                        <option value="ALL" selected>ALL</option>
56
                        <option value="NEW">NEW</option>
57
                        <option value="BRONZE">BRONZE</option>
58
                        <option value="SILVER">SILVER</option>
59
                        <option value="GOLD">GOLD</option>
60
                        <option value="DIAMOND">DIAMOND</option>
61
                        <option value="PLATINUM">PLATINUM</option>
62
                    </select>
63
                </div>
64
            #end
65
        </div>
66
        <div class="form-inline col-lg-4">
67
            <div class="form-group">
68
                <div class="input-group">
30122 amit.gupta 69
                    <input type="date" class="form-control schemes-date"
70
                        #if($date)
71
                           value="$date"
72
                        #else
73
 
74
                        #end
75
                    />
27873 amit.gupta 76
                </div>
77
                <div class="input-group top_search">
78
                    <input type="text" class="form-control" id="scheme-item-search-text" autocomplete="off"
30122 amit.gupta 79
                           placeholder="Search Model"
80
                        #if($searchModel > 0)
81
                           value="$modelName"
82
                        #end
83
                    />
27873 amit.gupta 84
                    <span class="input-group-btn">
30122 amit.gupta 85
                        <button class="btn btn-primary submit" id="scheme-item-search-button" type="button">Go!</button>
86
                    </span>
27873 amit.gupta 87
                </div>
88
            </div>
89
        </div>
90
    </div>
91
    <div id="schemes-table">
92
        <div class="row">
30122 amit.gupta 93
            <div class="col-lg-8">
27873 amit.gupta 94
                <table class="table table-striped table-advance table-hover">
95
                    <tbody>
96
                    <tr>
97
                        <th>ID</th>
98
                        <th>Name</th>
99
                        <th>Description</th>
100
                        <th>Type</th>
101
                        <th>Partner Type</th>
102
                        <th>Amount</th>
103
                        <th>Start Date</th>
104
                        <th>End Date</th>
105
                        <th>Created On</th>
106
                        <th>Active</th>
107
                        <th>Expire</th>
108
                    </tr>
109
                        #if($schemes && !$schemes.isEmpty())
110
                            #foreach( $scheme in $schemes )
111
                            <tr class="scheme-details" data="$scheme.getId()">
112
                                <td>$scheme.getId()</td>
113
                                <td>$scheme.getName()</td>
114
                                <td>$scheme.getDescription()</td>
115
                                <td>$scheme.getType()</td>
116
                                <td>$scheme.getPartnerType()</td>
117
                                <td>$scheme.getAmountModel()</td>
118
                                <td>$dateFormatter.format($scheme.getStartDateTime())</td>
119
                                <td>$dateTimeFormatter.format($scheme.getEndDateTime())</td>
120
                                <td>$dateTimeFormatter.format($scheme.getCreateTimestamp())</td>
121
                                #if(($scheme.getActiveTimestamp()) && (!$scheme.getExpireTimestamp()))
122
                                    <td><i class="fa fa-check" aria-hidden="true"></i></td>
123
                                #else
124
                                    <td><i class="fa fa-times" aria-hidden="true"></i></td>
125
                                #end
126
                                #if($scheme.getExpireTimestamp())
127
                                    <td><i class="fa fa-check" aria-hidden="true"></i></td>
128
                                #else
129
                                    <td><i class="fa fa-times" aria-hidden="true"></i></td>
130
                                #end
131
                            </tr>
132
                            #end
133
                        #else
134
                            $noData
135
                        #end
136
                    </tbody>
137
                </table>
138
            </div>
30122 amit.gupta 139
            <div class="col-lg-4" id="scheme-details-container" style="background:white;background-color:white;">
140
            </div>
27873 amit.gupta 141
        </div>
142
    </div>
30122 amit.gupta 143
    #if($searchModel > 0)
27873 amit.gupta 144
        <div class="col-lg-12">
145
            <h5>Note</h5>
146
            <b>Hygiene Payout</b> - This is basis the customer details entered in the system, pls refer to hygiene
147
            meter
148
            in your Dashboard.
149
            <br><b>Tertiary Payout</b> - This is basis the activation of the handset.
150
            <br><b>Investment Payout</b> - Investments in stocks should be above 90% for minimum 12 days in a month
30122 amit.gupta 151
            to earn 2%, between 8-11 days will earn 1%, less then 8 days there will be no payout.
27873 amit.gupta 152
        </div>
153
    #end
22860 ashik.ali 154
</section>
27873 amit.gupta 155
<script type="text/javascript">
156
 
30122 amit.gupta 157
    if ($searchModel > 0) {
158
        currentItem = $searchModel;
159
    }
30601 amit.gupta 160
    $('input[name="extendDatetime"]').daterangepicker(getSingleDatePicker());
27873 amit.gupta 161
 
30122 amit.gupta 162
    getEntityAheadOptions($("#scheme-item-search-text"), function (selectedItem) {
163
        currentItem = selectedItem.catalogId_i;
27873 amit.gupta 164
    });
165
 
166
    $(document).ready(function () {
167
        console.log('$partnerType')
168
        $('#partner-category').val('$partnerType');
169
    });
170
</script>