Subversion Repositories SmartDukaan

Rev

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

Rev 35561 Rev 35583
Line 190... Line 190...
190
            font-weight: bold;
190
            font-weight: bold;
191
            color: white;
191
            color: white;
192
            font-family: 'Amaranth', sans-serif, 'Mukta';
192
            font-family: 'Amaranth', sans-serif, 'Mukta';
193
        }
193
        }
194
 
194
 
-
 
195
    </style>
-
 
196
 
-
 
197
    <style>
195
        .team-messages {
198
        .team-messages {
196
            background: #fff;
199
            background: #fff;
197
            padding: 10px;
200
            padding: 10px;
198
            margin-top: 10px;
201
            margin-top: 10px;
199
            border-radius: 8px;
202
            border-radius: 8px;
Line 229... Line 232...
229
            align-items: flex-start;
232
            align-items: flex-start;
230
            margin-bottom: 8px;
233
            margin-bottom: 8px;
231
        }
234
        }
232
 
235
 
233
        .timeline-time {
236
        .timeline-time {
234
            width: 55px;
-
 
235
            font-size: 10px;
237
            font-size: 10px;
236
            color: #999;
238
            color: #999;
237
            text-align: right;
239
            text-align: right;
238
            padding-right: 5px;
240
            padding-right: 5px;
-
 
241
            position: absolute;
239
            float: right;
242
            right: 10px;
240
        }
243
        }
241
 
244
 
242
        .timeline-card {
245
        .timeline-card {
243
            background: #fff;
246
            background: #fff;
244
            border: 1px solid #e7e2e2;
247
            border: 1px solid #e7e2e2;
245
            border-left: 2px solid #ba9b9b;
248
            border-left: 2px solid #ba9b9b;
246
            border-radius: 4px;
249
            border-radius: 4px;
247
            padding: 6px 8px;
250
            padding: 6px 8px;
248
            width: 100%;
251
            width: 100%;
249
            max-width: 600px;
-
 
250
            position: relative;
252
            position: relative;
251
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
253
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
252
        }
254
        }
253
 
255
 
254
        .card-header {
256
        .card-header {
Line 309... Line 311...
309
 
311
 
310
        h3 {
312
        h3 {
311
            font-size: 21px;
313
            font-size: 21px;
312
        }
314
        }
313
 
315
 
-
 
316
        #bulletinDate {
-
 
317
            border-radius: 20px;
-
 
318
            padding: 4px 12px;
-
 
319
            border: 1px solid #ddd;
-
 
320
            background: #f5f7fb;
-
 
321
            font-size: 12px;
-
 
322
            position: relative;
-
 
323
            bottom: 5px;
-
 
324
        }
314
 
325
 
315
    </style>
326
    </style>
316
 
327
 
317
    <script type="text/javascript">
328
    <script type="text/javascript">
318
        isAdmin = true;
329
        isAdmin = true;
Line 593... Line 604...
593
            <div class="row">
604
            <div class="row">
594
 
605
 
595
 
606
 
596
                <div class="col-lg-6">
607
                <div class="col-lg-6">
597
 
608
 
598
                    <div class="team-messages">
-
 
599
                        <h3 class="tm-title">Bulletin <span class="tm-subtitle"> (Today Important Updates)</span></h3>
-
 
600
                        <hr style="margin: 8px 0 15px 0;border-top: 1px solid #dddcdc;">
-
 
601
                        <ul class="bulletin-tabs">
-
 
602
                            #foreach($entry in $bulletins.entrySet())
-
 
603
                                <li data-tab="$entry.key">
-
 
604
                                    $entry.key
-
 
605
                                </li>
-
 
606
                            #end
-
 
607
                        </ul>
-
 
608
                        <div class="timeline-wrapper">
-
 
609
                            #foreach($entry in $bulletins.entrySet())
-
 
610
 
-
 
611
                                <div class="bulletin-tab-content" id="tab-$entry.key">
-
 
612
 
-
 
613
                                    <div class="timeline-wrapper">
-
 
614
 
-
 
615
                                        #foreach($bulletin in $entry.value)
-
 
616
                                            <div class="timeline-row">
-
 
617
 
-
 
618
                                                <div class="timeline-card">
-
 
619
                                                    <div class="card-header">
-
 
620
                                                        <div class="header-text">
-
 
621
 
-
 
622
                                                            <div class="timeline-time">
-
 
623
                                                                ${bulletin.createdTime}
-
 
624
                                                            </div>
-
 
625
 
-
 
626
                                                            #if($bulletin.isCatalogOffer())
-
 
627
                                                                <strong>
-
 
628
                                                                    <a class="today-bulletin-offer"
-
 
629
                                                                       data-offerid="$bulletin.offerId">
-
 
630
                                                                        ${bulletin.title}
-
 
631
                                                                    </a>
-
 
632
                                                                </strong>
-
 
633
                                                            #else
-
 
634
                                                                <strong>${bulletin.title}</strong>
-
 
635
                                                            #end
-
 
636
 
-
 
637
                                                        </div>
-
 
638
                                                    </div>
-
 
639
 
-
 
640
                                                    <div class="card-body">
-
 
641
                                                        $bulletin.description
-
 
642
 
-
 
643
                                                        #if($bulletin.catalogBriefList)
-
 
644
                                                            <p>
-
 
645
                                                                #foreach($catalog in $bulletin.catalogBriefList)
-
 
646
                                                                    <span>${catalog.modelName}</span>,
-
 
647
                                                                #end
-
 
648
                                                            </p>
-
 
649
                                                        #end
-
 
650
 
-
 
651
                                                        #if($bulletin.documentIds && $bulletin.documentIds.size() > 0)
-
 
652
                                                            <div class="bulletin-attachments">
-
 
653
                                                                #foreach($docId in $bulletin.documentIds)
-
 
654
                                                                    <a href="$rc.contextPath/document/$docId"
-
 
655
                                                                       target="_blank">
-
 
656
                                                                        Attachment
-
 
657
                                                                    </a>
-
 
658
                                                                #end
-
 
659
                                                            </div>
-
 
660
                                                        #end
-
 
661
 
609
 
662
                                                    </div>
610
                    <div class="team-messages">
663
                                                </div>
611
                        <h3 class="tm-title">Bulletin <span class="tm-subtitle"> (Today Important Updates)</span> <input
664
 
-
 
665
                                            </div>
612
                                type="date" id="bulletinDate" style="float:right;"></h3>
666
                                        #end
-
 
667
 
-
 
668
                                    </div>
-
 
669
                                </div>
-
 
670
 
-
 
671
                            #end
-
 
672
 
613
 
-
 
614
                        <hr style="margin: 8px 0 15px 0;border-top: 1px solid #dddcdc;">
-
 
615
                        <div id="bulletin-list-container">
-
 
616
                            #parse("bulletin-list.vm")
673
                        </div>
617
                        </div>
674
                    </div>
618
                    </div>
675
 
619
 
676
 
620
 
677
 
621
 
-
 
622
 
678
                    #*
623
                    #*
679
                        #if($warehousePartnerDetailMap)
624
                        #if($warehousePartnerDetailMap)
680
                                <div class="row chartfilterlmsContainer" style="margin: 5px"></div>
625
                                <div class="row chartfilterlmsContainer" style="margin: 5px"></div>
681
 
626
 
682
                                <div class="row col-lg-12">
627
                                <div class="row col-lg-12">
Line 1737... Line 1682...
1737
</div>
1682
</div>
1738
 
1683
 
1739
</body>
1684
</body>
1740
 
1685
 
1741
 
1686
 
1742
</html>
-
 
1743
1687
</html>
-
 
1688
 
-
 
1689
 
-
 
1690
<script>
-
 
1691
    function refreshBulletinsList() {
-
 
1692
        var selectedDate = $('#bulletinDate').val();
-
 
1693
 
-
 
1694
        $.ajax({
-
 
1695
            url: context + "/dasboard/getDateWiseBulletins",
-
 
1696
            type: "GET",
-
 
1697
            data: {date: selectedDate},
-
 
1698
            success: function (response) {
-
 
1699
                $('#bulletin-list-container').fadeOut(200, function () {
-
 
1700
                    $(this).html(response).fadeIn(200);
-
 
1701
                });
-
 
1702
            },
-
 
1703
            error: function () {
-
 
1704
                alert("Failed to load bulletins");
-
 
1705
            }
-
 
1706
        });
-
 
1707
    }
-
 
1708
 
-
 
1709
    // refresh when date changes
-
 
1710
    $('#bulletinDate').on('change', refreshBulletinsList);
-
 
1711
 
-
 
1712
    // load today on page load
-
 
1713
    $(document).ready(function () {
-
 
1714
        let today = new Date().toISOString().split('T')[0];
-
 
1715
        $('#bulletinDate').val(today);
-
 
1716
        refreshBulletinsList();
-
 
1717
    });
-
 
1718
 
-
 
1719
 
-
 
1720
</script>
-
 
1721
1744
1722