Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
34480 tejus.loha 1
<div class="modal-header ">
2
    <h3 class="modal-title">List of Gifts</h3>
3
    <button type="button" class="close" data-dismiss="modal">&times;</button>
4
</div>
5
<div class="modal-body">
6
    <table class="table table-bordered table-hover" id="giftTable">
7
        <thead class="thead-light">
8
        <tr>
9
            <th>Gift Name</th>
10
            <th>Validity</th>
11
            <th>Min. Cart Value</th>
12
            <th>Max. Redemptions</th>
13
            <th>Thumbnail</th>
14
            <th>Action</th>
15
        </tr>
16
        </thead>
17
        <tbody>
18
            #foreach($gift in $giftList)
19
            <tr>
20
                <td>$gift.name</td>
21
                <td>$gift.validity</td>
22
                <td>$gift.minCartValue</td>
23
                <td>$gift.maxRedemptions</td>
24
                <td>
25
                    <img src="/document/$gift.thumbnailUrl"
26
                         class="img-thumbnail"
27
                         width="50"
28
                         alt="$gift.name thumbnail">
29
                </td>
30
                <td class="text-center">
31
                    <button class="delete-gift btn btn-sm btn-danger" value="$gift.id">
32
                        <i class="fa fa-trash"></i>
33
                    </button>
34
                </td>
35
            </tr>
36
            #end
37
        </tbody>
38
    </table>
39
</div>
40
<div class="modal-footer">
41
    <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
42
</div>
43
<script>
44
    var dtable = $('#giftTable').DataTable(
45
            {
46
                "bPaginate": true,
47
                "bLengthChange": true,
48
                "bFilter": true,
49
                "bInfo": false,
50
                "bAutoWidth": false,
51
                "pageLength": 20,
52
            });
53
</script>