[% USE raw %]
[% USE Asset %]
[% USE Koha %]
[% USE KohaDates %]
[% USE Branches %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
Additional contents › Tools › Koha
[% INCLUDE 'doc-head-close.inc' %]
[% IF ( wysiwyg ) %]
[% SET editmode = "wysiwyg" %]
[% ELSE %]
[% SET editmode = "text" %]
[% Asset.css("lib/codemirror/codemirror.css") | $raw %]
[% Asset.css("lib/codemirror/lint.min.css") | $raw %]
[% END %]
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
[% IF op == 'add_form' %]
[% ELSE %]
[% END %]
[% FOR m IN messages %]
[% SWITCH m.code %]
[% CASE 'error_on_update' %]
An error occurred when updating this content. Perhaps it already exists
[% CASE 'error_on_insert' %]
An error occurred when adding this content. Check the logs
[% CASE 'error_on_delete' %]
An error occurred when deleting this content. Check the logs
[% CASE 'success_on_update' %]
Content updated successfully
[% CASE 'success_on_insert' %]
Content added successfully
[% CASE 'success_on_delete' %]
Content deleted successfully
[% CASE %]
[% m.code | html %]
[% END %]
[% END %]
[% IF op == 'add_form' %]
[% PROCESS add_form %]
[% ELSE %]
[% PROCESS list %]
[% END %]
[% IF op != 'add_form' %]
[% END %]
[% BLOCK add_form %]
[% IF additional_content %]
Modify an additional content
[% ELSE %]
New additional content ([% IF category == 'news' %]News[% ELSE %]HTML customizations[% END %])
Additional contents ([% IF category == 'news' %]News[% ELSE %]HTML customizations[% END %])
[% IF category == 'news' %]
See HTML customizations
[% ELSE %]
See News
[% END %]
[% IF ( CAN_user_parameters_manage_sysprefs ) %]
OPACUserJSOPACUserCSS
[% END %]
[% IF additional_contents.count %]
[% ELSE %]
There are no additional contents.
[% END %]
[% END %]
[% BLOCK locations_options %]
[% IF category == 'news' %]
[% IF location == "staff_and_opac" %]
[% ELSE %]
[% END %]
[% IF location == "staff_only" %]
[% ELSE %]
[% END %]
[% IF location == "opac_only" %]
[% ELSE %]
[% END %]
[% IF location == "slip" %]
[% ELSE %]
[% END %]
[% ELSE %]
[% FOREACH l IN [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote' ] %]
[% IF l == location %]
[% ELSE %]
[% END %]
[% END %]
[% END %]
[% END %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'calendar.inc' %]
[% Asset.js("js/tools-menu.js") | $raw %]
[% Asset.js("lib/hc-sticky.js") | $raw %]
[% IF additional_contents.count %]
[% INCLUDE 'datatables.inc' %]
[% ELSE %]
[% END %]
[% UNLESS ( wysiwyg ) %]
[% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %]
[% Asset.js( "lib/codemirror/xml.min.js" ) | $raw %]
[% Asset.js( "lib/codemirror/lint.min.js" ) | $raw %]
[% Asset.js( "lib/linters/htmlhint.min.js" ) | $raw %]
[% Asset.js( "lib/codemirror/html-lint.min.js" ) | $raw %]
[% ELSE %]
[% Asset.js("lib/tiny_mce/tinymce.min.js") | $raw %]
[% INCLUDE 'str/tinymce_i18n.inc' %]
[% END # /UNLESS wysiwyg %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]