diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt
index 7f8c4cd3d8..0b87aff911 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt
@@ -27,11 +27,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+[% WRAPPER 'main-container.inc' aside='tools-menu' %]
Access files
@@ -64,16 +60,7 @@
[% END %]
[% END %]
-
-
-
-
-
-
-
-
+[% END %]
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/tools-menu.js") | $raw %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt
index 110f3de57a..085ed96e0b 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt
@@ -41,11 +41,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+[% WRAPPER 'main-container.inc' aside='cat-menu' %]
[% IF ( op == 'edit_form' ) %]
Rules for automatic item modifications by age
@@ -278,16 +274,7 @@
[% END %]
-
-
-
-
-
-
-
-
+[% END %]
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/automatic_item_modification_by_age.js") | $raw %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt
index a17668dea0..25d8586f9d 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt
@@ -38,11 +38,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+[% WRAPPER 'main-container.inc' aside='cat-menu' %]
Batch item [% IF ( del ) %]deletion[% ELSE %]modification[% END %]
-
-
-
-
-
-
-
-
+[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt
index 12724c2035..f8a876190f 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt
@@ -50,11 +50,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+[% WRAPPER 'main-container.inc' aside='cat-menu' %]
Batch record deletion
[% FOREACH message IN messages %]
@@ -252,16 +248,7 @@
No action defined for the template.
[% END %]
-
-
-
-
-
-
-
-
+[% END %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt
index 52332632e3..af1072dd40 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt
@@ -54,11 +54,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+ [% WRAPPER 'main-container.inc' aside='tools-menu' %]
Batch extend due dates
@@ -245,16 +241,7 @@
[% END %]
-
-
-
-
-
-
-
-
+ [% END %]
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/tools-menu.js") | $raw %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt
index f22dc2d96a..e4ecc183c5 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt
@@ -48,11 +48,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+ [% WRAPPER 'main-container.inc' aside='cat-menu' %]
Batch record modification
@@ -292,15 +288,7 @@
No action defined for the template.
[% END %]
-
-
-
-
-
-
-
+ [% END %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt
index 26c45eb6e7..a004c1586a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt
@@ -55,11 +55,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+[% WRAPPER 'main-container.inc' aside='tools-menu' %]
[% IF !OnlyMine %]
[% IF current_branch == '*' %]
@@ -265,16 +261,7 @@
[% END %]
-
-
-
-
-
-
-
-
+[% END %]
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/tools-menu.js") | $raw %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt
index 20cc4aa521..d52514aae2 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt
@@ -58,11 +58,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+[% WRAPPER 'main-container.inc' aside='tools-menu' %]
[% FOR m IN messages %]
@@ -340,16 +336,7 @@
[% END %]
[% END %]
-
-
-
-
-
-
-
-
+[% END %]
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/tools-menu.js") | $raw %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt
index 9843c14803..e3454df3d7 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt
@@ -34,11 +34,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+[% WRAPPER 'main-container.inc' aside='cat-menu' %]
Export data
@@ -338,16 +334,7 @@
[% END # /WRAPPER tab_panels %]
[% END # /WRAPPER tabs %]
-
-
-
-
-
-
-
-
+[% END %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'calendar.inc' %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt
index 49ebcb090b..43113757b0 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt
@@ -30,11 +30,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+[% WRAPPER 'main-container.inc' aside='tools-menu' %]
[% tx("{library} calendar", { library = Branches.GetName( branch ) }) | html %]
@@ -392,17 +388,7 @@
-
-
-
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+ [% SET aside = ( add_form || copy_form ) ? '' : 'tools-menu' %]
+ [% WRAPPER 'main-container.inc' aside=aside %]
[% IF ( no_op_set ) %]
Notices and slips
@@ -586,18 +577,7 @@
[% END # /IF delete_confirm %]
-
-
-
-
- [% UNLESS add_form or copy_form %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+ [% WRAPPER 'main-container.inc' aside='cat-menu' %]
Manage staged MARC records
[% IF ( import_batch_id ) %]
Batch [% import_batch_id | html %]
@@ -441,17 +437,7 @@
[% END # /IF import_batch_id %]
-
-
-
-
-
-
-
- [% INCLUDE 'messages.inc' %]
-
+[% WRAPPER 'main-container.inc' aside='tools-menu' %]
[% IF ( op == 'show_form' ) %]
Batch patron modification
@@ -463,16 +458,7 @@
[% END %]
-
-
-
-
-
-
-
-
+[% END %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'calendar.inc' %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt
index a051a420d5..5bc8fd694b 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt
@@ -29,11 +29,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
-
+[% WRAPPER 'main-container.inc' aside='tools-menu' %]
[% IF page %]
[% page.title | html %]
@@ -57,17 +52,8 @@
[% END %]
+[% END %]
-
-
-
-
-
-
-
-
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/tools-menu.js") | $raw %]
[% END %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt
index 9ba6b8b418..5b1f6f7a8f 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt
@@ -41,11 +41,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+[% WRAPPER 'main-container.inc' aside='tools-menu' %]
[% IF ( TOTAL ) %]
[% IF ( ERRORS ) %]
@@ -164,16 +160,7 @@
[% END %]
-
-
-
-
-
-
-
-
+[% END %]
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/tools-menu.js") | $raw %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt
index 586bb3fe91..46c4b637b9 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt
@@ -30,12 +30,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+[% WRAPPER 'main-container.inc' aside='tools-menu' %]
-
-
-
-
-
-
+[% END %]
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/tools-menu.js") | $raw %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt
index 75ce2c50f7..5806d5834b 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt
@@ -48,11 +48,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+[% WRAPPER 'main-container.inc' aside='tools-menu' %]
[% FOREACH m IN messages %]
@@ -163,16 +159,7 @@
[% END %]
-
-
-
-
-
-
-
-
+[% END %]
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/tools-menu.js") | $raw %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt
index 779dc1b852..861c282b2b 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tt
@@ -28,11 +28,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+[% WRAPPER 'main-container.inc' asides=['tools-menu', 'guided-reports-view.inc'] %]
Task scheduler
@@ -112,17 +108,8 @@
[% END %]
-
-
-
-
-
-
-
+[% END %]
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/tools-menu.js") | $raw %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt
index 03a6fb1e30..5a08cfa0dc 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt
@@ -46,11 +46,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+[% WRAPPER 'main-container.inc' aside='cat-menu' %]
[% FOREACH message IN messages %]
[% SET message_class = "alert-info" %]
@@ -252,16 +248,7 @@
[% END %]
-
-
-
-
-
-
-
-
+[% END %]
[% MACRO jsinclude BLOCK %]
[% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt
index a26bdcdb18..a6a079b7cf 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt
@@ -23,10 +23,7 @@
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
-
-
-
-
- [% INCLUDE 'messages.inc' %]
+[% WRAPPER 'main-container.inc' aside='cat-menu' %]
[% UNLESS itemnumber || biblionumber %]
Upload local cover image
@@ -295,17 +291,7 @@
[% END # /IF images.size %]
-
-
-
-
-
-
-
-
-
+[% END %]
[% MACRO jsinclude BLOCK %]