Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
34210 tejus.loha 1
<style>
2
 
3
    .custom-width {
4
        width: 140px; /* Set your desired width */
5
    }
6
</style>
7
 
8
<table class="table table-responsive table-bordered" id="blockedImeiList">
9
    <thead>
10
    <tr>
11
        <th>IMEI</th>
12
        <th>Blocked On</th>
13
        <th>Status</th>
14
        <th>Action</th>
15
 
16
    </tr>
17
    </thead>
18
    <tbody>
19
        #foreach($blockedImei in $blockedImeiList)
20
        <tr>
21
            <td>$blockedImei.getImei()</td>
22
            <td>$blockedImei.getCreateTimestamp().format($dateTimeFormatter)</td>
23
            #if($blockedImei.isBlocked())
24
                <td>Blocked</td>
25
            #else
26
                <td>Unblocked</td>
27
            #end
28
            <td>
29
                #if($blockedImei.isBlocked())
30
                    <button type="button" value="$blockedImei.getId()" class="scheme_imei_block_unblock_button btn-primary">
31
                        Unblock
32
                    </button>
33
                #else
34
                    <button type="button" value="$blockedImei.getId()" class="scheme_imei_block_unblock_button btn-primary">
35
                        Block
36
                    </button>
37
 
38
                #end
39
                <button type="button" value="$blockedImei.getId()" class="scheme_blocked_imei_remove_button btn-danger">
40
                    Remove
41
                </button>
42
            </td>
43
        </tr>
44
        #end
45
    </tbody>
46
</table>
47
 
48
<script>
34216 tejus.loha 49
    $('#blockedImeiList').DataTable({
34254 tejus.loha 50
        order: [[1, 'desc']],
34216 tejus.loha 51
        columnDefs: [
52
            { targets: 3, className: 'custom-width' }
53
        ]
54
    });
34210 tejus.loha 55
</script>