Subversion Repositories SmartDukaan

Rev

Rev 28301 | Rev 28343 | 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>
28270 tejbeer 2
.grab {
3
	cursor: grab;
4
}
26732 amit.gupta 5
 
28270 tejbeer 6
.grabbed {
7
	box-shadow: 0 0 13px #000;
8
}
26732 amit.gupta 9
 
28270 tejbeer 10
.grabCursor, .grabCursor * {
11
	cursor: grabbing !important;
12
}
13
</style>
26732 amit.gupta 14
 
28270 tejbeer 15
<script>
16
	$(".edit-web-listing").click(function() {
17
		$("#web-editable-container").modal({
18
			backdrop : false
19
		});
20
 
21
	});
22
</script>
23
 
26732 amit.gupta 24
<section class="wrapper">
25
	<div class="row">
26
		<div class="col-lg-12">
28270 tejbeer 27
			<h3 class="page-header">
28
				<i class="icon_document_alt"></i>Web Listing
29
			</h3>
26732 amit.gupta 30
			<ol class="breadcrumb">
28270 tejbeer 31
				<li><i class="fa fa-home"></i><a
32
					href="${rc.contextPath}/dashboard">Home</a></li>
26732 amit.gupta 33
				<li><i class="icon_document_alt"></i>Web Listing</li>
34
			</ol>
35
		</div>
36
	</div>
37
	<div class="col-lg-6">
38
		<div class="row">
28270 tejbeer 39
			<form class="form-inline"
40
				onsubmit="event.preventDefault();addWebListing();">
41
				<div class="form-group">
42
					<label for="web-listing-title">Title</label> <input type="text"
43
						class="form-control" id="web-listing-title"
44
						placeholder="Best Sellers">
45
				</div>
46
				<div class="form-group">
47
					<label for="web-listing-url">Url</label> <input
48
						class="form-control" id="web-listing-url"
49
						placeholder="best-sellers">
50
				</div>
51
 
52
				<div class="form-group">
53
					<label for="web-listing-url">Rank</label> <input
54
						class="form-control" id="web-listing-rank" placeholder="Rank">
55
				</div>
28301 tejbeer 56
				<div class="form-group" style="margin-top: 15px">
57
					<div class="form-group">
58
						<label for="web-listing-bannerurl">Banner Url</label> <input
59
							class="form-control" id="web-listing-bannerurl"
60
							placeholder="Banner Url">
61
					</div>
62
					<button type="submit" class="btn btn-default">Add</button>
63
				</div>
26732 amit.gupta 64
			</form>
28270 tejbeer 65
 
66
			<div class="col-lg-4" style="padding: 15px">
67
				<button id="weblisting-update-rank" disabled class="btn btn-default"
68
					type="button">Update Rank</button>
69
			</div>
70
 
26732 amit.gupta 71
		</div>
28270 tejbeer 72
 
26732 amit.gupta 73
		<div class="row">
28270 tejbeer 74
			<table class="table table-border table-condensed table-bordered"
75
				id="catalog-feature-table">
26732 amit.gupta 76
				<thead>
77
					<tr>
26738 amit.gupta 78
						<th>Id</th>
79
						<th>Title</th>
80
						<th>Rank</th>
81
						<th>Url</th>
28301 tejbeer 82
						<th>Banner Url</th>
28270 tejbeer 83
						<th>Active</th>
84
						<th>Edit</th>
26732 amit.gupta 85
					</tr>
86
				</thead>
28270 tejbeer 87
				<tbody id="web-listing-tbody">
88
					#foreach($webListing in $webListings)
27873 amit.gupta 89
					<tr class="grab" data-id="$webListing.getId()">
26738 amit.gupta 90
						<td>$webListing.getId()</td>
28270 tejbeer 91
						<td><a href="javascript:void(0)"
92
							data-id="$webListing.getId()" class="listing-details">$webListing.getTitle()</a></td>
26738 amit.gupta 93
						<td>$webListing.getRank()</td>
28301 tejbeer 94
						<td>$webListing.getUrl()</td> #if($webListing.getBannerUrl())
95
						<td>$webListing.getBannerUrl()</td> #else
96
						<td></td> #end #if($webListing.isActive())
28270 tejbeer 97
						<td><a data-id="$webListing.getId()"
28342 tejbeer 98
							data-active="$webListing.isActive()" class="web-listing-active">Mark
99
								InActive</a></td> #else
28270 tejbeer 100
						<td><a data-id="$webListing.getId()"
28342 tejbeer 101
							data-active="$webListing.isActive()" class="web-listing-active">Mark
102
								Active</a></td> #end
28270 tejbeer 103
						<td><a data-id="$webListing.getId()"
104
							data-target="#web-listing-edit-modal" data-toggle="modal"
105
							class="web-listing-id">edit</a></td>
26732 amit.gupta 106
					</tr>
28270 tejbeer 107
					#end
108
 
109
 
26732 amit.gupta 110
				</tbody>
111
			</table>
112
		</div>
113
	</div>
26738 amit.gupta 114
	<div class="col-lg-6">
115
		<div id="feature-table">
116
			<div class="row">
28270 tejbeer 117
				<div class="col-lg-12 web-products-container"></div>
118
			</div>
26738 amit.gupta 119
		</div>
120
	</div>
28270 tejbeer 121
</section>
26732 amit.gupta 122
 
28270 tejbeer 123
<div class="web-listing-edit-container">
26732 amit.gupta 124
 
28270 tejbeer 125
	<div id="web-listing-edit-modal" class="modal"
126
		id="web-editable-container" role="dialog">
127
		<div class="modal-dialog modal-md">
128
			<!-- Modal content-->
28301 tejbeer 129
			<div class="modal-content" style="width: 900px; height: 300px;"></div>
28270 tejbeer 130
		</div>
131
	</div>
132
</div>
133
 
134
<script type="text/javascript">
135
	$(document).ready(function() {
136
		$('#catalog-feature-table').DataTable({
137
			"bPaginate" : true,
138
			"bLengthChange" : true,
139
			"bFilter" : true,
140
			"bInfo" : false,
141
			"bAutoWidth" : false,
142
			"pageLength" : 100
143
		});
144
	});
145
</script>