Subversion Repositories SmartDukaan

Rev

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

Rev 26585 Rev 26588
Line 326... Line 326...
326
			                     <li><a class="unsettled-payments" href="javascript:void(0);">Unsettled Payments</a></li>
326
			                     <li><a class="unsettled-payments" href="javascript:void(0);">Unsettled Payments</a></li>
327
			                     <li><a class="add-wallet-request" href="javascript:void(0);">Add to Wallet Request</a></li>
327
			                     <li><a class="add-wallet-request" href="javascript:void(0);">Add to Wallet Request</a></li>
328
			                     <li><a class="add-wallet-approve" href="javascript:void(0);">Approved Request</a></li>
328
			                     <li><a class="add-wallet-approve" href="javascript:void(0);">Approved Request</a></li>
329
			                    <li><a class="add-wallet-rejected" href="javascript:void(0);">Rejected Request</a></li>
329
			                    <li><a class="add-wallet-rejected" href="javascript:void(0);">Rejected Request</a></li>
330
			                    <li><a class="wallet-edit" href="javascript:void(0);">Wallet Edit</a></li>
330
			                    <li><a class="wallet-edit" href="javascript:void(0);">Wallet Edit</a></li>
-
 
331
			                    <li><a class="scheme_offer" href="javascript:void(0);">Offers</a></li>
331
			                   
332
			                   
332
		               	  </ul>
333
		               	  </ul>
333
		             </li>
334
		             </li>
334
		             <li class="sub-menu">
335
		             <li class="sub-menu">
335
			              <a href="javascript:;" class="">
336
			              <a href="javascript:;" class="">
Line 816... Line 817...
816
				#if($activatedImeis > 0)
817
				#if($activatedImeis > 0)
817
					<div class="row col-lg-12 info-box white-bg">
818
					<div class="row col-lg-12 info-box white-bg">
818
						#parse("dashboard-activated-imeis.vm")
819
						#parse("dashboard-activated-imeis.vm")
819
					</div>
820
					</div>
820
				#end
821
				#end
821
				#if($valentineSale)
822
				#if($sales)
-
 
823
				#if(!$offers.isEmpty())
-
 
824
				#foreach( $offer in $offers )
822
					<div class="row col-lg-12 info-box white-bg">
825
					<div class="row col-lg-12 info-box white-bg">
823
						<h3 style="margin-top:-2px;">
826
						<h3 style="margin-top:-2px;">
824
							Smartdukaan Holi  Special Dhamaka Scheme - 6th to 10th Mar'20
827
							$offer.getName() - $offer.getStartDate().format($dateTimeFormatter) to $offer.getEndDate().format($dateTimeFormatter)
825
						</h3>
828
						</h3>
-
 
829
						    #if($offer.getShortAmount() == 0 && $offer.getAmountType() == "amount" )
-
 
830
						     <h4> Congratulations you have earn Rs. <span class="currency">$offer.getMargin()</span>. Happy Selling!</h4>
-
 
831
						      #elseif($offer.getShortAmount() == 0 && $offer.getAmountType() == "percentage" )
-
 
832
						     <h4> Congratulations you have secured $offer.getMargin()%. Happy Selling!</h4>
-
 
833
							#elseif($offer.getAmountType() == "amount" && $offer.getTargetType()=="value" && $offer.getShortAmount() != 0)
826
						<h4>
834
							<h4>
-
 
835
						    Sell stock worth <span class="currency">$offer.getShortAmount()</span> to earn additional Rs. <span class="currency">$offer.getMargin()</span>
827
						#if($valentineSale == 'ONE_LAC')
836
						    </h4>
-
 
837
						    #elseif($offer.getAmountType() == "amount" && $offer.getTargetType()=="quantity" && $offer.getShortAmount() != 0)
-
 
838
							<h4>
828
						Sell stock worth <span class="currency">${valentineShort}</span> to earn additional 1%
839
						    Sell stock worth <span class="currency">$offer.getShortAmount()</span> pieces to earn additional Rs. <span class="currency">$offer.getMargin()</span>
829
						#elseif($valentineSale == 'TWO_LAC')
840
						    </h4>
-
 
841
						    #elseif($offer.getAmountType() == "percentage" && $offer.getTargetType()=="quantity" && $offer.getShortAmount() != 0)
-
 
842
							<h4>
830
						Congratulations you have secured 1%, Sell stock worth <span class="currency">${valentineShort}</span> to earn additional 1%
843
							Sell stock worth <span class="currency">$offer.getShortAmount()</span> pieces to earn additional $offer.getMargin()%
-
 
844
					
-
 
845
							</h4>
831
						#elseif($valentineSale == 'FOUR_LAC')
846
							 #elseif($offer.getAmountType() == "percentage" && $offer.getTargetType()=="value" && $offer.getShortAmount() != 0)
-
 
847
							<h4>
832
						Congratulations you have secured 2%, Sell stock worth <span class="currency">${valentineShort}</span> to earn additional 1%
848
							Sell stock worth <span class="currency">$offer.getShortAmount()</span>  to earn additional $offer.getMargin()%
-
 
849
					
-
 
850
							</h4>
-
 
851
							
833
						#elseif($valentineSale == 'CONGO')
852
						   #end
834
						Congratulations you have secured 3%, Happy Selling!
853
						      
835
						#end
854
                           <p style="float:right;font-size:15px;" id="description-offer" data-description = "$offer.getDescription()" data-toggle="modal" data-target="#offerDescription"  data-backdrop="static" data-keyboard="false"><a href="#">All terms & conditions</a></p>
836
						</h4>
855
						   
837
					</div>
856
					</div>
-
 
857
					#end
-
 
858
				#end
838
				#end
859
				#end
-
 
860
				    <div  class="modal  text-center" id="offerDescription">
-
 
861
					<div class="modal-dialog">
-
 
862
				    <div class="modal-content" >
-
 
863
				     <div class="modal-header">
-
 
864
					        <button type="button" class="close" data-dismiss="modal">&times;</button>
-
 
865
					        <h4 class="modal-title">Terms & Conditions</h4>
-
 
866
					        
-
 
867
					        
-
 
868
				      </div>
-
 
869
                    <div class="modal-body1">
-
 
870
                      <ul id="descriptionMenu">
-
 
871
						  
-
 
872
						    </ul>
-
 
873
                    </div>	
-
 
874
	              <div class="modal-footer">
-
 
875
					        <button type="button" data-dismiss="modal" class="btn btn-default cancel-description">Cancel</button>
-
 
876
					   
-
 
877
				   </div>
-
 
878
				    </div>
-
 
879
				    </div>
-
 
880
				    </div>
839
				<div class="row col-lg-12 info-box white-bg">
881
				<div class="row col-lg-12 info-box white-bg">
840
					#parse("performance.vm")
882
					#parse("performance.vm")
841
				</div>
883
				</div>
842
				<div class="row col-lg-12 info-box white-bg">
884
				<div class="row col-lg-12 info-box white-bg">
843
					<div class="col-lg-4">
885
					<div class="col-lg-4">
Line 878... Line 920...
878
		webApiRoot="$webApiRoot";
920
		webApiRoot="$webApiRoot";
879
		webApiHost="$webApiHost";
921
		webApiHost="$webApiHost";
880
		webApiPort="$webApiPort";
922
		webApiPort="$webApiPort";
881
	</script>
923
	</script>
882
	#parse("include-scripts.vm")
924
	#parse("include-scripts.vm")
-
 
925
	
-
 
926
	<script type="text/javascript">
883
  
927
	
-
 
928
	$("#description-offer").live(
-
 
929
			"click",
-
 
930
			function(e) {
-
 
931
			var des = $(this).data('description');
-
 
932
			var nameArr= []
-
 
933
			     console.log(nameArr);
-
 
934
			
-
 
935
	        nameArr = des.split('.');
-
 
936
	        console.log(nameArr);
-
 
937
	    	for (x of nameArr) {
-
 
938
              $("#descriptionMenu").append('<li>'+x+'</li>');
-
 
939
            }
-
 
940
	    		
-
 
941
			});
-
 
942
			
-
 
943
			
-
 
944
			
-
 
945
			$(".cancel-description").live(
-
 
946
			"click",
-
 
947
			function(e) {
-
 
948
	    		$("#descriptionMenu").empty();
-
 
949
			});
-
 
950
</script>  
884
  <script>
951
  <script>
885
 
952
 
886
      //knob
953
      //knob
887
      $(function() {
954
      $(function() {
888
        /*$(".knob").knob({
955
        /*$(".knob").knob({