Lines 5-30
Link Here
|
5 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
<title>Koha › Tools › Pages</title> |
6 |
<title>Koha › Tools › Pages</title> |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
8 |
[% IF ( opac_page_count ) %] |
8 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
9 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
9 |
[% INCLUDE 'datatables.inc' %] |
10 |
[% INCLUDE 'datatables.inc' %] |
|
|
11 |
<script type="text/javascript">//<![CDATA[ |
12 |
$(document).ready(function() { |
13 |
$("#newst").dataTable($.extend(true, {}, dataTablesDefaults, { |
14 |
"aoColumnDefs": [ |
15 |
{ "aTargets": [ 0,-1,-2 ], "bSortable": false }, |
16 |
{ "aTargets": [ 0, -1 ], "bSearchable": false }, |
17 |
{ 'sType': "title-string", 'aTargets' : [ 'title-string'] } |
18 |
], |
19 |
"sPaginationType": "full_numbers" |
20 |
})); |
21 |
}); |
22 |
//]]> |
23 |
</script> |
24 |
[% END %] |
25 |
<script type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce.js"></script> |
10 |
<script type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce.js"></script> |
26 |
<script type="text/javascript">//<![CDATA[ |
11 |
<script type="text/javascript">//<![CDATA[ |
27 |
var MSG_CONFIRM_DELETE_PAGE = _("Are you sure you want to delete the selected page?"); |
12 |
var MSG_CONFIRM_DELETE_PAGE = _("Are you sure you want to delete the selected page(s)?"); |
|
|
13 |
|
14 |
$(document).ready(function() { |
15 |
$("#pages_table").dataTable($.extend(true, {}, dataTablesDefaults, { |
16 |
"aoColumnDefs": [ |
17 |
{ "aTargets": [ 0, -1 ], "bSortable": false, "bSearchable": false }, |
18 |
], |
19 |
"sPaginationType": "full_numbers" |
20 |
})); |
21 |
|
22 |
$("#del_button").on("click",function(){ |
23 |
return confirmDelete(MSG_CONFIRM_DELETE_PAGE); |
24 |
}); |
25 |
|
26 |
$(".SelectAll").on("click", function(){ |
27 |
$("input[name='ids'][type='checkbox']").prop("checked", true); |
28 |
}); |
29 |
|
30 |
$(".ClearAll").on("click", function(){ |
31 |
$("input[name='ids'][type='checkbox']").prop("checked", false); |
32 |
}); |
33 |
}); |
28 |
|
34 |
|
29 |
tinyMCE.init({ |
35 |
tinyMCE.init({ |
30 |
mode : "textareas", |
36 |
mode : "textareas", |
Lines 47-66
tinyMCE.init({
Link Here
|
47 |
width : "700" |
53 |
width : "700" |
48 |
//]]> |
54 |
//]]> |
49 |
}); |
55 |
}); |
50 |
//]]> |
|
|
51 |
</script> |
56 |
</script> |
52 |
</head> |
57 |
</head> |
53 |
<body id="tools_koha-content" class="tools"> |
58 |
<body id="tools_koha-content" class="tools"> |
54 |
[% INCLUDE 'header.inc' %] |
59 |
[% INCLUDE 'header.inc' %] |
55 |
[% INCLUDE 'cat-search.inc' %] |
60 |
[% INCLUDE 'cat-search.inc' %] |
56 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › [% IF ( form ) %]<a href="[% link_self %]">Pages</a> › [% IF ( id ) %] |
61 |
<div id="breadcrumbs"> |
57 |
Edit page[% ELSE %]Add page[% END %][% ELSE %]Pages[% END %]</div> |
62 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> › |
|
|
63 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › |
64 |
[% IF ( form ) %]<a href="[% link_self %]">Pages</a> › |
65 |
[% IF ( id ) %]Edit page[% ELSE %]Add page[% END %] |
66 |
[% ELSIF ( view ) %] |
67 |
<a href="[% link_self %]">Pages</a> › |
68 |
[% IF ( cms_page.parent ) %] |
69 |
[% FOREACH parent IN parent_list %] |
70 |
[% IF parent.id == cms_page.parent %]<a href="[% link_self %]?op=view&id=[% cms_page.parent %]">[% parent.title_link %]</a> ›[% END %] |
71 |
[% END %] |
72 |
[% END %] |
73 |
[% cms_page.title_link %] |
74 |
[% ELSE %]Pages[% END %] |
75 |
</div> |
58 |
|
76 |
|
59 |
[% IF ( form ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %] |
77 |
[% IF ( form ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %] |
60 |
<div id="bd"> |
78 |
<div id="bd"> |
61 |
<div id="yui-main"> |
79 |
<div id="yui-main"> |
62 |
<div class="yui-b"> |
80 |
<div class="yui-b"> |
63 |
|
|
|
64 |
[% UNLESS ( link_opac_base && link_self) %] |
81 |
[% UNLESS ( link_opac_base && link_self) %] |
65 |
<div class="dialog alert"> |
82 |
<div class="dialog alert"> |
66 |
[% UNLESS ( link_opac_base ) %] |
83 |
[% UNLESS ( link_opac_base ) %] |
Lines 70-86
Edit page[% ELSE %]Add page[% END %][% ELSE %]Pages[% END %]</div>
Link Here
|
70 |
Warning: Variable <em>link_self</em> not set, some links might not work!</div> |
87 |
Warning: Variable <em>link_self</em> not set, some links might not work!</div> |
71 |
[% END %] |
88 |
[% END %] |
72 |
[% END %] |
89 |
[% END %] |
73 |
[% UNLESS ( form ) %] |
90 |
[% UNLESS ( form || view ) %] |
74 |
[% IF error_message == 'title_missing' %] |
|
|
75 |
<div class="dialog alert">Error: Required page title missing!</div> |
76 |
[% END %] |
77 |
<div id="toolbar" class="btn-toolbar"> |
91 |
<div id="toolbar" class="btn-toolbar"> |
78 |
<a class="btn btn-small" id="newentry" href="[% link_self %]?op=form"><i class="icon-plus"></i> New page</a> |
92 |
<a class="btn btn-small" id="newentry" href="[% link_self %]?op=form"><i class="fa fa-plus"></i> New page</a> |
|
|
93 |
</div> |
94 |
[% END %] |
95 |
[% IF ( failed_add ) %] |
96 |
<div class="dialog alert"> |
97 |
Failed to add page. Check that: |
98 |
<ul> |
99 |
<li>Your link title is unique</li> |
100 |
<li>If specifying a parent page, the location is the same as your new page</li> |
101 |
</ul> |
102 |
</div> |
103 |
[% END %] |
104 |
[% IF ( view ) %] |
105 |
<div class="yui-ge"> |
106 |
<div id="pagesnav" class="yui-u"> |
107 |
[% IF ( links ) %] |
108 |
<fieldset> |
109 |
<ul> |
110 |
<li><a href="[% link_self %]">Pages home</a></li> |
111 |
</ul> |
112 |
<h4>Pages</h4> |
113 |
<ul id="cms_nav"> |
114 |
[% FOREACH link IN links %] |
115 |
[% IF ( link.location == '' || link.location == '1' ) %] |
116 |
[% IF ( link.parent != '' ) %] |
117 |
[% FOREACH parent IN parent_list %] |
118 |
[% IF ( parent.id == link.parent ) %]<li style="margin-left:20px;"><a href="[% link_self %]?op=view&id=[% link.parent %]">[% parent.title_link %]</a> › <a href="[% link_self %]?op=view&id=[% link.id %]">[% link.title_link %]</a></li>[% END %] |
119 |
[% END %] |
120 |
[% ELSE %] |
121 |
<li><a href="[% link_self %]?op=view&id=[% link.id %]">[% link.title_link %]</a></li> |
122 |
[% END %] |
123 |
[% END %][% END %] |
124 |
</ul> |
125 |
</fieldset> |
126 |
[% END %] |
79 |
</div> |
127 |
</div> |
|
|
128 |
<div class="yui-u first"> |
129 |
<h1>Pages: [% cms_page.title %]</h1> |
130 |
[% IF ( cms_page.publish == 1 ) %] |
131 |
[% cms_page.content %] |
132 |
[% ELSE %] |
133 |
<div class="dialog message">This page has not been published.</div> |
134 |
[% cms_page.content %] |
80 |
[% END %] |
135 |
[% END %] |
81 |
<pre>DEBUG: [% debug %]</pre> |
136 |
</div> |
82 |
<pre>DEBUG2: data.location: [% data.location %] data.branchcode: [% data.branchcode %]</pre> |
137 |
</div> |
83 |
[% IF ( form ) %] |
138 |
[% ELSIF ( form ) %] |
84 |
<form name="form" method="post" enctype="multipart/form-data" action="[% link_self %]" > |
139 |
<form name="form" method="post" enctype="multipart/form-data" action="[% link_self %]" > |
85 |
<input type="hidden" name="op" value="[% op %]" /> |
140 |
<input type="hidden" name="op" value="[% op %]" /> |
86 |
<input type="hidden" name="id" value="[% id %]" /> |
141 |
<input type="hidden" name="id" value="[% id %]" /> |
Lines 88-126
Edit page[% ELSE %]Add page[% END %][% ELSE %]Pages[% END %]</div>
Link Here
|
88 |
<legend>Page</legend> |
143 |
<legend>Page</legend> |
89 |
<ol> |
144 |
<ol> |
90 |
<li> |
145 |
<li> |
91 |
<label for="disp">Display location</label> |
146 |
<label for="disp">Display location:</label> |
92 |
<select id="disp" name="disp"> |
147 |
<select id="disp" name="disp"> |
93 |
<option value="" [% IF ( data.disp == "" ) %]selected="selected"[% END %]>All</option> |
148 |
[% IF ( data.location == "" ) %]<option value="" selected="selected">All</option>[% ELSE %]<option value="">All</option>[% END %] |
94 |
<option value="1" [% IF ( data.disp == "1" ) %]selected="selected"[% END %]>Intranet</option> |
149 |
[% IF ( data.location == "1" ) %]<option value="1" selected="selected">Staff interface</option>[% ELSE %]<option value="1">Staff interface</option>[% END %] |
95 |
<option value="2" [% IF ( data.disp == "2" ) %]selected="selected"[% END %]>OPAC</option> |
150 |
[% IF ( data.location == "2" ) %]<option value="2" selected="selected">OPAC</option>[% ELSE %]<option value="2">OPAC</option>[% END %] |
96 |
</select> |
151 |
</select> |
97 |
</li> |
152 |
</li> |
98 |
<li> |
153 |
<li> |
99 |
<label for="branch">Library: </label> |
154 |
<label for="branch">Library: </label> |
100 |
<select id="branch" name="branch"> |
155 |
<select id="branch" name="branch"> |
101 |
<option value=""[% IF ( data.branchcode == '' ) %] selected="selected"[% END %]>All libraries</option> |
156 |
[% IF ( data.branchcode == "" ) %]<option value="" selected="selected">All libraries</option>[% ELSE %]<option value="">All libraries</option>[% END %] |
102 |
[% FOREACH branch_lis IN branch_list %] |
157 |
[% FOREACH branch IN branch_list %] |
103 |
<option value="[% branch_lis.branchcode %]"[% IF ( branch_lis.branchcode == data.branchcode ) %] selected="selected"[% END %]>[% branch_lis.branchname %]</option> |
158 |
[% IF ( branch.branchcode == data.branchcode ) %]<option value="[% branch.branchcode %]" selected="selected">[% branch.branchname %]</option>[% ELSE %]<option value="[% branch.branchcode %]">[% branch.branchname %]</option>[% END %] |
104 |
[% END %] |
159 |
[% END %] |
105 |
</select> |
160 |
</select> |
106 |
</li> |
161 |
</li> |
107 |
<li> |
162 |
<li> |
108 |
<label for="lang">Language</label> |
163 |
<label for="lang">Language:</label> |
109 |
<pre>LANG: [% lang %]</pre> |
|
|
110 |
<select id="lang" name="lang"> |
164 |
<select id="lang" name="lang"> |
111 |
<option value="" [% IF ( data.lang == "" ) %]selected="selected"[% END %]>All</option> |
165 |
[% IF ( data.lang == "" ) %]<option value="" selected="selected">All</option>[% ELSE %]<option value="">All</option>[% END %] |
112 |
[% FOREACH lang_lis IN lang_list %] |
166 |
[% FOREACH lang IN lang_list %] |
113 |
<option value="[% lang_lis.rfc4646_subtag %]" [% IF ( lang_lis.rfc4646_subtag == data.lang ) %]selected="selected"[% END %]>[% lang_lis.native_description %] ([% lang_lis.rfc4646_subtag %])</option> |
167 |
[% IF ( lang.rfc4646_subtag == data.lang ) %]<option value="[% lang.rfc4646_subtag %]" selected="selected">[% lang.native_description %] ([% lang.rfc4646_subtag %])</option>[% ELSE %]<option value="[% lang.rfc4646_subtag %]">[% lang.native_description %] ([% lang.rfc4646_subtag %])</option>[% END %] |
114 |
[% END %] |
168 |
[% END %] |
115 |
</select> |
169 |
</select> |
116 |
</li> |
170 |
</li> |
117 |
<li> |
171 |
<li> |
118 |
<label for="parent">Parent page: </label> |
172 |
<label for="parent">Parent page: </label> |
119 |
<select id="parent" name="parent"> |
173 |
<select id="parent" name="parent"> |
120 |
<option value="" [% IF ( data.id == "" ) %]selected="selected"[% END %]>No parent</option> |
174 |
[% IF ( data.id == "" ) %]<option value="" selected="selected">No parent</option>[% ELSE %]<option value="">No parent</option>[% END %] |
121 |
[% FOREACH parent_lis IN parent_list %] |
175 |
[% FOREACH parent IN parent_list %] |
122 |
<option value="[% parent_lis.id %]" [% IF ( data.parent.id == parent_lis.id ) %]selected="selected"[% END %]>[% parent_lis.title_link %]</option> |
176 |
[% IF ( data.parent.id == parent.id ) %]<option value="[% parent.id %]" selected="selected">[% parent.title_link %]</option>[% ELSE %]<option value="[% parent.id %]">[% parent.title_link %]</option>[% END %] |
123 |
[% END %] |
177 |
[% END %] |
124 |
</select> |
178 |
</select> |
125 |
</li> |
179 |
</li> |
126 |
<li> |
180 |
<li> |
Lines 133-143
Edit page[% ELSE %]Add page[% END %][% ELSE %]Pages[% END %]</div>
Link Here
|
133 |
</li> |
187 |
</li> |
134 |
<li> |
188 |
<li> |
135 |
<label for="number">Appear in position: </label> |
189 |
<label for="number">Appear in position: </label> |
136 |
<input id="sortorder" size="3" name="sortorder" type="text" value="[% IF ( data.sortorder ) %][% data.sortorder %][% ELSE %]0[% END %]" /> |
190 |
[% IF ( data.sortorder ) %]<input id="number" size="3" name="number" type="text" value="[% data.sortorder %]" />[% ELSE %]<input id="number" size="3" name="number" type="text" value="0" />[% END %] |
137 |
</li> |
191 |
</li> |
138 |
<li> |
192 |
<li> |
139 |
<label for="publish">Publish: </label> |
193 |
<label for="publish">Publish: </label> |
140 |
<input type="checkbox" id="publish" name="publish"[% IF ( data.publish ) %] checked="checked"[% END %]/> |
194 |
[% IF ( data.publish ) %]<input type="checkbox" id="publish" name="publish" checked="checked" />[% ELSE %]<input type="checkbox" id="publish" name="publish" />[% END %] |
141 |
</li> |
195 |
</li> |
142 |
<li><label for="new">Content: </label> |
196 |
<li><label for="new">Content: </label> |
143 |
<textarea name="content" id="content" cols="75" rows="10">[% data.content %]</textarea> |
197 |
<textarea name="content" id="content" cols="75" rows="10">[% data.content %]</textarea> |
Lines 147-230
Edit page[% ELSE %]Add page[% END %][% ELSE %]Pages[% END %]</div>
Link Here
|
147 |
<fieldset class="action"><input class="button" type="submit" value="Save" /> <a class="cancel" href="[% link_self %]">Cancel</a></fieldset> |
201 |
<fieldset class="action"><input class="button" type="submit" value="Save" /> <a class="cancel" href="[% link_self %]">Cancel</a></fieldset> |
148 |
</form> |
202 |
</form> |
149 |
[% ELSE %] |
203 |
[% ELSE %] |
|
|
204 |
|
205 |
<h1>Pages</h1> |
150 |
<div style="margin-bottom:5px;"> |
206 |
<div style="margin-bottom:5px;"> |
151 |
<form name="form" method="post" action="[% link_self %]" > |
207 |
<form name="filter" method="post" action="[% link_self %]"> |
152 |
<label for="disp">Display location:</label> |
208 |
<label for="disp">Display location:</label> |
153 |
<select name="disp" id="disp"> |
209 |
<select name="disp" id="disp"> |
154 |
<option value="" [% IF ( disp == "" ) %]selected="selected"[% END %]>All</option> |
210 |
[% IF ( disp == "" ) %]<option value="" selected="selected">All</option>[% ELSE %]<option value="">All</option>[% END %] |
155 |
<option value="0" [% IF ( disp == "0" ) %]selected="selected"[% END %]>OPAC</option> |
211 |
[% IF ( disp == "1" ) %]<option value="1" selected="selected">Staff interface</option>[% ELSE %]<option value="1">Staff interface</option>[% END %] |
156 |
<option value="1" [% IF ( disp == "1" ) %]selected="selected"[% END %]>Librarian interface</option> |
212 |
[% IF ( disp == "2" ) %]<option value="2" selected="selected">OPAC</option>[% ELSE %]<option value="2">OPAC</option>[% END %] |
157 |
</select> |
213 |
</select> |
158 |
|
214 |
|
159 |
<label for="branch">Library: </label> |
215 |
<label for="branch">Library: </label> |
160 |
<select id="branch" name="branch"> |
216 |
<select id="branch" name="branch"> |
161 |
<option value=""[% IF ( branch == "" ) %] selected="selected"[% END %]>All libraries</option> |
217 |
[% IF ( branch == "" ) %]<option value="" selected="selected">All libraries</option>[% ELSE %]<option value="">All libraries</option>[% END %] |
162 |
[% FOREACH branch_lis IN branch_list %] |
218 |
[% FOREACH br IN branch_list %] |
163 |
<option value="[% branch_lis.branchcode %]"[% IF ( branch_lis.branchcode == branch ) %] selected="selected"[% END %]>[% branch_lis.branchname %]</option> |
219 |
[% IF ( br.branchcode == branch ) %] |
|
|
220 |
<option value="[% br.branchcode %]" selected="selected">[% br.branchname %]</option> |
221 |
[% ELSE %] |
222 |
<option value="[% br.branchcode %]">[% br.branchname %]</option> |
223 |
[% END %] |
164 |
[% END %] |
224 |
[% END %] |
165 |
</select> |
225 |
</select> |
166 |
|
226 |
|
167 |
<label for="lang">Language:</label> |
227 |
<label for="lang">Language:</label> |
168 |
<select name="lang" id="lang"> |
228 |
<select name="lang" id="lang"> |
169 |
<option value="" [% IF ( lang == "" ) %]selected="selected"[% END %]>All</option> |
229 |
[% IF ( lang == "" ) %]<option value="" selected="selected">All</option>[% ELSE %]<option value="">All</option>[% END %] |
170 |
[% FOREACH lang_lis IN lang_list %] |
230 |
[% FOREACH language IN lang_list %] |
171 |
<option value="[% lang_lis.rfc4646_subtag %]" [% IF ( lang_lis.rfc4646_subtag == lang ) %]selected="selected"[% END %]>[% lang_lis.native_description %] ([% lang_lis.rfc4646_subtag %])</option> |
231 |
[% IF ( language.rfc4646_subtag == lang ) %] |
|
|
232 |
<option value="[% language.rfc4646_subtag %]" selected="selected">[% language.native_description %] ([% language.rfc4646_subtag %])</option> |
233 |
[% ELSE %] |
234 |
<option value="[% language.rfc4646_subtag %]">[% language.native_description %] ([% language.rfc4646_subtag %])</option> |
235 |
[% END %] |
172 |
[% END %] |
236 |
[% END %] |
173 |
</select> |
237 |
</select> |
|
|
238 |
<input type="hidden" name="op" value="filter" /> |
174 |
<input type="submit" class="button" value="Filter" /> |
239 |
<input type="submit" class="button" value="Filter" /> |
175 |
</form> |
240 |
</form> |
176 |
</div> |
241 |
</div> |
177 |
[% IF ( page_list_count ) %] |
242 |
[% IF ( page_list.size ) %] |
178 |
<form name="del_form" method="post" action="[% link_self %]" onsubmit='return confirm(MSG_CONFIRM_DELETE_PAGE)'> |
243 |
<form name="del_form" method="post" action="[% link_self %]"> |
179 |
<table id="newst"> |
244 |
<table id="pages_table"> |
180 |
<thead><tr> |
245 |
<thead><tr> |
181 |
<th> </th> |
246 |
<th> </th> |
182 |
<th>Pub.</th> |
247 |
<th>Published</th> |
183 |
<th>Parent</th> |
248 |
<th>Parent</th> |
184 |
<th>Loc.</th> |
249 |
<th>Location</th> |
185 |
<th>Lib.</th> |
250 |
<th>Library</th> |
186 |
<th>Lang.</th> |
251 |
<th>Language</th> |
187 |
<th>Num.</th> |
252 |
<th>Number</th> |
188 |
<th>Link title</th> |
253 |
<th>Link title</th> |
189 |
<th>Page title</th> |
254 |
<th>Page title</th> |
190 |
<th> </th> |
255 |
<th>Actions</th> |
191 |
<th> </th> |
|
|
192 |
</tr></thead> |
256 |
</tr></thead> |
193 |
<tbody>[% FOREACH page_lis IN page_list %] |
257 |
<tbody>[% FOREACH page IN page_list %] |
194 |
<tr> |
258 |
<tr> |
195 |
<td> |
259 |
<td><input type="checkbox" name="ids" id="ids" value="[% page.id %]" /></td> |
196 |
<input type="checkbox" name="ids" id="ids" value="[% page_lis.id %]" /> |
260 |
<td>[% IF ( page.publish ) %]Yes[% ELSE %]No[% END %]</td> |
197 |
</td> |
261 |
<td>[% page.parent.title_link %]</td> |
198 |
<td>[% IF ( page_lis.publish ) %]Yes[% ELSE %]No[% END %]</td> |
262 |
<td>[% SWITCH page.location %] |
199 |
<td>[% page_lis.parent.title_link %]</td> |
|
|
200 |
<td>[% SWITCH page_lis.display %] |
201 |
[% CASE "0" %] |
202 |
OPAC |
203 |
[% CASE "1" %] |
204 |
Staff interface |
205 |
[% CASE "" %] |
263 |
[% CASE "" %] |
206 |
All |
264 |
All |
|
|
265 |
[% CASE "1" %] |
266 |
Staff interface |
267 |
[% CASE "2" %] |
268 |
OPAC |
207 |
[% END %] |
269 |
[% END %] |
208 |
</td> |
270 |
</td> |
209 |
<td>[% IF ( page_lis.branch == "" ) %] |
271 |
<td>[% IF ( page.branchcode == "" ) %]All[% ELSE %][% page.branchcode.branchname %][% END %]</td> |
210 |
All |
272 |
<td>[% IF ( page.lang == "" ) %]All[% ELSE %] |
211 |
[% ELSE %][% page_lis.branchname %] |
273 |
[% FOREACH lang IN lang_list %] |
212 |
[% END %]</td> |
274 |
[% IF ( lang.rfc4646_subtag == page.lang ) %][% lang.native_description %] ([% lang.rfc4646_subtag %])[% END %] |
213 |
<td>[% IF ( page_lis.langcode == "" ) %]All[% ELSE %] |
275 |
[% END %] |
214 |
[% page_lis.langcode %][% END %]</td> |
276 |
[% END %]</td> |
215 |
<td>[% page_lis.sortorder %]</td> |
277 |
<td>[% page.sortorder %]</td> |
216 |
<td><a href="[% link_self %]?op=form&id=[% page_lis.id %]">[% page_lis.title_link %]</a></td> |
278 |
<td><a href="[% link_self %]?op=form&id=[% page.id %]">[% page.title_link %]</a></td> |
217 |
<td>[% page_lis.title %]</td> |
279 |
<td>[% page.title %]</td> |
218 |
<td><a href="[% link_self %]?op=form&id=[% page_lis.id %]">Edit</a></td> |
280 |
<td class="actions"> |
219 |
<td><a href="[% link_opac %]?id=[% page_lis.id %]">View</a></td> |
281 |
<a href="[% link_self %]?op=form&id=[% page.id %]" class="btn btn-mini"><i class="fa fa-pencil"></i> Edit</a> |
|
|
282 |
[% IF ( page.location == "" ) %] |
283 |
<a href="[% link_opac %]?id=[% page.id %]" class="btn btn-mini"><i class="fa fa-eye"></i> OPAC</a> |
284 |
<a href="[% link_self %]?op=view&id=[% page.id %]" class="btn btn-mini"><i class="fa fa-eye"></i> Intranet</a> |
285 |
[% ELSIF ( page.location == "1" ) %] |
286 |
<a href="[% link_self %]?op=view&id=[% page.id %]" class="btn btn-mini"><i class="fa fa-eye"></i> Intranet</a> |
287 |
[% ELSIF ( page.location == "2" ) %] |
288 |
<a href="[% link_opac %]?id=[% page.id %]" class="btn btn-mini"><i class="fa fa-eye"></i> OPAC</a> |
289 |
[% END %] |
220 |
</tr> |
290 |
</tr> |
221 |
[% END %]</tbody> |
291 |
[% END %]</tbody> |
222 |
</table> |
292 |
</table> |
223 |
<input type="hidden" name="op" value="del" /> |
293 |
<input type="hidden" name="op" value="del" /> |
224 |
<fieldset class="action"><input type="submit" class="button" value="Delete selected" /></fieldset> |
294 |
<fieldset class="action"> |
|
|
295 |
<a class="SelectAll"><i class="fa fa-check"></i> Select all</a> | <a class="ClearAll"><i class="fa fa-remove"></i> Clear all</a> |
296 |
<input type="submit" class="button" id="del_button" value="Delete selected" /> |
297 |
</fieldset> |
225 |
</form> |
298 |
</form> |
226 |
[% ELSE %] |
299 |
[% ELSE %] |
227 |
<p>No pages exists</p> |
300 |
<div class="dialog message">No pages exist. <a href="[% link_self %]?op=form">Create a new page?</a></div> |
228 |
[% END %] |
301 |
[% END %] |
229 |
[% END %] |
302 |
[% END %] |
230 |
</div> |
303 |
</div> |