Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<div class="price-drop-table">
    <div class="row">
        <div class="col-lg-12 mt-4" id="priceDrop">
            <table class="table table-striped table-condensed table-bordered">
                <thead>
                <tr>
                    <th>Drop Id</th>
                    <th>Item Name</th>
                    <th>TP</th>
                    <th>DP</th>
                    <th>Mop</th>
                    <th>Price Drop</th>
                    <th>New DP</th>
                    <th>Affected On</th>
                    <th>Created On</th>
                    <th>Payout</th>
                    #if(!$processOn)
                        <th>Processed On</th>
                    #else
                    #end
                    <th>Download IMEIs</th>
                </tr>
                </thead>
                <tbody>
                    #foreach($priceDrop in $priceDrops )
                    <tr data-pricedropid="$priceDrop.getId()">
                        <td>$priceDrop.getId()</td>
                        <td>$catalogDescription.get($priceDrop.getCatalogItemId())</td>
                        <td class="currency">$priceDrop.getTp()</td>
                        <td class="currency">$priceDrop.getOldDp()</td>
                        <td class="currency">$priceDrop.getMop()</td>
                        <td class="currency">$priceDrop.getAmount()</td>
                        <td class="currency">$priceDrop.getNewDp()</td>
                        <td>$priceDrop.getAffectedOn().format($dateFormatter)</td>
                        <td>$priceDrop.getCreatedOn().format($dateFormatter)</td>
                        <td>
                            #if($priceDrop.getProcessTimestamp())
                                $priceDrop.getProcessTimestamp().format($dateTimeFormatter)<br>
                                <input type="number" name="partnerPayout" readonly
                                       value="$priceDrop.getAutoPartnerPayout()"
                                       class="form-control partner-payout input-sm"/>
                            #else
                                <input type="number" name="partnerPayout" value="$priceDrop.getAutoPartnerPayout()"
                                       class="form-control partner-payout input-sm"/>
                            #end
                        </td>
                        #if(!$priceDrop.getCompleteTimestamp())
                            <td>
                                <input class="btn btn-info btn-sm mk_view_imeis" data-toggle="modal"
                                       data-target="#viewImeisModal" type="submit" value="Process Manually"/>
                                <input class="btn btn-info btn-sm mk_auto_process" data-activatedonly="false"
                                       type="submit" value="Process All"/><br>
                                <input class="btn btn-info btn-sm mk_auto_process" data-activatedonly="true"
                                       type="submit" value="Process Activated Only"/>
                            </td>
                        #else
                            <td></td>
                        #end
                        <td>
                            <input class="downloadtotalIMEI btn btn-info btn-sm" value="Download" type="submit"/>
                        </td>
                    </tr>
                    #end
                </tbody>
            </table>
        </div>
    </div>
</div>