Subversion Repositories SmartDukaan

Rev

Rev 23342 | 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;
        }
</style>
<section class="wrapper">            
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_desktop"></i>INVENTORY</h3>
                        <ol class="breadcrumb">
                                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                                <li><i class="icon_desktop"></i>GOOD</li>                                                       
                        </ol>
                </div>
        </div>
        
         <div id="good-inventory-search">
        <div class="row">
                <div class="col-lg-12">
                <div class="col-md-3 col-sm-3 col-xs-12 form-group pull-right top_search">
                  <div class="input-group">
                    <input type="text" class="form-control" id="good-inventory-search-text"" placeholder="Search for product..." value="$searchTerm" />
                    <span class="input-group-btn">
                      <button class="btn btn-primary submit" id="good-inventory-search-button" type="button">Go!</button>
                    </span>
                  </div>
                </div>
              </div>
         </div>
        </div>
         <div id="good-inventory-table">
                 <div class="row">
                        <div class="col-lg-12">
                                <table class="table table-striped table-advance table-hover">
                                        <tbody>
                                                <tr>
                                                        <th>Id</th>
                                                        <th>Description
                                                        <th>Type</th>
                                                        <th>Quantity</th>
                                                        <th>Allocated Quantity</th>
                                                </tr>
                                                #if($currentInventorySnapshot.size() > 0)
                                                         #foreach( $inventorySnapshot in $currentInventorySnapshot )
                                                                <tr>
                                                                        <td>$inventorySnapshot.getItemId()</td>
                                                                        <td>$inventorySnapshot.getItem().getItemDescription()</td>
                                                                        <td>$inventorySnapshot.getItem().getType()</td>
                                                                        <td>$inventorySnapshot.getAvailability()</td>
                                                                        <td>Allocated Quantity</td>
                                                                </tr>
                                                         #end
                                                #else
                                                        <tr>
                                                                <td colspan="7" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                                        </tr>
                                                #end
                                        </tbody>
                                </table>
                        </div>
                </div>
        </div>
        #if($currentInventorySnapshot.size() > 0)
        <div class="row" id="good-inventory-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>