Subversion Repositories SmartDukaan

Rev

Rev 26745 | Rev 28301 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<style>
.grab { cursor: grab; }
.grabbed { box-shadow: 0 0 13px #000; }
.grabCursor, .grabCursor * { cursor: grabbing !important; }
</style>        



<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>Web Listing</h3>
                        <ol class="breadcrumb">
                                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                                <li><i class="icon_document_alt"></i>Web Listing</li>
                        </ol>
                </div>
        </div>
        <div class="col-lg-6">
                <div class="row">
                        <form class="form-inline" onsubmit="event.preventDefault();addWebListing();">
                          <div class="form-group">
                            <label for="web-listing-title">Title</label>
                            <input type="text" class="form-control" id="web-listing-title" placeholder="Best Sellers">
                          </div>
                          <div class="form-group">
                            <label for="web-listing-url">Url</label>
                            <input class="form-control" id="web-listing-url" placeholder="best-sellers">
                          </div>
                          <button type="submit" class="btn btn-default">Add</button>
                        </form>
                </div>
                <div class="row">
                        <table class="table table-border table-condensed table-bordered" id="catalog-feature-table">
                                <thead>
                                        <tr>
                                                <th>Id</th>
                                                <th>Title</th>
                                                <th>Rank</th>
                                                <th>Url</th>
                                                <th>Actions</th>
                                        </tr>
                                </thead>
                                <tbody>
                                #foreach($webListing in $webListings)
                                        <tr class="grab" data-id="$webListing.getId()">
                                                <td>$webListing.getId()</td>
                                                <td><a href="javascript:void(0)" data-id="$webListing.getId()" class="listing-details">$webListing.getTitle()</a></td>
                                                <td>$webListing.getRank()</td>
                                                <td>$webListing.getUrl()</td>
                                                <td></td>
                                        </tr>
                                #end
                                </tbody>
                        </table>
                </div>
        </div>
        <div class="col-lg-6">
                <div id="feature-table">
                        <div class="row">
                        <div class="col-lg-12 web-products-container">
                        </div>
                    </div>
                </div>
        </div>
 </section>
 <script type="text/javascript">
        $(document).ready(function() {
          $('#catalog-feature-table').DataTable(
  {
 
    "bPaginate": true,
    "bLengthChange": true,
    "bFilter": true,
    "bInfo": false,
    "bAutoWidth": false ,
     
    }
     
  );

} );
</script>