Lines 24-29
Link Here
|
24 |
.syspref-link::before { |
24 |
.syspref-link::before { |
25 |
content: " | "; |
25 |
content: " | "; |
26 |
} |
26 |
} |
|
|
27 |
.customisation-link::before { |
28 |
content: " | "; |
29 |
} |
30 |
.customisation-link:first-child::before { |
31 |
content: none; |
32 |
} |
27 |
</style> |
33 |
</style> |
28 |
</head> |
34 |
</head> |
29 |
|
35 |
|
Lines 44-49
Link Here
|
44 |
<li> |
50 |
<li> |
45 |
[% IF category == 'news' %] |
51 |
[% IF category == 'news' %] |
46 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> |
52 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> |
|
|
53 |
[% ELSIF category == 'pages' %] |
54 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=pages">Pages</a> |
47 |
[% ELSE %] |
55 |
[% ELSE %] |
48 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a> |
56 |
<a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a> |
49 |
[% END %] |
57 |
[% END %] |
Lines 55-61
Link Here
|
55 |
[% ELSE %] |
63 |
[% ELSE %] |
56 |
<span>Add additional content</span> |
64 |
<span>Add additional content</span> |
57 |
[% END %] |
65 |
[% END %] |
58 |
([% IF category == 'news' %]<span>News</span>[% ELSE %]<span>HTML customizations</span>[% END %]) |
66 |
([% IF category == 'news' %]<span>News</span>[% ELSIF category == 'pages' %]<span>Pages</span>[% ELSE %]<span>HTML customizations</span>[% END %]) |
59 |
</a> |
67 |
</a> |
60 |
</li> |
68 |
</li> |
61 |
[% ELSE %] |
69 |
[% ELSE %] |
Lines 63-68
Link Here
|
63 |
<a href="#" aria-current="page"> |
71 |
<a href="#" aria-current="page"> |
64 |
[% IF category == 'news' %] |
72 |
[% IF category == 'news' %] |
65 |
News |
73 |
News |
|
|
74 |
[% ELSIF category == 'pages' %] |
75 |
Pages |
66 |
[% ELSE %] |
76 |
[% ELSE %] |
67 |
HTML customizations |
77 |
HTML customizations |
68 |
[% END %] |
78 |
[% END %] |
Lines 165-171
Link Here
|
165 |
[% IF additional_content %] |
175 |
[% IF additional_content %] |
166 |
<h1>Modify an additional content</h1> |
176 |
<h1>Modify an additional content</h1> |
167 |
[% ELSE %] |
177 |
[% ELSE %] |
168 |
<h1>New additional content ([% IF category == 'news' %]News[% ELSE %]HTML customizations[% END %])</h1> |
178 |
<h1>New additional content ([% IF category == 'news' %]News[% ELSIF category == 'pages' %]Pages[% ELSE %]HTML customizations[% END %])</h1> |
169 |
[% END %] |
179 |
[% END %] |
170 |
|
180 |
|
171 |
<div id="toolbar" class="btn-toolbar"> |
181 |
<div id="toolbar" class="btn-toolbar"> |
Lines 174-179
Link Here
|
174 |
</div> |
184 |
</div> |
175 |
[% IF category == 'news' %] |
185 |
[% IF category == 'news' %] |
176 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl"><i class="fa fa-remove"></i> Cancel</a> |
186 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl"><i class="fa fa-remove"></i> Cancel</a> |
|
|
187 |
[% ELSIF category == 'pages' %] |
188 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/additional-contents.pl?category=pages"><i class="fa fa-remove"></i> Cancel</a> |
177 |
[% ELSE %] |
189 |
[% ELSE %] |
178 |
<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> |
190 |
<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 |
[% END %] |
191 |
[% END %] |
Lines 300-315
Link Here
|
300 |
</div> |
312 |
</div> |
301 |
</div> |
313 |
</div> |
302 |
|
314 |
|
303 |
<h2>Additional contents ([% IF category == 'news' %]News[% ELSE %]HTML customizations[% END %])</h2> |
315 |
<h2>Additional contents ([% IF category == 'news' %]News[% ELSIF category == 'pages' %]Pages[% ELSE %]HTML customizations[% END %])</h2> |
304 |
[% IF category == 'news' %] |
316 |
<span id="additional_contents_links"> |
305 |
See <a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a> |
317 |
See |
306 |
[% ELSE %] |
318 |
<a class="customisation-link" href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> |
307 |
See <a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> |
319 |
<a class="customisation-link" href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations">HTML customizations</a> |
308 |
[% END %] |
320 |
<a class="customisation-link" href="/cgi-bin/koha/tools/additional-contents.pl?category=pages">Pages</a> |
309 |
[% IF ( CAN_user_parameters_manage_sysprefs ) %] |
321 |
[% IF ( CAN_user_parameters_manage_sysprefs ) %] |
310 |
<a class="syspref-link" href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserJS'>OPACUserJS</a> |
322 |
<a class="syspref-link" href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserJS'>OPACUserJS</a> |
311 |
<a class="syspref-link" href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserCSS'>OPACUserCSS</a> |
323 |
<a class="syspref-link" href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserCSS'>OPACUserCSS</a> |
312 |
[% END %] |
324 |
[% END %] |
|
|
325 |
</span> |
313 |
|
326 |
|
314 |
[% IF additional_contents.count %] |
327 |
[% IF additional_contents.count %] |
315 |
<form id="del_form" method="post" action="/cgi-bin/koha/tools/additional-contents.pl"> |
328 |
<form id="del_form" method="post" action="/cgi-bin/koha/tools/additional-contents.pl"> |
Lines 335-341
Link Here
|
335 |
<input type="checkbox" name="ids" value="[% c.idnew | html %]" /> |
348 |
<input type="checkbox" name="ids" value="[% c.idnew | html %]" /> |
336 |
</td> |
349 |
</td> |
337 |
<td> |
350 |
<td> |
338 |
[% IF c.category == 'news' %] |
351 |
[% IF c.category == 'news' || c.category == 'pages' %] |
339 |
[% IF c.location == 'staff_and_opac' %]<span>All</span> |
352 |
[% IF c.location == 'staff_and_opac' %]<span>All</span> |
340 |
[% ELSIF c.location == 'staff_only' %]<span>Librarian interface</span> |
353 |
[% ELSIF c.location == 'staff_only' %]<span>Librarian interface</span> |
341 |
[% ELSIF c.location == 'opac_only' %]<span>OPAC</span> |
354 |
[% ELSIF c.location == 'opac_only' %]<span>OPAC</span> |
Lines 394-399
Link Here
|
394 |
<div class="btn-group"> |
407 |
<div class="btn-group"> |
395 |
<a href="#" class="delete_news btn btn-default btn-xs" data-idnew="[% c.idnew | html %]"><i class="fa fa-trash"></i> Delete</a> |
408 |
<a href="#" class="delete_news btn btn-default btn-xs" data-idnew="[% c.idnew | html %]"><i class="fa fa-trash"></i> Delete</a> |
396 |
</div> |
409 |
</div> |
|
|
410 |
[% IF c.category == 'pages' %] |
411 |
<div class="btn-group dropup"> |
412 |
[% IF c.location == 'opac_only' %] |
413 |
<a target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-page.pl?page_id=[% c.idnew | uri %]" class="btn btn-default btn-xs" title="View on OPAC"> <i class="fa fa-eye"></i> View</a><button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"> |
414 |
<span class="caret"></span> |
415 |
</button> |
416 |
[% ELSE %] |
417 |
<a href="/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | uri %]" class="btn btn-default btn-xs" title="View on staff client"><i class="fa fa-eye"></i> View</a><button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"> |
418 |
<span class="caret"></span> |
419 |
</button> |
420 |
[% END %] |
421 |
<ul class="dropdown-menu pull-right"> |
422 |
<li> |
423 |
[% UNLESS c.location == 'staff_only' %] |
424 |
<a target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-page.pl?page_id=[% c.idnew | uri %]" title="View on OPAC"><i class="fa fa-eye"></i> View on OPAC</a> |
425 |
[% END %] |
426 |
[% UNLESS c.location == 'opac_only' %] |
427 |
<a href="/cgi-bin/koha/tools/page.pl?page_id=[% c.idnew | uri %]" title="View on staff client"><i class="fa fa-eye"></i> View on staff client</a> |
428 |
[% END %] |
429 |
</li> |
430 |
</ul> |
431 |
</div> |
432 |
[% END %] |
397 |
</td> |
433 |
</td> |
398 |
</tr> |
434 |
</tr> |
399 |
[% END %] |
435 |
[% END %] |
Lines 414-420
Link Here
|
414 |
[% END %] |
450 |
[% END %] |
415 |
|
451 |
|
416 |
[% BLOCK locations_options %] |
452 |
[% BLOCK locations_options %] |
417 |
[% IF category == 'news' %] |
453 |
[% IF category == 'news' || category == 'pages' %] |
418 |
[% IF location == "staff_and_opac" %] |
454 |
[% IF location == "staff_and_opac" %] |
419 |
<option value="staff_and_opac" selected="selected">Librarian and OPAC interfaces</option> |
455 |
<option value="staff_and_opac" selected="selected">Librarian and OPAC interfaces</option> |
420 |
[% ELSE %] |
456 |
[% ELSE %] |
Lines 433-442
Link Here
|
433 |
<option value="opac_only">OPAC</option> |
469 |
<option value="opac_only">OPAC</option> |
434 |
[% END %] |
470 |
[% END %] |
435 |
|
471 |
|
436 |
[% IF location == "slip" %] |
472 |
[% UNLESS category == 'pages' %] |
437 |
<option value="slip" selected="selected">Slip</option> |
473 |
[% IF location == "slip" %] |
438 |
[% ELSE %] |
474 |
<option value="slip" selected="selected">Slip</option> |
439 |
<option value="slip">Slip</option> |
475 |
[% ELSE %] |
|
|
476 |
<option value="slip">Slip</option> |
477 |
[% END %] |
440 |
[% END %] |
478 |
[% END %] |
441 |
[% ELSE %] |
479 |
[% ELSE %] |
442 |
[% FOREACH l IN [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote' ] %] |
480 |
[% FOREACH l IN [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote' ] %] |