Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
27873 amit.gupta 1
<style>
2
.grab { cursor: grab; }
3
.grabbed { box-shadow: 0 0 13px #000; }
4
.grabCursor, .grabCursor * { cursor: grabbing !important; }
5
</style>	
26732 amit.gupta 6
 
7
 
8
 
9
<section class="wrapper">
10
	<div class="row">
11
		<div class="col-lg-12">
12
			<h3 class="page-header"><i class="icon_document_alt"></i>Web Listing</h3>
13
			<ol class="breadcrumb">
14
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
15
				<li><i class="icon_document_alt"></i>Web Listing</li>
16
			</ol>
17
		</div>
18
	</div>
19
	<div class="col-lg-6">
20
		<div class="row">
26745 amit.gupta 21
			<form class="form-inline" onsubmit="event.preventDefault();addWebListing();">
26732 amit.gupta 22
			  <div class="form-group">
23
			    <label for="web-listing-title">Title</label>
24
			    <input type="text" class="form-control" id="web-listing-title" placeholder="Best Sellers">
25
			  </div>
26
			  <div class="form-group">
27
			    <label for="web-listing-url">Url</label>
28
			    <input class="form-control" id="web-listing-url" placeholder="best-sellers">
29
			  </div>
26738 amit.gupta 30
			  <button type="submit" class="btn btn-default">Add</button>
26732 amit.gupta 31
			</form>
32
		</div>
33
		<div class="row">
34
			<table class="table table-border table-condensed table-bordered" id="catalog-feature-table">
35
				<thead>
36
					<tr>
26738 amit.gupta 37
						<th>Id</th>
38
						<th>Title</th>
39
						<th>Rank</th>
40
						<th>Url</th>
26732 amit.gupta 41
						<th>Actions</th>
42
					</tr>
43
				</thead>
44
				<tbody>
45
				#foreach($webListing in $webListings)
27873 amit.gupta 46
					<tr class="grab" data-id="$webListing.getId()">
26738 amit.gupta 47
						<td>$webListing.getId()</td>
26739 amit.gupta 48
						<td><a href="javascript:void(0)" data-id="$webListing.getId()" class="listing-details">$webListing.getTitle()</a></td>
26738 amit.gupta 49
						<td>$webListing.getRank()</td>
50
						<td>$webListing.getUrl()</td>
26732 amit.gupta 51
						<td></td>
52
					</tr>
53
				#end
54
				</tbody>
55
			</table>
56
		</div>
57
	</div>
26738 amit.gupta 58
	<div class="col-lg-6">
59
		<div id="feature-table">
60
			<div class="row">
61
    			<div class="col-lg-12 web-products-container">
62
	    		</div>
63
		    </div>
64
		</div>
65
	</div>
26732 amit.gupta 66
 </section>
67
 <script type="text/javascript">
68
 	$(document).ready(function() {
69
 	  $('#catalog-feature-table').DataTable(
70
  {
71
 
72
    "bPaginate": true,
73
    "bLengthChange": true,
74
    "bFilter": true,
75
    "bInfo": false,
76
    "bAutoWidth": false ,
77
 
78
    }
79
 
80
  );
81
 
82
} );
83
</script>
84