| Line 4... |
Line 4... |
| 4 |
<h3 class="page-header"><i class="icon_document_alt"></i>OFFERS</h3>
|
4 |
<h3 class="page-header"><i class="icon_document_alt"></i>OFFERS</h3>
|
| 5 |
<ol class="breadcrumb">
|
5 |
<ol class="breadcrumb">
|
| 6 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
6 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
| 7 |
<li><i class="icon_document_alt"></i>CREATE</li>
|
7 |
<li><i class="icon_document_alt"></i>CREATE</li>
|
| 8 |
<li><input type="button" value="Create Offer" class="btn btn-primary create-offer"/> </li>
|
8 |
<li><input type="button" value="Create Offer" class="btn btn-primary create-offer"/> </li>
|
| - |
|
9 |
</ol>
|
| 9 |
</div>
|
10 |
</div>
|
| 10 |
</div>
|
11 |
</div>
|
| 11 |
<div class="row" style="background:white;background-color:white;padding:10px;">
|
12 |
<div class="row" style="background:white;background-color:white;padding:10px;">
|
| 12 |
<div id="create-scheme-form">
|
13 |
<div id="create-scheme-form">
|
| 13 |
<div class="col-lg-12">
|
14 |
<div class="col-lg-12">
|
| Line 28... |
Line 29... |
| 28 |
<div class="form-group col-lg-3">
|
29 |
<div class="form-group col-lg-3">
|
| 29 |
<label for="name">Brand Share%</label>
|
30 |
<label for="name">Brand Share%</label>
|
| 30 |
<input class="form-control" id="brandShare" placeholder="" name="name" value="0">
|
31 |
<input class="form-control" id="brandShare" placeholder="" name="name" value="0">
|
| 31 |
</div>
|
32 |
</div>
|
| 32 |
</div>
|
33 |
</div>
|
| 33 |
<div class="col-lg-3">
|
34 |
<div class="col-lg-6">
|
| 34 |
<div class="form-group">
|
35 |
<div class="form-group">
|
| 35 |
<h4>Offer based on</h4>
|
36 |
<div class="col-lg-6">
|
| 36 |
<div>
|
37 |
<h4>Offer based on</h4>
|
| 37 |
<div class="radio-inline"><label><input type="radio" name="schemeType" value="ACTIVATION"
|
38 |
<div class="radio-inline"><label><input type="radio" name="schemeType" value="ACTIVATION"
|
| 38 |
checked>ACTIVATION</label></div>
|
39 |
checked>ACTIVATION</label></div>
|
| 39 |
<div class="radio-inline"><label><input type="radio" name="schemeType" value="SELLIN">SELL
|
40 |
<div class="radio-inline"><label><input type="radio" name="schemeType" value="SELLIN">SELL
|
| 40 |
IN</label></div>
|
41 |
IN</label></div>
|
| 41 |
<div class="radio-inline"><label><input type="radio" name="schemeType" value="SELLOUT">SELL
|
42 |
<div class="radio-inline"><label><input type="radio" name="schemeType" value="SELLOUT">SELL
|
| 42 |
OUT</label></div>
|
43 |
OUT</label></div>
|
| 43 |
</div>
|
44 |
</div>
|
| 44 |
<div class="row col-lg-12 form-group activation-brands">
|
45 |
<div class="col-lg-6 form-group activation-brands">
|
| 45 |
<div><label>Activation Brands</label></div>
|
46 |
<div><label>Activation Brands</label></div>
|
| 46 |
<select data-placeholder="Choose brands" multiple="multiple"
|
47 |
<select data-placeholder="Choose brands" multiple="multiple"
|
| 47 |
class="criteria-brands chosen-select">
|
48 |
class="criteria-brands chosen-select">
|
| 48 |
#foreach($brand in $brands)
|
49 |
#foreach($brand in $brands)
|
| 49 |
<option value="$brand">$brand</option>
|
50 |
<option value="$brand">$brand</option>
|
| 50 |
#end
|
51 |
#end
|
| 51 |
</select>
|
52 |
</select>
|
| 52 |
</div>
|
53 |
</div>
|
| 53 |
</div>
|
54 |
</div>
|
| - |
|
55 |
<div class="col-lg-6">
|
| 54 |
<div class="form-group">
|
56 |
<div class="form-group">
|
| 55 |
<h4>Target Type</h4>
|
57 |
<h4>Target Type</h4>
|
| 56 |
<div>
|
58 |
<div>
|
| 57 |
<div class="radio-inline"><label><input type="radio" name="targetType" value="VALUE"
|
59 |
<div class="radio-inline"><label><input type="radio" name="targetType" value="VALUE"
|
| 58 |
checked/>VALUE</label></div>
|
60 |
checked/>VALUE</label></div>
|
| 59 |
<div class="radio-inline"><label><input type="radio" name="targetType" value="QUANTITY"/>QUANTITY</label>
|
61 |
<div class="radio-inline"><label><input type="radio" name="targetType" value="QUANTITY"/>QUANTITY</label>
|
| 60 |
</div>
|
62 |
</div>
|
| 61 |
</div>
|
63 |
</div>
|
| 62 |
</div>
|
64 |
</div>
|
| 63 |
</div>
|
65 |
</div>
|
| 64 |
<div class="col-lg-3">
|
66 |
<div class="col-lg-6">
|
| 65 |
<div class="form-group">
|
67 |
<div class="form-group">
|
| - |
|
68 |
<h4>Payout Type</h4>
|
| - |
|
69 |
<div>
|
| - |
|
70 |
<div class="radio-inline"><label><input type="radio" name="payoutType" value="VALUE"
|
| 66 |
<label for="name">Offer Notes Semi-Colon(;) seperated</label>
|
71 |
checked/>VALUE</label></div>
|
| 67 |
<textarea class="form-control" id="offer_notes" placeholder="Offer Notes"
|
72 |
<div class="radio-inline"><label><input type="radio" name="payoutType" value="QUANTITY"/>QUANTITY</label>
|
| 68 |
name="note"></textarea>
|
73 |
</div>
|
| - |
|
74 |
</div>
|
| - |
|
75 |
</div>
|
| 69 |
</div>
|
76 |
</div>
|
| 70 |
</div>
|
77 |
</div>
|
| 71 |
<div class="col-lg-3">
|
78 |
<div class="col-lg-3">
|
| - |
|
79 |
<div class="col-lg-12">
|
| 72 |
<div class="form-group">
|
80 |
<div class="form-group">
|
| - |
|
81 |
<label for="name">Offer Notes Semi-Colon(;) seperated</label>
|
| - |
|
82 |
<textarea class="form-control" id="offer_notes" placeholder="Offer Notes"
|
| - |
|
83 |
name="note"></textarea>
|
| - |
|
84 |
</div>
|
| - |
|
85 |
</div>
|
| - |
|
86 |
<div class="col-lg-12">
|
| - |
|
87 |
<div class="form-group">
|
| 73 |
<label for="name">Terms Semi-Colon(;) seperated</label>
|
88 |
<label for="name">Terms Semi-Colon(;) seperated</label>
|
| 74 |
<textarea class="form-control" id="offer_terms" placeholder="Offer Notes"
|
89 |
<textarea class="form-control" id="offer_terms" placeholder="Offer Notes"
|
| 75 |
name="terms"></textarea>
|
90 |
name="terms"></textarea>
|
| 76 |
</div>
|
91 |
</div>
|
| - |
|
92 |
</div>
|
| 77 |
</div>
|
93 |
</div>
|
| 78 |
<div class="col-lg-12">
|
94 |
<div class="col-lg-12">
|
| 79 |
<!--Partner Criteria Start -->
|
95 |
<!--Partner Criteria Start -->
|
| 80 |
<div class="row">
|
96 |
<div class="row">
|
| 81 |
<div class="col-lg-3">
|
97 |
<div class="col-lg-3">
|
| Line 159... |
Line 175... |
| 159 |
<button type="button" class="btn btn-primary slab-remove">Remove</button>
|
175 |
<button type="button" class="btn btn-primary slab-remove">Remove</button>
|
| 160 |
</p>
|
176 |
</p>
|
| 161 |
</div>
|
177 |
</div>
|
| 162 |
<div class="row targetslabscontainer" >
|
178 |
<div class="row targetslabscontainer" >
|
| 163 |
<div class="col-lg-3 targetslabs">
|
179 |
<div class="col-lg-3 targetslabs">
|
| 164 |
<div class="form-group input-group">
|
180 |
<div class="form-group input-group targetContainer">
|
| 165 |
<span class="input-group-addon">Rs.</span>
|
181 |
<span class="input-group-addon">Rs.</span>
|
| 166 |
<input type="text" style="width:100px" class="form-control payoutTarget" value="0"/>
|
182 |
<input type="text" style="width:100px" class="form-control payoutTarget" value="0"/>
|
| 167 |
<span class="input-group-addon">Onward</span>
|
183 |
<span class="input-group-addon">Onward</span>
|
| 168 |
<input type="text" class="form-control targetDescription" placeholder="Description"/>
|
184 |
<input type="text" class="form-control targetDescription" placeholder="Description"/>
|
| 169 |
</div>
|
185 |
</div>
|
| Line 237... |
Line 253... |
| 237 |
search_contains: true
|
253 |
search_contains: true
|
| 238 |
});
|
254 |
});
|
| 239 |
$("select.criteria-brands").chosen({no_results_text: "Oops, nothing found!"});
|
255 |
$("select.criteria-brands").chosen({no_results_text: "Oops, nothing found!"});
|
| 240 |
$("select.criteria-partner-type").chosen({no_results_text: "Oops, nothing found!"});
|
256 |
$("select.criteria-partner-type").chosen({no_results_text: "Oops, nothing found!"});
|
| 241 |
$("select.criteria-warehouseregion").chosen({no_results_text: "Oops, nothing found!"});
|
257 |
$("select.criteria-warehouseregion").chosen({no_results_text: "Oops, nothing found!"});
|
| 242 |
$('input[name=targetType]').one('change', function () {
|
258 |
$('input[name=payoutType]').on('change', function () {
|
| 243 |
changeTargetType.call(this);
|
259 |
changePayoutType.call(this);
|
| 244 |
$('.criteria-catalogids').multiselect({
|
260 |
$('.criteria-catalogids').multiselect({
|
| 245 |
includeSelectAllOption : true,
|
261 |
includeSelectAllOption : true,
|
| 246 |
maxHeight : 400,
|
262 |
maxHeight : 400,
|
| 247 |
buttonWidth : '240px',
|
263 |
buttonWidth : '240px',
|
| 248 |
numberDisplayed : 1,
|
264 |
numberDisplayed : 1,
|
| Line 250... |
Line 266... |
| 250 |
nSelectedText : ' - Items Selected',
|
266 |
nSelectedText : ' - Items Selected',
|
| 251 |
allSelectedText : 'All Items Selected',
|
267 |
allSelectedText : 'All Items Selected',
|
| 252 |
enableFiltering : true,
|
268 |
enableFiltering : true,
|
| 253 |
enableCaseInsensitiveFiltering : true,
|
269 |
enableCaseInsensitiveFiltering : true,
|
| 254 |
});
|
270 |
});
|
| 255 |
targetSlabTemplate = $('div.targetslabs').get(0).outerHTML;
|
271 |
payoutSlabTemplate = $('div.targetslabs').get(0).outerHTML;
|
| 256 |
var brandTemplate = $('div.targetslabs').find("select.criteria-brands").get(0).outerHTML;
|
272 |
var brandTemplate = $('div.targetslabs').find("select.criteria-brands").get(0).outerHTML;
|
| 257 |
$('div.targetslabs').find("select.criteria-brands").chosen({no_results_text: "Oops, nothing found!"});
|
273 |
$('div.targetslabs').find("select.criteria-brands").chosen({no_results_text: "Oops, nothing found!"});
|
| 258 |
$('input[name=targetType]').off('change').on('change', changeTargetType);
|
274 |
$('input[name=payoutType]').off('change').on('change', changePayoutType);
|
| 259 |
//console.log(targetSlabTemplate);
|
275 |
//console.log(payoutSlabTemplate);
|
| 260 |
});
|
276 |
});
|
| - |
|
277 |
$('input[name=targetType]').on('change', changeTargetType);
|
| 261 |
$('input[name=targetType]:checked').change();
|
278 |
$('input[name=payoutType]:checked').change();
|
| 262 |
});
|
279 |
});
|
| 263 |
</script>
|
280 |
</script>
|
| 264 |
|
281 |
|