Subversion Repositories SmartDukaan

Rev

Rev 30601 | Rev 33795 | Go to most recent revision | 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
 
31147 tejbeer 63
 
64
        <div class="form-inline col-lg-4">
65
 
66
                <div class="input-group top_search">
67
                    <input type="text" class="form-control" id="offer-item-search-text" autocomplete="off"
68
                           placeholder="Search Model"
69
                        #if($searchModel > 0)
70
                           value="$modelName"
71
                        #end
72
                    />
73
                    <span class="input-group-btn">
74
                        <button class="btn btn-primary submit" id="offer-item-search-button" type="button">Go!</button>
75
                    </span>
76
                </div>
77
            </div>
78
 
30601 amit.gupta 79
    <div class="col-lg-12">
29707 tejbeer 80
        <table class="table table-border table-condensed table-bordered" id="offer-customer-table" style="width:100%">
81
 
82
            <thead style="background:#F5F5F5;">
83
 
84
            <tr>
30601 amit.gupta 85
                <th>Id</th>
29707 tejbeer 86
                <th>Offer Name</th>
87
                <th>Duration</th>
31147 tejbeer 88
                <th>Partner Criteria</th>
29707 tejbeer 89
                <th>Download</th>
90
                <th>Upload</th>
30601 amit.gupta 91
 
29707 tejbeer 92
            </tr>
93
            </thead>
94
            <tbody>
95
                #foreach($co in $customerOffers )
30601 amit.gupta 96
 
31147 tejbeer 97
                <tr data-requestid="$co.getId()">
30601 amit.gupta 98
                    #parse("customer-index-offer.vm")
29707 tejbeer 99
 
100
                </tr>
30601 amit.gupta 101
 
29707 tejbeer 102
                #end
103
 
104
            </tbody>
105
 
106
        </table>
107
    </div>
31147 tejbeer 108
 
109
 
110
 
111
  <div id="customerOfferItemdetail" class="modal" role="dialog" >
112
	  <div class="modal-dialog" style="width:55%">
113
	    <div class="modal-content">
114
 
115
    </div>
116
   </div>
117
 </div>
30601 amit.gupta 118
 
29707 tejbeer 119
</section>
120
 
121
 
31147 tejbeer 122
 
123
 
30601 amit.gupta 124
<script type="text/javascript">
29707 tejbeer 125
    $(function () {
30601 amit.gupta 126
        $('input[name="dateRange"]').daterangepicker(getRangedDatePicker());
127
        $('input[name="extendEndDate"]').daterangepicker(getSingleDatePicker());
31147 tejbeer 128
 
129
 
130
         $('#partners').chosen({
131
            search_contains: true
132
        });
133
        $("select.criteria-warehouseregion").chosen({no_results_text: "Oops, nothing found!"});
134
 
135
 
136
 
137
    if ($searchModel > 0) {
138
        currentItem = $searchModel;
139
    }
140
 
141
    getEntityAheadOptions($("#offer-item-search-text"), function (selectedItem) {
142
        currentItem = selectedItem.catalogId_i;
143
        console.log(selectedItem)
29707 tejbeer 144
    });
145
 
31147 tejbeer 146
 
147
    });
29707 tejbeer 148
 
31147 tejbeer 149
 
29707 tejbeer 150
    $(document).ready(function () {
30601 amit.gupta 151
 
152
 
153
        var dtable = $('#offer-customer-table').DataTable({
154
            "scrollX": true,
29707 tejbeer 155
            "scrollY": "518px",
156
            scrollCollapse: true,
157
        });
30601 amit.gupta 158
 
159
 
31147 tejbeer 160
 
161
 
29707 tejbeer 162
    });
30601 amit.gupta 163
 
29707 tejbeer 164
</script>