[% 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 %]
[% WRAPPER 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
[% END %]
[% WRAPPER 'sub-header.inc' %]
[% END %]
[% 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[% ELSIF category == 'pages' %]Pages[% ELSE %]HTML customizations[% END %])