Subversion Repositories SmartDukaan

Rev

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

Rev 29580 Rev 29677
Line 944... Line 944...
944
                        </div>
944
                        </div>
945
                    </div>
945
                    </div>
946
 
946
 
947
 
947
 
948
                </div>
948
                </div>
949
 
949
		
950
                <div class="col-lg-6">
950
                <div class="col-lg-6">
951
                    #foreach( $offer in $publishedOffers )
951
                	<div class="row">
952
                        <div class="row col-lg-12 info-box white-bg" style="margin-bottom:1px">
952
                		    <div class="form-group">
953
                            <h3 style="margin-top:-2px;color:#c70db8;margin-bottom:4px;font-weight:bold">
953
						      <label class="control-label col-lg-4" for="months">Select Offers for Month</label>
954
                                $offer.getName()
-
 
955
                            </h3>
954
						      <div class="col-lg-6">
956
                            <h4 style="margin-top:-2px;font-size:15px;color:#5547d0;font-weight:bold">
955
						        <select class="form-control input-sm" id = "offer-months"  name="months" placeholder="months" style="margin:auto;">
957
                            	From $dateMonthFormatter.format($offer.getStartDate()) to $dateMonthFormatter.format($offer.getEndDate()), Based on $offer.getSchemeType()
956
								    <option value="" disabled selected>month</option>
958
                            	#if($offer.getActivationBrands())
957
									#foreach($mVM in $monthValueMap.entrySet())
959
                            		 on $offer.getActivationBrands() 
958
										#if($mVM.getKey()== $month )
960
                            	#end
959
					             		<option value="$mVM.getKey()" selected>$mVM.getValue()</option>
961
                            </h4>
960
					             		#else
962
                            <h4 style="color:green;margin-top:0px;margin-bottom:0px;">
961
					             		<option value="$mVM.getKey()">$mVM.getValue()</option>
963
                            	$offer.getDashboardHtml()
962
					             		#end
964
                            </h4>
963
				             		#end
965
                            <p style="float:right;font-size:15px; margin:0px 0px 0px; " class="description-offer"
964
						        </select> 
-
 
965
						      </div>
-
 
966
						    </div>
-
 
967
					</div>
966
                               data-offerid="$offer.getId()" data-toggle="modal"
968
					<div id="offer-container">
967
                               data-backdrop="static" data-keyboard="false"><a href="javascript:void(0)">All terms & conditions</a></p>
-
 
968
                        </div>
969
                    	#parse("published-offers.vm")
969
                    #end
970
					</div>                   
970
                    <div class="offer-margin-container">
971
                    <div class="offer-margin-container">
971
                        <div class="modal  text-center" id="offerDescription">
972
                        <div class="modal  text-center" id="offerDescription">
972
                            <div class="modal-dialog modal-lg modal-dialog-scrollable">
973
                            <div class="modal-dialog modal-lg modal-dialog-scrollable">
973
                                <div class="modal-content">
974
                                <div class="modal-content">
974
                                </div>
975
                                </div>
Line 1220... Line 1221...
1220
                   console.log(response);
1221
                   console.log(response);
1221
                  $("#performanceContainer").html(response);
1222
                  $("#performanceContainer").html(response);
1222
        
1223
        
1223
        });
1224
        });
1224
              	});
1225
              	});
-
 
1226
 
-
 
1227
       
-
 
1228
       $(document).on('change', "#offer-months", function() {
-
 
1229
       	var month = 	$(this).val();
-
 
1230
       	doGetAjaxRequestHandler(context + "/published-offers/" + month ,function (response) {
-
 
1231
       		console.log(response);
-
 
1232
       		$("#offer-container").html(response);
-
 
1233
       	});
-
 
1234
              	});
1225
        
1235
        
1226
 
1236
 
1227
    </script>
1237
    </script>
1228
    <script>
1238
    <script>
1229
 
1239