Subversion Repositories SmartDukaan

Rev

Rev 30601 | Rev 33795 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30601 Rev 31147
Line 25... Line 25...
25
        <div class="form-group col-lg-2">
25
        <div class="form-group col-lg-2">
26
            <label for="offerDuration">Duration</label>
26
            <label for="offerDuration">Duration</label>
27
            <input placeholder="Set Duration" name="dateRange" id="offerDuration" name="dateRange"
27
            <input placeholder="Set Duration" name="dateRange" id="offerDuration" name="dateRange"
28
                   type="text" value="" class="form-control input-sm">
28
                   type="text" value="" class="form-control input-sm">
29
        </div>
29
        </div>
-
 
30
   </div>
30
 
31
 
-
 
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>
-
 
41
 
-
 
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>
31
 
54
 
32
        <div class="form-groupcol-lg-2" style="margin-top:20px">
55
        <div class="form-groupcol-lg-2" style="margin-top:20px">
33
 
56
 
34
            <input type="button" class="btn btn-default createoffer"
57
            <input type="button" class="btn btn-default createoffer"
35
                   value="Create">
58
                   value="Create">
36
        </div>
59
        </div>
37
    </div>
60
    </div>
38
 
61
 
39
 
62
 
-
 
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
    
40
    <div class="col-lg-12">
79
    <div class="col-lg-12">
41
        <table class="table table-border table-condensed table-bordered" id="offer-customer-table" style="width:100%">
80
        <table class="table table-border table-condensed table-bordered" id="offer-customer-table" style="width:100%">
42
 
81
 
43
            <thead style="background:#F5F5F5;">
82
            <thead style="background:#F5F5F5;">
44
 
83
 
45
            <tr>
84
            <tr>
46
                <th>Id</th>
85
                <th>Id</th>
47
                <th>Offer Name</th>
86
                <th>Offer Name</th>
48
                <th>Duration</th>
87
                <th>Duration</th>
-
 
88
                <th>Partner Criteria</th>
49
                <th>Download</th>
89
                <th>Download</th>
50
                <th>Upload</th>
90
                <th>Upload</th>
51
 
91
 
52
            </tr>
92
            </tr>
53
            </thead>
93
            </thead>
54
            <tbody>
94
            <tbody>
55
                #foreach($co in $customerOffers )
95
                #foreach($co in $customerOffers )
56
 
96
 
57
                <tr>
97
                <tr data-requestid="$co.getId()">
58
                    #parse("customer-index-offer.vm")
98
                    #parse("customer-index-offer.vm")
59
 
99
 
60
                </tr>
100
                </tr>
61
 
101
 
62
                #end
102
                #end
63
 
103
 
64
            </tbody>
104
            </tbody>
65
 
105
 
66
        </table>
106
        </table>
67
    </div>
107
    </div>
-
 
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>
68
 
118
 
69
</section>
119
</section>
70
 
120
 
71
 
121
 
-
 
122
 
-
 
123
 
72
<script type="text/javascript">
124
<script type="text/javascript">
73
    $(function () {
125
    $(function () {
74
        $('input[name="dateRange"]').daterangepicker(getRangedDatePicker());
126
        $('input[name="dateRange"]').daterangepicker(getRangedDatePicker());
75
        $('input[name="extendEndDate"]').daterangepicker(getSingleDatePicker());
127
        $('input[name="extendEndDate"]').daterangepicker(getSingleDatePicker());
-
 
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)
-
 
144
    });
-
 
145
 
-
 
146
       
76
    });
147
    });
77
 
148
 
78
 
149
 
79
    $(document).ready(function () {
150
    $(document).ready(function () {
80
 
151
 
Line 84... Line 155...
84
            "scrollY": "518px",
155
            "scrollY": "518px",
85
            scrollCollapse: true,
156
            scrollCollapse: true,
86
        });
157
        });
87
 
158
 
88
 
159
 
-
 
160
  
-
 
161
 
89
    });
162
    });
90
 
163
 
91
</script>
164
</script>
92
165