Lines 1-3
Link Here
|
|
|
1 |
[% USE raw %] |
1 |
[% USE KohaDates %] |
2 |
[% USE KohaDates %] |
2 |
[% USE Koha %] |
3 |
[% USE Koha %] |
3 |
[% USE Asset %] |
4 |
[% USE Asset %] |
Lines 8-14
Link Here
|
8 |
<title>Koha › Tools › Pages</title> |
9 |
<title>Koha › Tools › Pages</title> |
9 |
[% INCLUDE 'doc-head-close.inc' %] |
10 |
[% INCLUDE 'doc-head-close.inc' %] |
10 |
[% Asset.css("css/datatables.css") %] |
11 |
[% Asset.css("css/datatables.css") %] |
11 |
[% INCLUDE 'datatables.inc' %] |
|
|
12 |
</head> |
12 |
</head> |
13 |
<body id="tools_koha-content" class="tools"> |
13 |
<body id="tools_koha-content" class="tools"> |
14 |
[% INCLUDE 'header.inc' %] |
14 |
[% INCLUDE 'header.inc' %] |
Lines 98-104
Link Here
|
98 |
<legend>Page</legend> |
98 |
<legend>Page</legend> |
99 |
<ol> |
99 |
<ol> |
100 |
<li> |
100 |
<li> |
101 |
<label for="disp">Display location:</label> |
101 |
<label for="disp">Interface:</label> |
102 |
<select id="disp" name="disp"> |
102 |
<select id="disp" name="disp"> |
103 |
[% IF ( data.location == "" ) %]<option value="" selected="selected">All</option>[% ELSE %]<option value="">All</option>[% END %] |
103 |
[% IF ( data.location == "" ) %]<option value="" selected="selected">All</option>[% ELSE %]<option value="">All</option>[% END %] |
104 |
[% IF ( data.location == "1" ) %]<option value="1" selected="selected">Staff interface</option>[% ELSE %]<option value="1">Staff interface</option>[% END %] |
104 |
[% IF ( data.location == "1" ) %]<option value="1" selected="selected">Staff interface</option>[% ELSE %]<option value="1">Staff interface</option>[% END %] |
Lines 201-207
Link Here
|
201 |
<th> </th> |
201 |
<th> </th> |
202 |
<th>Published</th> |
202 |
<th>Published</th> |
203 |
<th>Parent</th> |
203 |
<th>Parent</th> |
204 |
<th>Location</th> |
204 |
<th>Interface</th> |
205 |
<th>Library</th> |
205 |
<th>Library</th> |
206 |
<th>Language</th> |
206 |
<th>Language</th> |
207 |
<th>Number</th> |
207 |
<th>Number</th> |
Lines 210-217
Link Here
|
210 |
<th> </th> |
210 |
<th> </th> |
211 |
</tr></thead> |
211 |
</tr></thead> |
212 |
<tbody>[% FOREACH page IN page_list %] |
212 |
<tbody>[% FOREACH page IN page_list %] |
213 |
<tr> |
213 |
<tr id="[% page.id %]"> |
214 |
<td><input type="checkbox" name="ids" id="ids" value="[% page.id %]" /></td> |
214 |
<td><input type="checkbox" name="ids" id="ids" value="[% page.id %]"></td> |
215 |
<td>[% IF ( page.publish ) %]Yes[% ELSE %]No[% END %]</td> |
215 |
<td>[% IF ( page.publish ) %]Yes[% ELSE %]No[% END %]</td> |
216 |
<td>[% page.parent.title_link %]</td> |
216 |
<td>[% page.parent.title_link %]</td> |
217 |
<td>[% SWITCH page.location %] |
217 |
<td>[% SWITCH page.location %] |
Lines 238-244
Link Here
|
238 |
Actions <b class="caret"></b></a> |
238 |
Actions <b class="caret"></b></a> |
239 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="opencmspageactions[% page.id %]"> |
239 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="opencmspageactions[% page.id %]"> |
240 |
<li><a href="[% link_self %]?op=form&id=[% page.id %]"><i class="fa fa-pencil"></i> Edit</a></li> |
240 |
<li><a href="[% link_self %]?op=form&id=[% page.id %]"><i class="fa fa-pencil"></i> Edit</a></li> |
241 |
<li><a href="[% link_self %]?op=delSingle&id=[% page.id %]" class="del_single"><i class="fa fa-trash"></i> Delete</a></li> |
241 |
<li><a href="[% link_self %]?op=delSingle&id=[% page.id %]" class="del_single" data-isparent="[% page.isParent %]"><i class="fa fa-trash"></i> Delete</a></li> |
242 |
[% IF ( page.location == "" ) %] |
242 |
[% IF ( page.location == "" ) %] |
243 |
<li><a href="[% link_opac %]?id=[% page.id %]"><i class="fa fa-eye"></i> OPAC</a></li> |
243 |
<li><a href="[% link_opac %]?id=[% page.id %]"><i class="fa fa-eye"></i> OPAC</a></li> |
244 |
<li><a href="[% link_self %]?op=view&id=[% page.id %]"><i class="fa fa-eye"></i> Intranet</a></li> |
244 |
<li><a href="[% link_self %]?op=view&id=[% page.id %]"><i class="fa fa-eye"></i> Intranet</a></li> |
Lines 272-280
Link Here
|
272 |
[% END %] |
272 |
[% END %] |
273 |
</div> |
273 |
</div> |
274 |
[% MACRO jsinclude BLOCK %] |
274 |
[% MACRO jsinclude BLOCK %] |
275 |
[% Asset.js("js/tools-menu.js") %] |
275 |
[% INCLUDE 'datatables.inc' %] |
276 |
[% Asset.js("lib/tiny_mce/tiny_mce.js") %] |
276 |
[% Asset.js("js/tools-menu.js") | $raw %] |
|
|
277 |
[% Asset.js("lib/tiny_mce/tiny_mce.js") | $raw %] |
277 |
<script type="text/javascript">//<![CDATA[ |
278 |
<script type="text/javascript">//<![CDATA[ |
|
|
279 |
|
278 |
$(document).ready(function() { |
280 |
$(document).ready(function() { |
279 |
$("#pages_table").dataTable($.extend(true, {}, dataTablesDefaults, { |
281 |
$("#pages_table").dataTable($.extend(true, {}, dataTablesDefaults, { |
280 |
"aoColumnDefs": [ |
282 |
"aoColumnDefs": [ |
Lines 293-298
$(document).ready(function() {
Link Here
|
293 |
}); |
295 |
}); |
294 |
|
296 |
|
295 |
$(".del_single").on("click", function(){ |
297 |
$(".del_single").on("click", function(){ |
|
|
298 |
var isParent = $(this).attr('data-isparent'); |
299 |
if (isParent == 1){ |
300 |
return confirmDelete(_("This page is a parent page. Are you sure you want to delete this page?")); |
301 |
} |
296 |
return confirmDelete(_("Are you sure you want to delete this page?")); |
302 |
return confirmDelete(_("Are you sure you want to delete this page?")); |
297 |
}); |
303 |
}); |
298 |
|
304 |
|