Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
36152 aman 1
<section class="wrapper">
2
    <div class="row">
3
        <div class="col-lg-12">
4
            <h3 class="page-header"><i class="icon_document_alt"></i> WOD Template Admin</h3>
5
            <ol class="breadcrumb">
6
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
7
                <li>WOD Template Admin</li>
8
            </ol>
9
        </div>
10
    </div>
11
    <div class="row">
12
        <div class="col-lg-12">
13
            <button class="btn btn-primary wod-template-new" style="margin-bottom:10px;">
14
                <i class="fa fa-plus"></i> New Template
15
            </button>
16
            <table class="table table-striped table-bordered table-hover" id="wodTemplateTable">
17
                <thead>
18
                <tr>
19
                    <th>ID</th>
20
                    <th>Brand</th>
21
                    <th>State</th>
22
                    <th>Columns</th>
23
                    <th>Mail To</th>
24
                    <th>Active</th>
25
                    <th>Actions</th>
26
                </tr>
27
                </thead>
28
                <tbody>
29
                    #foreach($t in $templates)
30
                    <tr>
31
                        <td>$t.getId()</td>
32
                        <td>$t.getBrand()</td>
33
                        <td>$t.getState()</td>
34
                        <td>
35
                            <span class="badge">$columnCountMap.get($t.getId()) columns</span>
36
                        </td>
37
                        <td style="max-width:200px;overflow:hidden;text-overflow:ellipsis;">$t.getMailTo()</td>
38
                        <td>
39
                            #if($t.isActive())
40
                                <span class="label label-success">Active</span>
41
                            #else
42
                                <span class="label label-default">Inactive</span>
43
                            #end
44
                        </td>
45
                        <td>
46
                            <button class="btn btn-xs btn-info wod-template-edit" data-id="$t.getId()">
47
                                <i class="fa fa-pencil"></i> Edit
48
                            </button>
49
                            #if($t.isActive())
50
                                <button class="btn btn-xs btn-danger wod-template-delete" data-id="$t.getId()">
51
                                    <i class="fa fa-trash"></i> Deactivate
52
                                </button>
53
                            #end
54
                        </td>
55
                    </tr>
56
                    #end
57
                </tbody>
58
            </table>
59
        </div>
60
    </div>
61
</section>
62
 
63
<script type="text/javascript">
64
    $(document).ready(function () {
65
        $('#wodTemplateTable').DataTable({
66
            "bPaginate": true,
67
            "bFilter": true,
68
            "bInfo": false,
69
            "order": [[0, "desc"]],
70
            "pageLength": 25
71
        });
72
    });
73
</script>