Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
29707 tejbeer 1
<section class="wrapper">
30601 amit.gupta 2
    <div class="row">
3
        <div class="col-lg-12">
4
            <h3 class="page-header">
5
                <i class="icon_document_alt"></i>Customer Offer
6
            </h3>
7
            <ol class="breadcrumb">
8
                <li><i class="fa fa-home"></i><a
9
                        href="${rc.contextPath}/dashboard">Home</a></li>
10
                <li><i class="icon_document_alt"></i>Customer Offer</li>
11
            </ol>
12
        </div>
13
    </div>
29707 tejbeer 14
 
30601 amit.gupta 15
 
16
    <div class="row">
17
 
18
        <div class="form-group col-lg-3">
19
            <label for="offerName">Offer Name</label>
20
            <input id="offername" placeholder="Offer Name" type="text"
21
                   class="form-control input-sm"/>
22
        </div>
23
 
24
 
25
        <div class="form-group col-lg-2">
26
            <label for="offerDuration">Duration</label>
27
            <input placeholder="Set Duration" name="dateRange" id="offerDuration" name="dateRange"
28
                   type="text" value="" class="form-control input-sm">
29
        </div>
31147 tejbeer 30
   </div>
30601 amit.gupta 31
 
31147 tejbeer 32
    <div class="row">
33
        <div class="form-group col-lg-3">
34
            <label>Warehouse Regions</label>
35
            <select multiple class="criteria-warehouseregion chosen-select">
36
                #foreach ($whRegionEntry in $warehouseRegion.entrySet())
37
                <option value="$whRegionEntry.getKey()">$whRegionEntry.getValue()</option>
38
                #end
39
            </select>
40
        </div>
30601 amit.gupta 41
 
31147 tejbeer 42
    <div class="form-group col-lg-6 partner">
43
        <label>Choose Partners</label>
44
        <label class="checkbox-inline">
45
            <input type="checkbox" class="excludeFofoId" value=""><b>Exclude</b>
46
        </label>
47
        <select multiple="multiple" name="partner" id="partners"
48
                data-placeholder="Choose Franchisee" class="chosen-select">
49
            #foreach ($customRetailer in $customRetailersMap.entrySet())
50
                <option value="$customRetailer.getKey()">$customRetailer.getValue().getDisplayName()</option>
51
            #end
52
        </select>
53
    </div>
54
 
30601 amit.gupta 55
        <div class="form-groupcol-lg-2" style="margin-top:20px">
56
 
57
            <input type="button" class="btn btn-default createoffer"
58
                   value="Create">
59
        </div>
60
    </div>
61
 
62
 
33795 ranu 63
    <div class="col-lg-12">
64
        <table>
65
            <tr>
66
                <td style="padding: 5px 10px;">
67
                    <div class="form-inline">
68
                        <div class="input-group top_search">
69
                            <input type="text" class="form-control" id="offer-item-search-text" autocomplete="off"
70
                                   placeholder="Search Model"
71
                                #if($searchModel > 0)
72
                                   value="$modelName"
73
                                #end
74
                            />
75
                            <span class="input-group-btn">
31147 tejbeer 76
                        <button class="btn btn-primary submit" id="offer-item-search-button" type="button">Go!</button>
77
                    </span>
33795 ranu 78
                        </div>
79
                    </div>
80
                </td>
81
                <td style="padding: 5px 10px;"><input placeholder="Set Duration" name="customerOfferByDateRange"
82
                                                      id="customerOfferByDateRange"
83
                                                      type="text" value="" class="form-control input-sm"></td>
84
                <td style="padding: 5px 10px;"><input class="btn btn-primary customer-offer-daterange"
85
                                                      type="button"
86
                                                      value="Submit"></td>
87
            </tr>
88
        </table>
29707 tejbeer 89
        <table class="table table-border table-condensed table-bordered" id="offer-customer-table" style="width:100%">
90
 
91
            <thead style="background:#F5F5F5;">
92
 
93
            <tr>
30601 amit.gupta 94
                <th>Id</th>
29707 tejbeer 95
                <th>Offer Name</th>
96
                <th>Duration</th>
31147 tejbeer 97
                <th>Partner Criteria</th>
29707 tejbeer 98
                <th>Download</th>
99
                <th>Upload</th>
30601 amit.gupta 100
 
29707 tejbeer 101
            </tr>
102
            </thead>
103
            <tbody>
104
                #foreach($co in $customerOffers )
30601 amit.gupta 105
 
31147 tejbeer 106
                <tr data-requestid="$co.getId()">
30601 amit.gupta 107
                    #parse("customer-index-offer.vm")
29707 tejbeer 108
 
109
                </tr>
30601 amit.gupta 110
 
29707 tejbeer 111
                #end
112
 
113
            </tbody>
114
 
115
        </table>
116
    </div>
31147 tejbeer 117
 
118
 
119
 
120
  <div id="customerOfferItemdetail" class="modal" role="dialog" >
34516 ranu 121
      <div class="modal-dialog" style="width:65%">
31147 tejbeer 122
	    <div class="modal-content">
123
 
124
    </div>
125
   </div>
126
 </div>
30601 amit.gupta 127
 
29707 tejbeer 128
</section>
129
 
130
 
31147 tejbeer 131
 
132
 
30601 amit.gupta 133
<script type="text/javascript">
29707 tejbeer 134
    $(function () {
30601 amit.gupta 135
        $('input[name="dateRange"]').daterangepicker(getRangedDatePicker());
136
        $('input[name="extendEndDate"]').daterangepicker(getSingleDatePicker());
31147 tejbeer 137
 
138
 
139
         $('#partners').chosen({
140
            search_contains: true
141
        });
142
        $("select.criteria-warehouseregion").chosen({no_results_text: "Oops, nothing found!"});
143
 
144
 
145
 
146
    if ($searchModel > 0) {
147
        currentItem = $searchModel;
148
    }
149
 
150
    getEntityAheadOptions($("#offer-item-search-text"), function (selectedItem) {
151
        currentItem = selectedItem.catalogId_i;
152
        console.log(selectedItem)
29707 tejbeer 153
    });
154
 
31147 tejbeer 155
 
156
    });
29707 tejbeer 157
 
31147 tejbeer 158
 
29707 tejbeer 159
    $(document).ready(function () {
30601 amit.gupta 160
 
161
 
162
        var dtable = $('#offer-customer-table').DataTable({
163
            "scrollX": true,
29707 tejbeer 164
            "scrollY": "518px",
165
            scrollCollapse: true,
166
        });
30601 amit.gupta 167
 
168
 
31147 tejbeer 169
 
170
 
29707 tejbeer 171
    });
30601 amit.gupta 172
 
33795 ranu 173
</script>
174
 
175
<script type="text/javascript">
176
    $('input[name="customerOfferByDateRange"]').daterangepicker(getStatementRanges());
29707 tejbeer 177
</script>