Subversion Repositories SmartDukaan

Rev

Go to most recent revision | 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="offerEligibleImeisList">
    <thead>
    <tr>
        <th>Offer Id</th>
        <th>IMEIS</th>
        <th>Make Eligible</th>
        <th>Status</th>
        <th>Action</th>

    </tr>
    </thead>
    <tbody>
        #foreach($eligibleImei in $eligibleImeis)
        <tr>
            <td>$eligibleImei.getOfferId()</td>
            <td>$eligibleImei.getImeis()</td>
            <td>$eligibleImei.getCreateTimestamp().format($dateTimeFormatter)</td>
            #if($eligibleImei.isEligible())
                <td>Eligible</td>
            #else
                <td>Not eligible</td>
            #end
            <td>
                #if($eligibleImei.isEligible())
                    <button type="button" value="$eligibleImei.getId()" class="offer_eligible_imeis_EligibilityChange_button btn-primary">
                        Not Eligible
                    </button>
                #else
                    <button type="button" value="$eligibleImei.getId()" class="offer_eligible_imeis_EligibilityChange_button btn-primary">
                        Eligible
                    </button>

                #end
                <button type="button" value="$eligibleImei.getOfferId()" class="offer_eligible_imei_remove_button btn-danger">
                    Remove
                </button>
            </td>
        </tr>
        #end
    </tbody>
</table>

<script>
    $('#offerEligibleImeisList').DataTable({
        columnDefs: [
            { targets: 4, className: 'custom-width' }
        ]
    });
</script>