Subversion Repositories SmartDukaan

Rev

Rev 29850 | Rev 31147 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
29707 tejbeer 1
<section class="wrapper">
30601 amit.gupta 2
    <div class="row">
3
        <div class="col-lg-12">
4
            <h3 class="page-header">
5
                <i class="icon_document_alt"></i>Customer Offer
6
            </h3>
7
            <ol class="breadcrumb">
8
                <li><i class="fa fa-home"></i><a
9
                        href="${rc.contextPath}/dashboard">Home</a></li>
10
                <li><i class="icon_document_alt"></i>Customer Offer</li>
11
            </ol>
12
        </div>
13
    </div>
29707 tejbeer 14
 
30601 amit.gupta 15
 
16
    <div class="row">
17
 
18
        <div class="form-group col-lg-3">
19
            <label for="offerName">Offer Name</label>
20
            <input id="offername" placeholder="Offer Name" type="text"
21
                   class="form-control input-sm"/>
22
        </div>
23
 
24
 
25
        <div class="form-group col-lg-2">
26
            <label for="offerDuration">Duration</label>
27
            <input placeholder="Set Duration" name="dateRange" id="offerDuration" name="dateRange"
28
                   type="text" value="" class="form-control input-sm">
29
        </div>
30
 
31
 
32
        <div class="form-groupcol-lg-2" style="margin-top:20px">
33
 
34
            <input type="button" class="btn btn-default createoffer"
35
                   value="Create">
36
        </div>
37
    </div>
38
 
39
 
40
    <div class="col-lg-12">
29707 tejbeer 41
        <table class="table table-border table-condensed table-bordered" id="offer-customer-table" style="width:100%">
42
 
43
            <thead style="background:#F5F5F5;">
44
 
45
            <tr>
30601 amit.gupta 46
                <th>Id</th>
29707 tejbeer 47
                <th>Offer Name</th>
48
                <th>Duration</th>
49
                <th>Download</th>
50
                <th>Upload</th>
30601 amit.gupta 51
 
29707 tejbeer 52
            </tr>
53
            </thead>
54
            <tbody>
55
                #foreach($co in $customerOffers )
30601 amit.gupta 56
 
29707 tejbeer 57
                <tr>
30601 amit.gupta 58
                    #parse("customer-index-offer.vm")
29707 tejbeer 59
 
60
                </tr>
30601 amit.gupta 61
 
29707 tejbeer 62
                #end
63
 
64
            </tbody>
65
 
66
        </table>
67
    </div>
30601 amit.gupta 68
 
29707 tejbeer 69
</section>
70
 
71
 
30601 amit.gupta 72
<script type="text/javascript">
29707 tejbeer 73
    $(function () {
30601 amit.gupta 74
        $('input[name="dateRange"]').daterangepicker(getRangedDatePicker());
75
        $('input[name="extendEndDate"]').daterangepicker(getSingleDatePicker());
29707 tejbeer 76
    });
77
 
78
 
79
    $(document).ready(function () {
30601 amit.gupta 80
 
81
 
82
        var dtable = $('#offer-customer-table').DataTable({
83
            "scrollX": true,
29707 tejbeer 84
            "scrollY": "518px",
85
            scrollCollapse: true,
86
        });
30601 amit.gupta 87
 
88
 
29707 tejbeer 89
    });
30601 amit.gupta 90
 
29707 tejbeer 91
</script>