| Line 132... |
Line 132... |
| 132 |
position: absolute; top: -10px; left: 0; right: 0;
|
132 |
position: absolute; top: -10px; left: 0; right: 0;
|
| 133 |
text-align: center; font-size: 2em; font-weight: bold;
|
133 |
text-align: center; font-size: 2em; font-weight: bold;
|
| 134 |
color: white; font-family: 'Amaranth', sans-serif;
|
134 |
color: white; font-family: 'Amaranth', sans-serif;
|
| 135 |
}
|
135 |
}
|
| 136 |
|
136 |
|
| - |
|
137 |
#descriptionMenu {
|
| - |
|
138 |
list-style: desc !important
|
| - |
|
139 |
list-style-type:square;
|
| - |
|
140 |
text-align:left;
|
| - |
|
141 |
}
|
| - |
|
142 |
|
| 137 |
|
143 |
|
| 138 |
</style>
|
144 |
</style>
|
| 139 |
</head>
|
145 |
</head>
|
| 140 |
|
146 |
|
| 141 |
<body style="zoom:90%;background-color:#f7f7f7">
|
147 |
<body style="zoom:90%;background-color:#f7f7f7">
|
| Line 827... |
Line 833... |
| 827 |
#if($sales)
|
833 |
#if($sales)
|
| 828 |
#if(!$offers.isEmpty())
|
834 |
#if(!$offers.isEmpty())
|
| 829 |
#foreach( $offer in $offers )
|
835 |
#foreach( $offer in $offers )
|
| 830 |
<div class="row col-lg-12 info-box white-bg">
|
836 |
<div class="row col-lg-12 info-box white-bg">
|
| 831 |
<h3 style="margin-top:-2px;">
|
837 |
<h3 style="margin-top:-2px;">
|
| 832 |
$offer.getName() - $offer.getStartDate().format($dateTimeFormatter) to $offer.getEndDate().format($dateTimeFormatter)
|
838 |
$offer.getName() - $offer.getStartDateTime() to $offer.getEndDateTime()
|
| 833 |
</h3>
|
839 |
</h3>
|
| 834 |
#if($offer.getShortAmount() == 0 && $offer.getAmountType() == "amount" )
|
840 |
#if($offer.getShortAmount() == 0 && $offer.getAmountType() == "amount" )
|
| 835 |
<h4> Congratulations you have earn Rs. <span class="currency">$offer.getMargin()</span>. Happy Selling!</h4>
|
841 |
<h4> Congratulations you have earn Rs. <span class="currency">$offer.getMargin()</span>. Happy Selling!</h4>
|
| - |
|
842 |
|
| 836 |
#elseif($offer.getShortAmount() == 0 && $offer.getAmountType() == "percentage" )
|
843 |
#elseif($offer.getShortAmount() == 0 && $offer.getAmountType() == "percentage" )
|
| 837 |
<h4> Congratulations you have secured $offer.getMargin()%. Happy Selling!</h4>
|
844 |
<h4> Congratulations you have secured $offer.getMargin()%. Happy Selling!</h4>
|
| - |
|
845 |
|
| - |
|
846 |
#elseif($offer.getAmountType() == "amount" && $offer.getTargetType()=="value" && $offer.getShortAmount() == $offer.getValue())
|
| - |
|
847 |
<h4>
|
| - |
|
848 |
Sell stock worth Rs.<span class="currency">$offer.getShortAmount()</span> to earn additional Rs. <span class="currency">$offer.getMargin()</span>
|
| - |
|
849 |
</h4>
|
| - |
|
850 |
|
| - |
|
851 |
#elseif($offer.getAmountType() == "amount" && $offer.getTargetType()=="quantity" && $offer.getShortAmount() == $offer.getValue())
|
| - |
|
852 |
<h4>
|
| - |
|
853 |
Sell <span class="currency">$offer.getShortAmount()</span> units to earn additional Rs. <span class="currency">$offer.getMargin()</span>
|
| - |
|
854 |
</h4>
|
| - |
|
855 |
|
| - |
|
856 |
#elseif($offer.getAmountType() == "percentage" && $offer.getTargetType()=="quantity" && $offer.getShortAmount()== $offer.getValue())
|
| - |
|
857 |
<h4>
|
| - |
|
858 |
Sell <span class="currency">$offer.getShortAmount()</span> units to earn additional $offer.getMargin()%
|
| - |
|
859 |
|
| - |
|
860 |
</h4>
|
| - |
|
861 |
#elseif($offer.getAmountType() == "percentage" && $offer.getTargetType()=="value" && $offer.getShortAmount() == $offer.getValue())
|
| - |
|
862 |
<h4>
|
| - |
|
863 |
Sell stock worth Rs <span class="currency">$offer.getShortAmount()</span> to earn additional $offer.getMargin()%
|
| - |
|
864 |
</h4>
|
| - |
|
865 |
|
| 838 |
#elseif($offer.getAmountType() == "amount" && $offer.getTargetType()=="value" && $offer.getShortAmount() != 0)
|
866 |
#elseif($offer.getAmountType() == "amount" && $offer.getTargetType()=="value" && $offer.getShortAmount() != 0)
|
| 839 |
<h4>
|
867 |
<h4>
|
| 840 |
Sell stock worth <span class="currency">$offer.getShortAmount()</span> to earn additional Rs. <span class="currency">$offer.getMargin()</span>
|
868 |
Sell stock worth Rs.<span class="currency">$offer.getShortAmount()</span> more to earn additional Rs. <span class="currency">$offer.getMargin()</span>
|
| 841 |
</h4>
|
869 |
</h4>
|
| 842 |
#elseif($offer.getAmountType() == "amount" && $offer.getTargetType()=="quantity" && $offer.getShortAmount() != 0)
|
870 |
#elseif($offer.getAmountType() == "amount" && $offer.getTargetType()=="quantity" && $offer.getShortAmount() != 0)
|
| 843 |
<h4>
|
871 |
<h4>
|
| 844 |
Sell stock worth <span class="currency">$offer.getShortAmount()</span> pieces to earn additional Rs. <span class="currency">$offer.getMargin()</span>
|
872 |
Sell <span class="currency">$offer.getShortAmount()</span> unit more to earn additional Rs. <span class="currency">$offer.getMargin()</span>
|
| 845 |
</h4>
|
873 |
</h4>
|
| 846 |
#elseif($offer.getAmountType() == "percentage" && $offer.getTargetType()=="quantity" && $offer.getShortAmount() != 0)
|
874 |
#elseif($offer.getAmountType() == "percentage" && $offer.getTargetType()=="quantity" && $offer.getShortAmount() != 0)
|
| 847 |
<h4>
|
875 |
<h4>
|
| 848 |
Sell stock worth <span class="currency">$offer.getShortAmount()</span> pieces to earn additional $offer.getMargin()%
|
876 |
Sell <span class="currency">$offer.getShortAmount()</span> unit more to earn additional $offer.getMargin()%
|
| 849 |
|
877 |
|
| 850 |
</h4>
|
878 |
</h4>
|
| 851 |
#elseif($offer.getAmountType() == "percentage" && $offer.getTargetType()=="value" && $offer.getShortAmount() != 0)
|
879 |
#elseif($offer.getAmountType() == "percentage" && $offer.getTargetType()=="value" && $offer.getShortAmount() != 0)
|
| 852 |
<h4>
|
880 |
<h4>
|
| 853 |
Sell stock worth <span class="currency">$offer.getShortAmount()</span> to earn additional $offer.getMargin()%
|
881 |
Sell stock worth Rs<span class="currency">$offer.getShortAmount()</span> more to earn additional $offer.getMargin()%
|
| 854 |
|
882 |
|
| 855 |
</h4>
|
883 |
</h4>
|
| 856 |
|
884 |
|
| 857 |
#end
|
885 |
#end
|
| 858 |
|
886 |
|
| Line 938... |
Line 966... |
| 938 |
console.log(nameArr);
|
966 |
console.log(nameArr);
|
| 939 |
|
967 |
|
| 940 |
nameArr = des.split(',');
|
968 |
nameArr = des.split(',');
|
| 941 |
console.log(nameArr);
|
969 |
console.log(nameArr);
|
| 942 |
for (x of nameArr) {
|
970 |
for (x of nameArr) {
|
| 943 |
$("#descriptionMenu").append('<li>'+x+'</li>');
|
971 |
$("#descriptionMenu").append('<li style="padding:5px;list-style:square;">'+x+'</li>');
|
| 944 |
}
|
972 |
}
|
| 945 |
|
973 |
|
| 946 |
});
|
974 |
});
|
| 947 |
|
975 |
|
| 948 |
|
976 |
|