Subversion Repositories SmartDukaan

Rev

Rev 34216 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<style>

    .custom-width {
        width: 140px; /* Set your desired width */
    }
</style>

<table class="table table-responsive table-bordered" id="blockedImeiList">
    <thead>
    <tr>
        <th>IMEI</th>
        <th>Blocked On</th>
        <th>Status</th>
        <th>Action</th>

    </tr>
    </thead>
    <tbody>
        #foreach($blockedImei in $blockedImeiList)
        <tr>
            <td>$blockedImei.getImei()</td>
            <td>$blockedImei.getCreateTimestamp().format($dateTimeFormatter)</td>
            #if($blockedImei.isBlocked())
                <td>Blocked</td>
            #else
                <td>Unblocked</td>
            #end
            <td>
                #if($blockedImei.isBlocked())
                    <button type="button" value="$blockedImei.getId()" class="scheme_imei_block_unblock_button btn-primary">
                        Unblock
                    </button>
                #else
                    <button type="button" value="$blockedImei.getId()" class="scheme_imei_block_unblock_button btn-primary">
                        Block
                    </button>

                #end
                <button type="button" value="$blockedImei.getId()" class="scheme_blocked_imei_remove_button btn-danger">
                    Remove
                </button>
            </td>
        </tr>
        #end
    </tbody>
</table>

<script>
    $('#blockedImeiList').DataTable({
        order: [[1, 'desc']],
        columnDefs: [
            { targets: 3, className: 'custom-width' }
        ]
    });
</script>