Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<section class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="icon_document_alt"></i> WOD Requests</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                <li>WOD Requests</li>
            </ol>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <a href="javascript:void(0);" class="btn btn-primary wod-request-panel" style="margin-bottom:10px;">
                <i class="fa fa-plus"></i> New WOD Request
            </a>
            <table class="table table-striped table-bordered table-hover" id="submissionsTable">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>Partner</th>
                    <th>Brand</th>
                    <th>State</th>
                    <th>Status</th>
                    <th>Submitted By</th>
                    <th>Submitted At</th>
                    <th>Mail Sent At</th>
                </tr>
                </thead>
                <tbody>
                    #if($submissions)
                        #foreach($sub in $submissions)
                        <tr>
                            <td>$!sub.get("id")</td>
                            <td>$!sub.get("partnerName") ($!sub.get("fofoId"))</td>
                            <td>$!sub.get("brand")</td>
                            <td>$!sub.get("state")</td>
                            <td>
                                #set($reqStatus = $!sub.get("status"))
                                #if($reqStatus == "MAILED")
                                    <span class="label label-success">MAILED</span>
                                #elseif($reqStatus == "SUBMITTED")
                                    <span class="label label-warning">SUBMITTED</span>
                                #else
                                    <span class="label label-default">$!reqStatus</span>
                                #end
                            </td>
                            <td>$!sub.get("createdBy")</td>
                            <td>$!sub.get("createdAt")</td>
                            <td>$!sub.get("mailSentAt")</td>
                        </tr>
                        #end
                    #end
                </tbody>
            </table>
        </div>
    </div>
</section>

<script type="text/javascript">
    setTimeout(function () {
        $('#submissionsTable').DataTable({
            "bPaginate": true,
            "bFilter": true,
            "bInfo": false,
            "order": [[0, "desc"]],
            "pageLength": 25
        });
    }, 100);
</script>