| 34859 |
vikas |
1 |
<style>
|
|
|
2 |
.modal-body {
|
|
|
3 |
overflow-y: auto;
|
|
|
4 |
max-height: calc(100vh - 200px);
|
|
|
5 |
}
|
|
|
6 |
</style>
|
|
|
7 |
<section class="wrapper">
|
|
|
8 |
<div class="row">
|
|
|
9 |
<div class="col-lg-12">
|
|
|
10 |
<h3 class="page-header"><i class="icon_document_alt"></i>Page Sections</h3>
|
|
|
11 |
<ol class="breadcrumb">
|
|
|
12 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Dashboard</a></li>
|
|
|
13 |
<li><i class="icon_document_alt"></i>Pages</li>
|
|
|
14 |
<li class="pull-right">
|
| 34949 |
vikas |
15 |
<button class="btn btn-primary map-catalog" type="button" data-toggle="modal" data-target="#managePagesModal">
|
| 34859 |
vikas |
16 |
<i class="icon_document_alt"></i>Create New</button>
|
|
|
17 |
</li>
|
|
|
18 |
</ol>
|
|
|
19 |
</div>
|
|
|
20 |
</div>
|
|
|
21 |
<div class="table-responsive">
|
|
|
22 |
<table class="table table-bordered" id="pages-list">
|
|
|
23 |
<thead>
|
|
|
24 |
<tr>
|
|
|
25 |
<th>#</th>
|
|
|
26 |
<th>Name</th>
|
|
|
27 |
<th>Action</th>
|
|
|
28 |
</tr>
|
|
|
29 |
</thead>
|
|
|
30 |
<tbody>
|
|
|
31 |
#if($pages.size() > 0)
|
|
|
32 |
#foreach($page in $pages)
|
|
|
33 |
<tr data-id="$page.getId()">
|
|
|
34 |
<td>$page.getId()</td>
|
|
|
35 |
<td>$page.getTitle()</td>
|
|
|
36 |
<td data-id="$page.getId()">
|
|
|
37 |
<button class="btn btn-primary view-page"><i class="fa fa-eye" title="View"></i></button>
|
|
|
38 |
<button class="btn btn-danger delete-page"><i class="fa fa-trash" title="Delete"></i></button>
|
|
|
39 |
</td>
|
|
|
40 |
</tr>
|
|
|
41 |
#end
|
|
|
42 |
#else
|
|
|
43 |
<tr>
|
|
|
44 |
<td colspan="3">No pages available.</td>
|
|
|
45 |
</tr>
|
|
|
46 |
#end
|
|
|
47 |
</tbody>
|
|
|
48 |
</table>
|
|
|
49 |
</div>
|
|
|
50 |
</section>
|
|
|
51 |
|
|
|
52 |
<div id="managePagesModal" class="modal" role="dialog">
|
|
|
53 |
<div class="modal-dialog modal-lg">
|
|
|
54 |
<div class="modal-content">
|
|
|
55 |
<div class="modal-header">
|
|
|
56 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
57 |
<h4 class="modal-title">Manage page</h4>
|
|
|
58 |
</div>
|
| 34949 |
vikas |
59 |
<div class="modal-body" id="managePagesModalBody">
|
| 34859 |
vikas |
60 |
<input type="hidden" id="imgURL" value="$imgURL">
|
|
|
61 |
<input type="hidden" id="id" value="0">
|
|
|
62 |
<div class="row">
|
|
|
63 |
<div class="col-md-3">
|
|
|
64 |
<div class="form-group">
|
|
|
65 |
<label for="group">Existing Group</label>
|
|
|
66 |
<select id="group" class="form-control">
|
|
|
67 |
<option value="">Select</option>
|
|
|
68 |
#foreach($page in $pages)
|
|
|
69 |
<option value="$page.getId()">$page.getTitle()</option>
|
|
|
70 |
#end
|
|
|
71 |
</select>
|
|
|
72 |
</div>
|
|
|
73 |
</div>
|
|
|
74 |
<div class="col-md-3 optional">
|
|
|
75 |
<div class="form-group">
|
|
|
76 |
<label for="title">Section Heading</label>
|
|
|
77 |
<input id="title" class="form-control" placeholder="Section Heading">
|
|
|
78 |
</div>
|
|
|
79 |
</div>
|
|
|
80 |
<div class="col-md-3 optional">
|
|
|
81 |
<div class="form-group">
|
|
|
82 |
<label for="section_order">Section Order</label>
|
|
|
83 |
<input type="number" id="section_order" class="form-control" placeholder="Section Order">
|
|
|
84 |
</div>
|
|
|
85 |
</div>
|
|
|
86 |
<div class="col-md-3">
|
|
|
87 |
<div class="form-group">
|
|
|
88 |
<label for="style">Select Style</label>
|
|
|
89 |
<select id="style" class="form-control">
|
|
|
90 |
<option value="" selected>Select</option>
|
|
|
91 |
<option value="leftHero">Left</option>
|
|
|
92 |
<option value="rightHero">Right</option>
|
|
|
93 |
<option value="centerHero">Center</option>
|
| 34949 |
vikas |
94 |
<option value="doubleHero">Dual Banner</option>
|
|
|
95 |
<option value="singleHero">Single Banner</option>
|
| 34859 |
vikas |
96 |
</select>
|
|
|
97 |
</div>
|
|
|
98 |
</div>
|
|
|
99 |
<div class="col-md-4 optional">
|
|
|
100 |
<div class="form-group">
|
|
|
101 |
<label for="visible_on">Show On</label>
|
|
|
102 |
<select id="visible_on" class="form-control">
|
|
|
103 |
<option value="Home">Home</option>
|
|
|
104 |
</select>
|
|
|
105 |
</div>
|
|
|
106 |
</div>
|
|
|
107 |
<div class="col-md-4 optional">
|
|
|
108 |
<div class="form-group">
|
|
|
109 |
<label for="below">Below List</label>
|
|
|
110 |
<select id="below" class="form-control">
|
|
|
111 |
<option value="" selected>Select</option>
|
|
|
112 |
#foreach($list in $webListing)
|
| 34949 |
vikas |
113 |
<option value="$list.getTitle()">$list.getTitle()</option>
|
| 34859 |
vikas |
114 |
#end
|
|
|
115 |
</select>
|
|
|
116 |
</div>
|
|
|
117 |
</div>
|
|
|
118 |
<div class="col-md-4">
|
|
|
119 |
<div class="form-group">
|
|
|
120 |
<label for="tabTitle">Tab Title</label>
|
|
|
121 |
<input id="tabTitle" class="form-control" placeholder="Tab Title">
|
|
|
122 |
</div>
|
|
|
123 |
</div>
|
|
|
124 |
</div>
|
|
|
125 |
<div class="table-responsive style-container"></div>
|
|
|
126 |
</div>
|
|
|
127 |
<div class="modal-footer">
|
|
|
128 |
<span class="pull-left">
|
|
|
129 |
<input id="status" type="checkbox">
|
|
|
130 |
<label for="status">Active?</label>
|
|
|
131 |
</span>
|
|
|
132 |
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
|
|
|
133 |
<button type="button" class="btn btn-primary save_page">Save</button>
|
|
|
134 |
</div>
|
|
|
135 |
</div>
|
|
|
136 |
</div>
|
|
|
137 |
</div>
|