Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<div id="top-infopane">
    <table id="user-orders" class="display">
        <thead>
            <tr>
                <th>Order Id</th>
                <th>Item</th>
                                <th>Return Eligible Qty</th>
                                <th>Return Qty</th>
                                <th>Action</th>
                                <th>Return Pickup Type</th>
            </tr>
        </thead>
        <tbody>
            #foreach($order in $action.getOrders())
            <tr id="order-row-$order.getId()">
                <td>$order.getId()</td>
                <td class="truncated-text" truncatedTextWidth="400">$action.getProductName($order.getLineitems().get(0))</td>
                                #set ($returnElgQty = $order.getLineitems().get(0).getQuantity() - $order.getLineitems().get(0).getReturnQty())
                <td>$returnElgQty</td>
                <td><input style="text-align: center; width:30%" type="text" orderId="$order.getId()" value="0"><br></td>
                                <td>
                                        <select name="returnAction" orderId="$order.getId()">
                                <option value="0">
                                        REPLACEMENT
                                </option>
                                <option value="1">
                                        REFUND
                                </option>
                                        </select> 
                                </td>
                                <td>
                                        <select name="returnPickupType" orderId="$order.getId()">
                                                <option value="0">
                                                        NOW
                                                </option>
                                                <option value="2">
                                                        NOT_REQUIRED
                                                </option>
                                        </select> 
                                </td>
            </tr>
            #end
            </tbody>
    </table>
</div>

<div id="bottom-infopane" style="margin:20px 0px 20px">
        #if($action.getOrders().size() > 0)
                <a class="confirm-return-transaction" userId="$action.getUserId()" returnType="$action.getReturnType()" href="#">Click to proceed</a>
        #end
</div>