Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33443 ranu 1
<style>
2
    .btn:hover, .btn:focus {
3
        color: grey;
4
        text-decoration: none;
5
    }
6
 
7
    .modal-dialog.modal-lg {
8
        left: 10%;
9
        right: auto;
10
        width: 80%;
11
    }
12
 
13
    .modal-content {
14
        background: white;
15
    }
16
 
17
    .border-highlight {
18
        border: 3px solid red;
19
    }
20
 
21
    td.highlight {
22
        background-color: yellowgreen !important;
23
    }
24
</style>
25
 
26
 
27
<section class="wrapper">
28
    <div class="row">
29
        <div class="col-lg-12">
30
            <h3 class="page-header">
31
                <i class="icon_document_alt"></i>Print Resources List
32
            </h3>
33
            <ol class="breadcrumb">
34
                <li><i class="fa fa-home"></i><a
35
                        href="${rc.contextPath}/dashboard">Home</a></li>
36
                <li><i class="icon_document_alt"></i>Print Resource List</li>
37
            </ol>
38
        </div>
39
    </div>
40
 
41
 
42
    <div id="pending-order-table">
43
        <div class="row">
44
            <div class="col-lg-12">
45
 
46
                <table class="table table-border table-condensed table-bordered" id="partner-print-resource">
47
                    <thead>
48
                    <tr>
49
                        <th>Title</th>
50
                        <th>Image Url</th>
51
                        <th>Start Date</th>
52
                        <th>End Date</th>
53
                        <th>Download</th>
54
                    </tr>
55
                    </thead>
56
                    <tbody>
57
                        #if(!$printResources.isEmpty())
58
 
59
                            #foreach($printResource in $printResources)
60
                            <tr>
61
                                <td>$printResource.getTitle()</td>
62
                                <td>$printResource.getImgUrl()</td>
63
                                <td>$printResource.getFormattedStartdDate()</td>
64
                                #if ($printResource.getFormattedEndDate())
65
                                    <td>$printResource.getFormattedEndDate()</td>
66
                                #else
67
                                    <td></td>
68
                                #end
69
 
70
                                <td><a href="$printResource.getImgUrl()" class="btn btn-success download-btn"
71
                                       data-url="$printResource.getImgUrl()" target="_blank">Download</a></td>
72
                            </tr>
73
                            #end
74
                        #end
75
                        #if($printResources.isEmpty())
76
                        <tr>
77
                            <td colspan="5">No data available in table</td>
78
                        </tr>
79
                        #end
80
                    </tbody>
81
                </table>
82
            </div>
83
        </div>
84
    </div>
85
</section>
86
 
87
<script>
88
 
89
    $(document).ready(function () {
90
        var dtable = $('#partner-print-resource').DataTable({});
91
    });
92
</script>