Subversion Repositories SmartDukaan

Rev

Rev 27873 | Rev 28301 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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