Subversion Repositories SmartDukaan

Rev

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

Rev 31674 Rev 31805
Line 1010... Line 1010...
1010
                                <div class="title">Total Stock</div>
1010
                                <div class="title">Total Stock</div>
1011
                            </div>
1011
                            </div>
1012
                        </div>
1012
                        </div>
1013
                    </div>
1013
                    </div>
1014
                    <div class="row">
1014
                    <div class="row">
1015
                    
-
 
-
 
1015
 
1016
                      <div class="col-lg-8 partnerIncomeContainer"> </div>
1016
                        <div class="col-lg-8 partnerIncomeContainer"></div>
1017
                    
-
 
-
 
1017
 
1018
                       <div class="col-lg-4">
1018
                        <div class="col-lg-4">
1019
                             <div class="info-box green-bg" style ="height: 145px;">
1019
                            <div class="info-box green-bg" style="height: 145px;">
1020
                                 <h3 style="margin-top:-2px;margin-bottom:12px"><strong>MONTHLY TARGET</strong></h3>
1020
                                <h3 style="margin-top:-2px;margin-bottom:12px"><strong>MONTHLY TARGET</strong></h3>
1021
                                 
-
 
-
 
1021
 
1022
                                  <div class="col-lg-6">
1022
                                <div class="col-lg-6">
1023
                                    <h3 style="margin-top:-2px;margin-bottom:12px;"><strong
1023
                                    <h3 style="margin-top:-2px;margin-bottom:12px;"><strong
1024
                                            style="font-size: 16px; cursor:pointer; margin-left: 9px;"
1024
                                            style="font-size: 16px; cursor:pointer; margin-left: 9px;"
1025
                                            >Sale</strong></h3>
1025
                                    >Sale</strong></h3>
1026
                                         <div class="col-lg-6">
1026
                                    <div class="col-lg-6">
1027
                                           #if($monthlyTarget && $monthlyTarget.getSaleTarget() >0)
1027
                                        #if($monthlyTarget && $monthlyTarget.getSaleTarget() >0)
1028
                                             <div style="margin-top:0px" class="count currency">$monthlyTarget.getSaleTarget()</div>
1028
                                            <div style="margin-top:0px"
1029
                                         
1029
                                                 class="count currency">$monthlyTarget.getSaleTarget()</div>
-
 
1030
 
1030
                                            #else
1031
                                        #else
1031
                                                 <div style="margin-top:0px" class="count currency">-</div>
1032
                                            <div style="margin-top:0px" class="count currency">-</div>
1032
                                        
-
 
-
 
1033
 
1033
                                            #end
1034
                                        #end
1034
                                         
-
 
-
 
1035
 
1035
                                        </div>
1036
                                    </div>
1036
                                   </div>
1037
                                </div>
1037
                                   
-
 
-
 
1038
 
1038
                                  <div class="col-lg-6">
1039
                                <div class="col-lg-6">
1039
                                    <h3 style="margin-top:-2px;margin-bottom:12px;"><strong
1040
                                    <h3 style="margin-top:-2px;margin-bottom:12px;"><strong
1040
                                            style="font-size: 16px; cursor:pointer; margin-left: 9px;"
1041
                                            style="font-size: 16px; cursor:pointer; margin-left: 9px;"
1041
                                            >Purchase</strong></h3>
1042
                                    >Purchase</strong></h3>
1042
                                         <div class="col-lg-6">
1043
                                    <div class="col-lg-6">
1043
                                            #if($monthlyTarget && $monthlyTarget.getPurchaseTarget() > 0)
1044
                                        #if($monthlyTarget && $monthlyTarget.getPurchaseTarget() > 0)
1044
                                              <div style="margin-top:0px" class="count currency">$monthlyTarget.getPurchaseTarget()</div>
1045
                                            <div style="margin-top:0px"
1045
                                         
1046
                                                 class="count currency">$monthlyTarget.getPurchaseTarget()</div>
-
 
1047
 
1046
                                            #else
1048
                                        #else
1047
                                                 <div style="margin-top:0px" class="count currency"> - </div>
1049
                                            <div style="margin-top:0px" class="count currency"> -</div>
-
 
1050
 
1048
                                         
1051
                                        #end
1049
                                            #end
1052
                                    </div>
1050
                                        </div>
1053
                                </div>
1051
                                   </div>
1054
                            </div>
-
 
1055
 
1052
                        </div>
1056
                        </div>
1053
                     
-
 
1054
                   </div>
-
 
1055
                    </div>
1057
                    </div>
1056
 
1058
 
1057
                    <div class="row">
1059
                    <div class="row">
1058
                        <div class="Mobile">
1060
                        <div class="Mobile">
1059
                            #foreach($brandStockPrice in $brandStockPrices)
1061
                            #foreach($brandStockPrice in $brandStockPrices)
Line 1116... Line 1118...
1116
                </div>
1118
                </div>
1117
 
1119
 
1118
                <div class="col-lg-6">
1120
                <div class="col-lg-6">
1119
                    <div class="row">
1121
                    <div class="row">
1120
                        <div class="form-group">
1122
                        <div class="form-group">
1121
                            <label class="control-label col-lg-4" for="months">Select Offers for Month</label>
1123
                            <label class="control-label col-lg-5" for="months">Offers for Month</label>
1122
                            <div class="col-lg-6">
1124
                            <div class="col-lg-4">
1123
                                <select class="form-control input-sm" id="offer-months" name="months"
1125
                                <select class="form-control input-sm" id="offer-months" name="months"
1124
                                        placeholder="months" style="margin:auto;">
1126
                                        placeholder="months" style="margin:auto;">
1125
                                    <option value="" disabled selected>month</option>
1127
                                    <option value="" disabled selected>month</option>
1126
                                    #foreach($mVM in $monthValueMap.entrySet())
1128
                                    #foreach($mVM in $monthValueMap.entrySet())
1127
                                        #if($mVM.getKey()== $month )
1129
                                        #if($mVM.getKey()== $month )
Line 1130... Line 1132...
1130
                                            <option value="$mVM.getKey()">$mVM.getValue()</option>
1132
                                            <option value="$mVM.getKey()">$mVM.getValue()</option>
1131
                                        #end
1133
                                        #end
1132
                                    #end
1134
                                    #end
1133
                                </select>
1135
                                </select>
1134
                            </div>
1136
                            </div>
-
 
1137
                            <div>
-
 
1138
                                <!--Training Video -->
-
 
1139
                                <a href="#videoModal" class="btn btn-danger" data-toggle="modal" data-src="a_qD7ZZqqZg"><span
-
 
1140
                                        class="glyphicon glyphicon-play-circle"></span> Play Video</a>
-
 
1141
                            </div>
1135
                        </div>
1142
                        </div>
1136
                    </div>
1143
                    </div>
1137
                    <div id="offer-container">
1144
                    <div id="offer-container">
1138
                        #parse("published-offers.vm")
1145
                        #parse("published-offers.vm")
1139
                    </div>
1146
                    </div>
Line 1666... Line 1673...
1666
            loaderDialogObj = bootbox.dialog({
1673
            loaderDialogObj = bootbox.dialog({
1667
                message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
1674
                message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
1668
                show: false
1675
                show: false
1669
            });
1676
            });
1670
 
1677
 
-
 
1678
            /* Assign empty url value to the iframe src attribute when
-
 
1679
                modal hide, which stop the video playing */
-
 
1680
            $("#videoModal").on('hide.bs.modal', function () {
-
 
1681
                $("#trainingVideo").attr('src', '');
-
 
1682
            });
-
 
1683
 
-
 
1684
            /* Assign the initially stored url back to the iframe src
-
 
1685
            attribute when modal is displayed again */
-
 
1686
            $("#videoModal").on('show.bs.modal', function (event) {
-
 
1687
                let button = $(event.relatedTarget);
-
 
1688
                let youtubeUrl = button.data("src");
-
 
1689
                $("#trainingVideo").attr('src', `//www.youtube.com/embed/${youtubeUrl}?autoplay=1`);
-
 
1690
            });
-
 
1691
 
1671
        });
1692
        });
1672
    </script>
1693
    </script>
1673
    <div id="punchInOutModal" class="modal" role="dialog">
1694
    <div id="punchInOutModal" class="modal" role="dialog">
1674
        <div class="modal-dialog">
1695
        <div class="modal-dialog">
1675
 
1696
 
Line 1687... Line 1708...
1687
            </div>
1708
            </div>
1688
        </div>
1709
        </div>
1689
    </div>
1710
    </div>
1690
</section>
1711
</section>
1691
</body>
1712
</body>
-
 
1713
 
-
 
1714
<!-- Modal HTML -->
-
 
1715
<div id="videoModal" class="modal fade">
-
 
1716
    <div class="modal-dialog">
-
 
1717
        <div class="modal-content">
-
 
1718
            <div class="modal-body">
-
 
1719
                <div class="embed-responsive embed-responsive-16by9">
-
 
1720
                    <iframe id="trainingVideo" class="embed-responsive-item" width="560" height="315"
-
 
1721
                            allowfullscreen allow="autoplay"></iframe>
-
 
1722
                </div>
-
 
1723
            </div>
-
 
1724
        </div>
-
 
1725
    </div>
-
 
1726
</div>
1692
</html>
1727
</html>
1693
<style>
1728
<style>
1694
 
1729
 
1695
 
1730
 
1696
    .popover2 {
1731
    .popover2 {