[% END %]
-
-
-
-[% UNLESS ( link_opac_base && link_self) %]
-
- [% UNLESS ( link_opac_base ) %]
- Warning: Preference OPACBaseURL not set, some links might not work!
- [% END %]
- [% UNLESS ( link_self ) %]
- Warning: Variable
link_self not set, some links might not work!
- [% END %]
-[% END %]
-[% UNLESS ( form || view ) %]
-
-[% END %]
-[% IF ( failed_add ) %]
-
- Failed to add page. Check that:
-
- - Your link title is unique
- - If specifying a parent page, the location is the same as your new page
-
-
-[% END %]
-[% IF ( view ) %]
-
-
- [% IF ( pages ) %]
-
- [% END %]
-
-
-
Pages: [% cms_page.title %]
-[% IF ( cms_page.publish == 1 ) %]
- [% cms_page.content %]
-[% ELSE %]
-
This page has not been published.
- [% cms_page.content %]
-[% END %]
-
-
-[% ELSIF ( form ) %]
-
+ [% IF ( form ) %]
+
[% ELSE %]
+
+ [% END %]
-
Pages
-
-
+
+
+
+
+ [% ELSE %]
+
+ [% END # IF page_list.size %]
+ [% END # IF view / form %]
+
+
+
+ [% UNLESS ( form ) %]
+
+ [% INCLUDE 'tools-menu.inc' %]
+
[% END %]
- [% END %]
-
-
-[% UNLESS ( form ) %]
-
- [% INCLUDE 'tools-menu.inc' %]
-[% END %]
-
+
[% MACRO jsinclude BLOCK %]
-[% INCLUDE 'datatables.inc' %]
-[% Asset.js("js/tools-menu.js") | $raw %]
-[% Asset.js("lib/tiny_mce/tiny_mce.js") | $raw %]
-
-[% END %]
+ tinyMCE.baseURL = "[% interface %]/lib/tiny_mce";
+ tinyMCE.init({
+ mode : "textareas",
+ theme : "advanced",
+ convert_urls : false,
+ relative_urls : false,
+ content_css : "[% interface %]/[% theme %]/css/tinymce.css",
+ plugins : "table,save,advhr,advlink,searchreplace,print,contextmenu",
+ theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,search,replace,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,|,print",
+ theme_advanced_buttons2 : "tablecontrols,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,|,visualaid,|,sub,sup,|,charmap",
+ theme_advanced_buttons3 : "",
+ theme_advanced_toolbar_location : "top",
+ theme_advanced_toolbar_align : "left",
+ theme_advanced_path_location : "bottom",
+ theme_advanced_resizing : true,
+ plugin_insertdate_dateFormat : "%Y-%m-%d",
+ plugin_insertdate_timeFormat : "%H:%M:%S",
+ apply_source_formatting : true,
+ height : "300",
+ width : "700"
+ });
+ //]]>
+
+[% END # jsinclude %]
[% INCLUDE 'intranet-bottom.inc' %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt
@@ -105,11 +105,11 @@
[% END %]
[% IF ( CAN_user_tools_edit_pages ) %]
-
Pages
-
Create and edit additional content pages
-
- [% INCLUDE 'cms-pages-nav.inc' %]
-
+
Pages
+
Create and edit additional content pages
+
+ [% INCLUDE 'cms-pages-nav.inc' %]
+
[% END %]
[% IF ( CAN_user_tools_schedule_tasks ) %]
--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/navigation.inc
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/navigation.inc
@@ -4,21 +4,31 @@
[% END %]
[% OpacNav | $raw %]
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-cmspages.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-cmspages.tt
@@ -13,7 +13,12 @@
[% IF ( cms_page.parent ) %]
[% FOREACH parent IN parents %]
- [% IF parent.id == cms_page.parent %]
[% END %]
+ [% IF parent.id == cms_page.parent %]
+