-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathin-action-grid-pages.html
354 lines (340 loc) · 19.6 KB
/
in-action-grid-pages.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Centurion UI > CRUD > Grid</title>
<link type="text/css" media="all" rel="stylesheet" href="layouts/backoffice/styles.css" />
<script type="text/javascript" src="cui/libs/jquery.js"></script>
<script type="text/javascript" src="cui/jquery.CUI.js"></script>
<script type="text/javascript" src="layouts/backoffice/js/all.js"></script>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript">
$(function() {
$(".jstree").CUI('tree', {
plugins : {
contextmenu : {
items : {
create : {
label : "Create into",
icon : "create",
visible : function (NODE, TREE_OBJ) {
if(NODE.length != 1) return 0;
return TREE_OBJ.check("creatable", NODE);
},
action : function (NODE, TREE_OBJ) {
TREE_OBJ.create(false, TREE_OBJ.get_node(NODE[0]));
NODE.find("a.clicked")
.addClass("page hidden")
.after('<div class="cells"><div class="online"><select selected="0" class="on-off" name="is_published-4" style="display: none;"><option value="0">Offline</option><option value="1">Online</option></select><span class="switch-0">0</span></div><div class="date">2010-01-12 17:05</div><div class="actions"><a href="/cms/admin-flatpage/new?flatpage_id=1">Translate</a> | <a href="/cms/admin-flatpage/1">Edit</a> | <a href="/cms/admin-flatpage/1" class="zf-actions-delete">Delete</a></div><div class="clear"></div></div>');
},
separator_after : false
},
rename : {
label : "Rename",
icon : "rename",
visible : function (NODE, TREE_OBJ) {
if(NODE.length != 1) return false;
return TREE_OBJ.check("renameable", NODE);
},
action : function (NODE, TREE_OBJ) {
TREE_OBJ.rename(NODE);
}
},
hide : {
label : "Unpublish",
icon : "hide",
visible : function (NODE, TREE_OBJ) {
if(NODE.length != 1) return false;
if(NODE.find("a.page").hasClass("hidden")) return false;
//return TREE_OBJ.check("renameable", NODE);
},
action : function (NODE, TREE_OBJ) {
NODE.find("a.page").addClass("hidden");
//TREE_OBJ.rename(NODE);
}
},
publish : {
label : "Publish",
icon : "publish",
visible : function (NODE, TREE_OBJ) {
if(NODE.length != 1) return false;
if(NODE.find("a.page").not(".hidden").length) return false;
//return TREE_OBJ.check("renameable", NODE);
},
action : function (NODE, TREE_OBJ) {
NODE.find("a.page").removeClass("hidden");
//TREE_OBJ.rename(NODE);
}
},
hideMenu : {
label : "Hide in menu",
icon : "hide-menu",
visible : function (NODE, TREE_OBJ) {
if(NODE.length != 1) return false;
if(NODE.find("a.page").hasClass("hidden-menu")) return false;
//return TREE_OBJ.check("renameable", NODE);
},
action : function (NODE, TREE_OBJ) {
NODE.find("a.page").addClass("hidden-menu");
//TREE_OBJ.rename(NODE);
}
},
appearMenu : {
label : "Appear in menu",
icon : "appear-menu",
visible : function (NODE, TREE_OBJ) {
if(NODE.length != 1) return false;
if(NODE.find("a.page").not(".hidden-menu").length) return false;
//return TREE_OBJ.check("renameable", NODE);
},
action : function (NODE, TREE_OBJ) {
NODE.find("a.page").removeClass("hidden-menu");
//TREE_OBJ.rename(NODE);
}
},
edit : {
label : "Edit properties",
icon : "edit",
visible : function (NODE, TREE_OBJ) {
if(NODE.length != 1) return false;
return TREE_OBJ.check("renameable", NODE);
},
action : function (NODE, TREE_OBJ) {
window.location.replace(NODE.find("a.page").attr("href"));
//TREE_OBJ.rename(NODE);
}
},
remove : {
label : "Delete",
icon : "remove",
visible : function (NODE, TREE_OBJ) {
var ok = true;
$.each(NODE, function () {
if(TREE_OBJ.check("deletable", this) == false) {
ok = false;
return false;
}
});
return ok;
},
action : function (NODE, TREE_OBJ) {
$.each(NODE, function () {
TREE_OBJ.remove(this);
});
}
}
}
}
}
});
$(".field-switcher").CUI("switcher");
});
</script>
</head>
<body id="grid" class="toggle-sidebars">
<header class="h">
<h1><a href="#">Centurion - Back Office</a></h1>
<nav>
<ul class="main">
<li class="active"><a href="#" class="hover">Contents</a></li>
<li><a href="#">Users</a></li>
<li><a href="#">Pages</a></li>
<li><a href="#">Settings</a></li>
<li class="selecter"><a href="#"><span class="icon arrow"></span>Sites</a>
<ul>
<li><a href="#">French</a></li>
<li><a href="#">United Kingdom</a></li>
</ul>
</li>
</ul>
<span class="user">
<span class="icon"></span>
Robert Octave, <a href="#">Log out</a> | <a href="#">View website</a>
</span>
</nav>
<form class="search">
<div>
<input type="text" class="q" name="q" placeholder="Search" value="Search" />
<input type="image" class="icon valid" name="valid" value="Valid" src="/layout/backoffice/images/px.png" />
</div>
</form>
</header>
<section>
<nav>
<div class="jstree">
<ul class="tree-default">
<li class="open root"><span><ins> </ins>Sitemap</span>
<ul class="open">
<li>
<a href="in-action-form.html" class="page"><ins> </ins>Homepage</a>
</li>
<li>
<a href="in-action-form.html" class="page"><ins> </ins>About</a>
</li>
<li>
<a href="in-action-form.html" class="page"><ins> </ins>Blog</a>
<ul class="open">
<li>
<a href="in-action-form.html" class="page"><ins> </ins>Tutorials</a>
</li>
<li>
<a href="in-action-form.html" class="page"><ins> </ins>Web trends</a>
</li>
<li>
<a href="in-action-form.html" class="page hidden"><ins> </ins>General</a>
</li>
</ul>
</li>
<li>
<a href="in-action-form.html" class="page"><ins> </ins>Contact</a>
</li>
</ul>
</li>
</ul>
</div>
</nav>
<header class="sh">
<div class="ui-button-big">
<a href="#" class="ui-button ui-button-bg-white ui-button-text-red ui-button-text-only">
<span class="ui-button-text">Add a new game</span>
</a>
</div>
<h1>Manage pages</h1>
</header>
<aside>
<div class="box grid-filter">
<h2>Filters</h2>
<div class="filter filter-open" id="filter-id-0">
<h3><span class="arrow"></span>Filter by name</h3>
<div class="in">
<input name="filter-id-0" id="filter-id-0" value="" type="text">
</div>
</div>
<div class="filter filter-open" id="filter-id-1">
<h3><span class="arrow"></span>Filter by status</h3>
<div class="in">
<input name="filter-id-1" id="filter-id-1" value="0" type="radio">All<br>
<input name="filter-id-1" id="filter-id-1" value="1" type="radio">Offline<br>
<input name="filter-id-1" id="filter-id-1" value="2" type="radio">Online<br>
</div>
</div>
</div>
</aside>
<section>
<p>Pour réordonner les éléments d'un menu, utilisez la technique du glisser/déposer dans la colonne Eléments du
menu et déplacer les éléments dans la liste. Attention, les changements ne seront pas enregistrés tant vous
n'aurez pas cliqué sur le bouton Enregistrer la configuration en bas de la page.</p>
<div class="grid pages">
<div class="heading">
Title
<div class="cells">
<div class="online">Is published</div>
<div class="date">At</div>
<div class="actions">Actions</div>
<div class="clear"></div>
</div>
</div>
<div class="jstree">
<ul class="tree">
<li>
<a href="in-action-form.html" class="page"><ins> </ins>Homepage</a>
<div class="cells">
<div class="online"><select selected="1" class="field-switcher" name="is_published-4"><option value="0">Offline</option><option value="1">Online</option></select></div>
<div class="date">Sep 25, 2009</div>
<div class="actions">
<a href="in-action-form.html" class="help" title="Edit"><span class="ui-icon ui-icon-pencil">Edit properties</span></a>
<a href="in-action-form.html" class="help" title="Translate"><span class="ui-icon ui-icon-flag">Translate</span></a>
<a onclick="return confirm('Are you sure? This operation can not be undone');" href="in-action-form.html" class="help" title="Delete"><span class="ui-icon ui-icon-close">Delete</span></a>
</div>
<div class="clear"></div>
</div>
</li>
<li>
<a href="in-action-form.html" class="page loading"><ins> </ins>About</a>
<div class="cells">
<div class="online"><select selected="1" class="field-switcher" name="is_published-4"><option value="0">Offline</option><option value="1">Online</option></select></div>
<div class="date">Sep 25, 2009</div>
<div class="actions">
<a href="in-action-form.html" class="help" title="Edit"><span class="ui-icon ui-icon-pencil">Edit properties</span></a>
<a href="in-action-form.html" class="help" title="Translate"><span class="ui-icon ui-icon-flag">Translate</span></a>
<a onclick="return confirm('Are you sure? This operation can not be undone');" href="in-action-form.html" class="help" title="Delete"><span class="ui-icon ui-icon-close">Delete</span></a>
</div>
<div class="clear"></div>
</div>
</li>
<li>
<a href="in-action-form.html" class="page"><ins> </ins>Blog</a>
<div class="cells">
<div class="online"><select selected="1" class="field-switcher" name="is_published-4"><option value="0">Offline</option><option value="1">Online</option></select></div>
<div class="date">Sep 24, 2009</div>
<div class="actions">
<a href="in-action-form.html" class="help" title="Edit"><span class="ui-icon ui-icon-pencil">Edit properties</span></a>
<a href="in-action-form.html" class="help" title="Translate"><span class="ui-icon ui-icon-flag">Translate</span></a>
<a onclick="return confirm('Are you sure? This operation can not be undone');" href="in-action-form.html" class="help" title="Delete"><span class="ui-icon ui-icon-close">Delete</span></a>
</div>
<div class="clear"></div>
</div>
<ul class="open">
<li>
<a href="in-action-form.html" class="page"><ins> </ins>Tutorials</a>
<div class="cells">
<div class="online"><select selected="1" class="field-switcher" name="is_published-4"><option value="0">Offline</option><option value="1">Online</option></select></div>
<div class="date">Sep 23, 2009</div>
<div class="actions">
<a href="in-action-form.html" class="help" title="Edit"><span class="ui-icon ui-icon-pencil">Edit properties</span></a>
<a href="in-action-form.html" class="help" title="Translate"><span class="ui-icon ui-icon-flag">Translate</span></a>
<a onclick="return confirm('Are you sure? This operation can not be undone');" href="in-action-form.html" class="help" title="Delete"><span class="ui-icon ui-icon-close">Delete</span></a>
</div>
<div class="clear"></div>
</div>
</li>
<li>
<a href="in-action-form.html" class="page"><ins> </ins>Web trends</a>
<div class="cells">
<div class="online"><select selected="1" class="field-switcher" name="is_published-4"><option value="0">Offline</option><option value="1">Online</option></select></div>
<div class="date">Sep 22, 2009</div>
<div class="actions">
<a href="in-action-form.html" class="help" title="Edit"><span class="ui-icon ui-icon-pencil">Edit properties</span></a>
<a href="in-action-form.html" class="help" title="Translate"><span class="ui-icon ui-icon-flag">Translate</span></a>
<a onclick="return confirm('Are you sure? This operation can not be undone');" href="in-action-form.html" class="help" title="Delete"><span class="ui-icon ui-icon-close">Delete</span></a>
</div>
<div class="clear"></div>
</div>
</li>
<li>
<a href="in-action-form.html" class="page hidden"><ins> </ins>General</a>
<div class="cells">
<div class="online"><select selected="0" class="field-switcher" name="is_published-4"><option value="0">Offline</option><option value="1">Online</option></select></div>
<div class="date">Sep 21, 2009</div>
<div class="actions">
<a href="in-action-form.html"" class="help" title="Edit"><span class="ui-icon ui-icon-pencil">Edit properties</span></a>
<a href="in-action-form.html"" class="help" title="Translate"><span class="ui-icon ui-icon-flag">Translate</span></a>
<a onclick="return confirm('Are you sure? This operation can not be undone');" href="in-action-form.html"" class="help" title="Delete"><span class="ui-icon ui-icon-close">Delete</span></a>
</div>
<div class="clear"></div>
</div>
</li>
</ul>
</li>
<li>
<a href="in-action-form.html" class="page"><ins> </ins>Contact</a>
<div class="cells">
<div class="online"><select selected="1" class="field-switcher" name="is_published-4"><option value="0">Offline</option><option value="1">Online</option></select></div>
<div class="date">Sep 20, 2009</div>
<div class="actions">
<a href="in-action-form.html"" class="help" title="Edit"><span class="ui-icon ui-icon-pencil">Edit properties</span></a>
<a href="in-action-form.html"" class="help" title="Translate"><span class="ui-icon ui-icon-flag">Translate</span></a>
<a onclick="return confirm('Are you sure? This operation can not be undone');" href="in-action-form.html"" class="help" title="Delete"><span class="ui-icon ui-icon-close">Delete</span></a>
</div>
<div class="clear"></div>
</div>
</li>
</ul>
</div>
</div>
</section>
</section>
</body>
</html>