Subversion Repositories SmartDukaan

Rev

Rev 28566 | Rev 31447 | 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">
28567 tejbeer 58
						<label for="web-listing-bannerurl">Banner Url</label>(365*183)<input
28301 tejbeer 59
							class="form-control" id="web-listing-bannerurl"
60
							placeholder="Banner Url">
61
					</div>
28566 tejbeer 62
 
63
					<div class="form-group">
28567 tejbeer 64
						<label for="web-listing-headerurl">Header Url</label>(272*405)<input
28566 tejbeer 65
							class="form-control" id="web-listing-headerurl"
66
							placeholder="Header Url">
67
					</div>
28301 tejbeer 68
					<button type="submit" class="btn btn-default">Add</button>
69
				</div>
26732 amit.gupta 70
			</form>
28270 tejbeer 71
 
72
			<div class="col-lg-4" style="padding: 15px">
73
				<button id="weblisting-update-rank" disabled class="btn btn-default"
74
					type="button">Update Rank</button>
75
			</div>
76
 
26732 amit.gupta 77
		</div>
28270 tejbeer 78
 
26732 amit.gupta 79
		<div class="row">
28270 tejbeer 80
			<table class="table table-border table-condensed table-bordered"
81
				id="catalog-feature-table">
26732 amit.gupta 82
				<thead>
83
					<tr>
26738 amit.gupta 84
						<th>Id</th>
85
						<th>Title</th>
86
						<th>Rank</th>
87
						<th>Url</th>
28301 tejbeer 88
						<th>Banner Url</th>
28270 tejbeer 89
						<th>Active</th>
90
						<th>Edit</th>
26732 amit.gupta 91
					</tr>
92
				</thead>
28270 tejbeer 93
				<tbody id="web-listing-tbody">
94
					#foreach($webListing in $webListings)
27873 amit.gupta 95
					<tr class="grab" data-id="$webListing.getId()">
26738 amit.gupta 96
						<td>$webListing.getId()</td>
28270 tejbeer 97
						<td><a href="javascript:void(0)"
98
							data-id="$webListing.getId()" class="listing-details">$webListing.getTitle()</a></td>
26738 amit.gupta 99
						<td>$webListing.getRank()</td>
28301 tejbeer 100
						<td>$webListing.getUrl()</td> #if($webListing.getBannerUrl())
101
						<td>$webListing.getBannerUrl()</td> #else
102
						<td></td> #end #if($webListing.isActive())
28270 tejbeer 103
						<td><a data-id="$webListing.getId()"
28342 tejbeer 104
							data-active="$webListing.isActive()" class="web-listing-active">Mark
105
								InActive</a></td> #else
28270 tejbeer 106
						<td><a data-id="$webListing.getId()"
28342 tejbeer 107
							data-active="$webListing.isActive()" class="web-listing-active">Mark
108
								Active</a></td> #end
28270 tejbeer 109
						<td><a data-id="$webListing.getId()"
110
							data-target="#web-listing-edit-modal" data-toggle="modal"
111
							class="web-listing-id">edit</a></td>
26732 amit.gupta 112
					</tr>
28270 tejbeer 113
					#end
114
 
115
 
26732 amit.gupta 116
				</tbody>
117
			</table>
118
		</div>
119
	</div>
26738 amit.gupta 120
	<div class="col-lg-6">
121
		<div id="feature-table">
122
			<div class="row">
28270 tejbeer 123
				<div class="col-lg-12 web-products-container"></div>
124
			</div>
26738 amit.gupta 125
		</div>
126
	</div>
28270 tejbeer 127
</section>
26732 amit.gupta 128
 
28270 tejbeer 129
<div class="web-listing-edit-container">
26732 amit.gupta 130
 
28270 tejbeer 131
	<div id="web-listing-edit-modal" class="modal"
132
		id="web-editable-container" role="dialog">
133
		<div class="modal-dialog modal-md">
134
			<!-- Modal content-->
28343 tejbeer 135
			<div class="modal-content" style="width: 800px; height: 200px;"></div>
28270 tejbeer 136
		</div>
137
	</div>
138
</div>
139
 
140
<script type="text/javascript">
141
	$(document).ready(function() {
142
		$('#catalog-feature-table').DataTable({
143
			"bPaginate" : true,
144
			"bLengthChange" : true,
145
			"bFilter" : true,
146
			"bInfo" : false,
147
			"bAutoWidth" : false,
148
			"pageLength" : 100
149
		});
150
	});
151
</script>