Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<style>
        .table-striped > tbody > tr:nth-child(odd) > td{
  background: white;
  background-color: white;
}
.table-striped > tbody > tr:nth-child(even) > td{
  background: white;
  background-color:white;
}
.table-striped > tbody > tr:hover > td,
        .table-striped > tbody > tr:hover {
          background-color: #e98c8f;
          color:white;
        }
        .btn:hover{
        color: grey;
        text-decoration: none;
        }
        .btn-primary:hover{
        color: grey;
        text-decoration: none;
        }
        .add-to-bag{
                cursor:pointer;
        }
        modal-dialog.modal-lg{
                left:10%;
                right:auto;
                width:80%;
        }
        .modal-content{
                background : white;
        }
        .modelHeaderCustom{
                font-size:14px;
                font-weight:bold;
        }
        hr{
                background-color:#007aff;
                border:none;
                height:1px;
                background:#007aff;
        }
        tr.selected{background-color:#B0BED9}
</style>
<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_genius"></i>KEEP A TAB</h3>
                        <ol class="breadcrumb">
                                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                                <li><i class="icon_genius"></i>Keep A Tab</li>
                        </ol>
                </div>
        </div>
        
                
 <div class="row">
        <h4 class="modelHeaderCustom" style="font-size:22px;">Keep A Tab Order</h4>
                        <div class="col-lg-12" id="catalog-container">
                                <table class="table table-border table-condensed table-bordered" id="keep-a-tab-table">
                                        <thead>
                                            <tr>
                                                                <th>Item Id</th>
                                                        <th>OrderId</th>
                                                        <th>Description</th>
                                                        <th>Customer Name </th>
                                                        <th>Mobile</th>
                                                        <th>Amount</th>
                                                        <th>Refund Timestamp</th>
                                                        <th>Close</th>
                                                </tr>
                                                        
                                        </thead>
                                        <tbody>
                                                
                                        #if(!$order.isEmpty())
                                                         #foreach($taborder in $keepatab )
                                                                <tr>
                                                                        
                                                                     <td>$taborder.getLineItem().getItemId()</td>
                                                                <td>$taborder.getId()</td>
                                                                        <td>$taborder.getLineItem().getItem().getItemDescription()</td>
                                                                        <td>$taborder.getRetailerName()</td>
                                        <td>$taborder.getRetailerMobileNumber()</td>            
                                        <td>$taborder.getTotalAmount()</td>     
                                        #if($taborder.getRefundTimestamp())
                                         <td>$taborder.getRefundTimestamp()</td>        
                                        #else
                                        <td>null</td>
                                        #end
                                         <td><button class="btn btn-primary closeOrder"  data-orderid="$taborder.getId()" type="button" >Close</button>
                                                                     </td>
                                                                         
                                                </tr>
                                                #end
                                                #end
                                        </tbody>
                                </table>
                        </div>
                        </div>
                        
                </section>      
                

 <script type="text/javascript">
  $(document).ready(function() { 
 var dtable =  $('#keep-a-tab-table').DataTable(
  {
 
    "bPaginate": true,
    "bLengthChange": true,
    "bFilter": true,
    "bInfo": false,
    "bAutoWidth": false ,
     
    }
     
  );
  });
  </script>