Lines 39-44
Link Here
|
39 |
<li> |
39 |
<li> |
40 |
[% IF category == 'news' %] |
40 |
[% IF category == 'news' %] |
41 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> |
41 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> |
|
|
42 |
[% ELSIF category == 'pages' %] |
43 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=pages">Pages</a> |
42 |
[% ELSE %] |
44 |
[% ELSE %] |
43 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a> |
45 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a> |
44 |
[% END %] |
46 |
[% END %] |
Lines 50-56
Link Here
|
50 |
[% ELSE %] |
52 |
[% ELSE %] |
51 |
<span>Add additional content<span> |
53 |
<span>Add additional content<span> |
52 |
[% END %] |
54 |
[% END %] |
53 |
([% IF category == 'news' %]<span>News</span>[% ELSE %]<span>HTML customizations</span>[% END %]) |
55 |
([% IF category == 'news' %]<span>News</span>[% ELSIF category == 'pages' %]<span>Pages</span>[% ELSE %]<span>HTML customizations</span>[% END %]) |
54 |
</a> |
56 |
</a> |
55 |
</li> |
57 |
</li> |
56 |
[% ELSE %] |
58 |
[% ELSE %] |
Lines 58-63
Link Here
|
58 |
<a href="#" aria-current="page"> |
60 |
<a href="#" aria-current="page"> |
59 |
[% IF category == 'news' %] |
61 |
[% IF category == 'news' %] |
60 |
News |
62 |
News |
|
|
63 |
[% ELSIF category == 'pages' %] |
64 |
Pages |
61 |
[% ELSE %] |
65 |
[% ELSE %] |
62 |
HTML customizations |
66 |
HTML customizations |
63 |
[% END %] |
67 |
[% END %] |
Lines 160-166
Link Here
|
160 |
[% IF additional_content %] |
164 |
[% IF additional_content %] |
161 |
<h1>Modify an additional content</h1> |
165 |
<h1>Modify an additional content</h1> |
162 |
[% ELSE %] |
166 |
[% ELSE %] |
163 |
<h1>New additional content ([% IF category == 'news' %]News[% ELSE %]HTML customizations[% END %])</h1> |
167 |
<h1>New additional content ([% IF category == 'news' %]News[% ELSIF category == 'pages' %]Pages[% ELSE %]HTML customizations[% END %])</h1> |
164 |
[% END %] |
168 |
[% END %] |
165 |
|
169 |
|
166 |
<div id="toolbar" class="btn-toolbar"> |
170 |
<div id="toolbar" class="btn-toolbar"> |
Lines 169-174
Link Here
|
169 |
</div> |
173 |
</div> |
170 |
[% IF category == 'news' %] |
174 |
[% IF category == 'news' %] |
171 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl"><i class="fa fa-remove"></i> Cancel</a> |
175 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl"><i class="fa fa-remove"></i> Cancel</a> |
|
|
176 |
[% ELSIF category == 'pages' %] |
177 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl?category=pages"><i class="fa fa-remove"></i> Cancel</a> |
172 |
[% ELSE %] |
178 |
[% ELSE %] |
173 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations"><i class="fa fa-remove"></i> Cancel</a> |
179 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations"><i class="fa fa-remove"></i> Cancel</a> |
174 |
[% END %] |
180 |
[% END %] |
Lines 289-299
Link Here
|
289 |
</div> |
295 |
</div> |
290 |
</div> |
296 |
</div> |
291 |
|
297 |
|
292 |
<h2>Additional contents ([% IF category == 'news' %]News[% ELSE %]HTML customizations[% END %])</h2> |
298 |
<h2>Additional contents ([% IF category == 'news' %]News[% ELSIF category == 'pages' %]Pages[% ELSE %]HTML customizations[% END %])</h2> |
293 |
[% IF category == 'news' %] |
299 |
[% IF category == 'news' %] |
294 |
See <a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a> |
300 |
See <a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a> or <a href="/cgi-bin/koha/tools/additional-contents.pl?category=pages">Pages</a> |
|
|
301 |
[% ELSIF category == 'pages' %] |
302 |
See <a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a> or <a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> |
295 |
[% ELSE %] |
303 |
[% ELSE %] |
296 |
See <a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> |
304 |
See <a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> or <a href="/cgi-bin/koha/tools/additional-contents.pl?category=pages">Pages</a> |
297 |
[% END %] |
305 |
[% END %] |
298 |
|
306 |
|
299 |
[% IF additional_contents.count %] |
307 |
[% IF additional_contents.count %] |
Lines 320-326
Link Here
|
320 |
<input type="checkbox" name="ids" value="[% c.idnew | html %]" /> |
328 |
<input type="checkbox" name="ids" value="[% c.idnew | html %]" /> |
321 |
</td> |
329 |
</td> |
322 |
<td> |
330 |
<td> |
323 |
[% IF c.category == 'news' %] |
331 |
[% IF c.category == 'news' || c.category == 'pages' %] |
324 |
[% IF c.location == 'staff_and_opac' %]All |
332 |
[% IF c.location == 'staff_and_opac' %]All |
325 |
[% ELSIF c.location == 'staff_only' %]Librarian interface |
333 |
[% ELSIF c.location == 'staff_only' %]Librarian interface |
326 |
[% ELSIF c.location == 'opac_only' %]OPAC |
334 |
[% ELSIF c.location == 'opac_only' %]OPAC |
Lines 379-384
Link Here
|
379 |
<div class="btn-group"> |
387 |
<div class="btn-group"> |
380 |
<a href="#" class="delete_news btn btn-default btn-xs" data-idnew="[% c.idnew | html %]"><i class="fa fa-trash"></i> Delete</a> |
388 |
<a href="#" class="delete_news btn btn-default btn-xs" data-idnew="[% c.idnew | html %]"><i class="fa fa-trash"></i> Delete</a> |
381 |
</div> |
389 |
</div> |
|
|
390 |
[% IF c.category == 'pages' %] |
391 |
<div class="btn-group dropup"> |
392 |
[% IF c.location == 'opac_only' %] |
393 |
<a target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/page.pl?page_id=[% c.idnew | uri %]" class="btn btn-default btn-xs"> <i class="fa fa-eye"></i> View</a><button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"> |
394 |
<span class="caret"></span> |
395 |
</button> |
396 |
[% ELSE %] |
397 |
<a href="/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | uri %]" class="btn btn-default btn-xs"><i class="fa fa-eye"></i> View</a><button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"> |
398 |
<span class="caret"></span> |
399 |
</button> |
400 |
[% END %] |
401 |
[% IF c.location == 'staff_and_opac' %] |
402 |
<ul class="dropdown-menu pull-right"> |
403 |
<li> |
404 |
<a target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/page.pl?page_id=[% c.idnew | uri %]"><i class="fa fa-eye"></i> View on OPAC</a> |
405 |
<a href="/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | uri %]"><i class="fa fa-eye"></i> View on staff client</a> |
406 |
</li> |
407 |
</ul> |
408 |
[% END %] |
409 |
</div> |
410 |
[% END %] |
382 |
</td> |
411 |
</td> |
383 |
</tr> |
412 |
</tr> |
384 |
[% END %] |
413 |
[% END %] |
Lines 399-405
Link Here
|
399 |
[% END %] |
428 |
[% END %] |
400 |
|
429 |
|
401 |
[% BLOCK locations_options %] |
430 |
[% BLOCK locations_options %] |
402 |
[% IF category == 'news' %] |
431 |
[% IF category == 'news' || category == 'pages' %] |
403 |
[% IF location == "staff_and_opac" %] |
432 |
[% IF location == "staff_and_opac" %] |
404 |
<option value="staff_and_opac" selected="selected">Librarian and OPAC interfaces</option> |
433 |
<option value="staff_and_opac" selected="selected">Librarian and OPAC interfaces</option> |
405 |
[% ELSE %] |
434 |
[% ELSE %] |
Lines 418-427
Link Here
|
418 |
<option value="opac_only">OPAC</option> |
447 |
<option value="opac_only">OPAC</option> |
419 |
[% END %] |
448 |
[% END %] |
420 |
|
449 |
|
421 |
[% IF location == "slip" %] |
450 |
[% UNLESS category == 'pages' %] |
422 |
<option value="slip" selected="selected">Slip</option> |
451 |
[% IF location == "slip" %] |
423 |
[% ELSE %] |
452 |
<option value="slip" selected="selected">Slip</option> |
424 |
<option value="slip">Slip</option> |
453 |
[% ELSE %] |
|
|
454 |
<option value="slip">Slip</option> |
455 |
[% END %] |
425 |
[% END %] |
456 |
[% END %] |
426 |
[% ELSE %] |
457 |
[% ELSE %] |
427 |
[% FOREACH l IN [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText' ] %] |
458 |
[% FOREACH l IN [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText' ] %] |