Subversion Repositories SmartDukaan

Rev

Rev 30601 | Blame | Compare with Previous | 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;
        }

        .grn-details {
                cursor: pointer;
        }
</style>
<script>
        $(function () {
                $('#grnDateRange').daterangepicker(getRangedDatePicker());
        });
</script>

<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>GRN</h3>
                        <ol class="breadcrumb">
                                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("historygrn.home")</a></li>
                                <li><i class="icon_document_alt"></i>#springMessage("historygrn.history")</li>
                        </ol>
                </div>
        </div>
        
         <div id="grn-history-search">
        <div class="row">
                <div class="col-lg-12">
                <div class="col-lg-9 form-group pull-right">
                        <div class="col-lg-6 form-group pull-left top_search form-inline">
                                <div class="input-group">
                                                <input type="text" class="form-control" id="grnDateRange" name="dateRange" >
                                <span class="input-group-btn">
                                <button class="btn btn-primary submit" id="grn-history-date-button" type="button">#springMessage("historygrn.go")</button>
                            </span>
                                        </div>
                </div>
                <div class="col-lg-5 form-group top_search">
                  <div class="input-group">
                    <input type="text" class="form-control" id="grn-history-search-text"" placeholder=#springMessage("historygrn.searchbypurchaserefference") value="" />
                    <span class="input-group-btn">
                      <button class="btn btn-primary submit" id="grn-history-search-button" type="button">#springMessage("historygrn.go")</button>
                    </span>
                  </div>
                </div>
              </div>
         </div>
        </div>
        </div>
         <div id="grn-history-table">
                 <div class="row">
                        <div class="col-lg-12">
                                <table class="table table-striped table-advance table-hover">
                                        <tbody>
                                                <tr>
                                                        <th>#springMessage("historygrn.purchasereference")</th>
                                                        <th>#springMessage("historygrn.serializedquantity")</th>
                                                        <th>#springMessage("historygrn.nonserializedquantity")</th>
                                                        <th>#springMessage("historygrn.grncompleted")</th>
                                                        <th>#springMessage("historygrn.createdon")</th>
                                                </tr>
                                                #if($grnHistories.size() > 0)
                                                         #foreach( $grnHistory in $grnHistories )
                                                                <tr class="grn-details" data="$grnHistory.getId()">
                                                                        <td>$grnHistory.getPurchaseReference()</td>
                                                                        <td>$grnHistory.getSerializedQuantity()</td>
                                                                        <td>$grnHistory.getNonSerializedQuantity()</td>
                                                                        #if($grnHistory.getCompleteTimestamp())
                                                                                <td><i class="fa fa-check" aria-hidden="true"></i></td>
                                                                        #else
                                                                                <td><i class="fa fa-times" aria-hidden="true"></i></td>
                                                                        #end
                                                                        <td>$grnHistory.getFormattedDate()</td>
                                                                </tr>
                                                         #end
                                                #else
                                                        <tr>
                                                                <td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                                        </tr>
                                                #end
                                        </tbody>
                                </table>
                        </div>
                </div>
        </div>
        #if(!$grnHistories.isEmpty())
                <div class="row" id="grn-history-paginated">
                        <div class="col-lg-9">
                                <p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
                        </div>
                        <div class="col-lg-3" style="text-align:right;">
                                        <div class="btn-group" style="width:40%">
                                                        <button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
                                                </div>
                                                <div class="btn-group" style="width:40%">
                                                        #if($end >= $size)
                                                                <button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
                                                        #else
                                                                <button class="btn btn-primary next" style="width:100%">Next</button>
                                                        #end
                                                </div>
                        </div>
                </div>
        #end
</section>
<div id="grn-details-container" style="background:white;background-color:white;">
</div>