From 62360de77981681637a78b9d3a5ae192be5616be Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 13 Oct 2022 15:52:46 +0000 Subject: [PATCH] Bug 31766: Add page-section wrapper to notice table To test: 1. Apply patch 2. Look at the noitce page and notice how the table, and it's tools, now are wrapped with the page-section element. 3. Is it better than it was before? Feel free to osboslete these patch and replace it with your own. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/tools/letter.tt | 140 +++++++++--------- 1 file changed, 71 insertions(+), 69 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt index 535af68e5d..f3f0f70c59 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -198,77 +198,79 @@ [% END %] [% IF letter %] - - - - - - - - - - - - - - [% FOREACH lette IN letter %] - [% can_edit = lette.branchcode || !independant_branch %] +
+
LibraryModuleCodeNameLast updatedCopy noticeActions
+ - - - - - - - + + + + + + + - [% END # /FOREACH lette %] - -
- [% IF lette.branchname %] - [% lette.branchname | html %] - [% ELSE %] - (All libraries) - [% END %] - - [% SWITCH lette.module %] - [% CASE 'acquisition' %]Acquisition - [% CASE 'catalogue' %]Catalog - [% CASE 'circulation' %]Circulation - [% CASE 'orderacquisition' %]Order acquisition - [% CASE 'claimacquisition' %]Claim acquisition - [% CASE 'claimissues' %]Claim serial issue - [% CASE 'reserves' %]Holds - [% CASE 'ill' %]Interlibrary loans - [% CASE 'members' %]Patrons - [% CASE 'serial' %]Serials (new issue) - [% CASE 'suggestions' %]Suggestions - [% CASE 'pos' %]Point of sale - [% CASE %][% lette.module | html %] - [% END %] - [% lette.code | html %][% lette.name | html %][% lette.updated_on | $KohaDates with_hours = 1 %] - [% IF !independant_branch || !lette.branchcode %] -
- - - - - [% IF independant_branch %] - - [% ELSE %] - [% select_for_copy | $raw %] - [% END %] - -
- [% END # /IF !independent_branch %] -
- [% IF can_edit %] - Edit - [% END %] - [% IF !lette.protected && can_edit %] - Delete - [% END %] - LibraryModuleCodeNameLast updatedCopy noticeActions
+ + + [% FOREACH lette IN letter %] + [% can_edit = lette.branchcode || !independant_branch %] + + + [% IF lette.branchname %] + [% lette.branchname | html %] + [% ELSE %] + (All libraries) + [% END %] + + + [% SWITCH lette.module %] + [% CASE 'acquisition' %]Acquisition + [% CASE 'catalogue' %]Catalog + [% CASE 'circulation' %]Circulation + [% CASE 'orderacquisition' %]Order acquisition + [% CASE 'claimacquisition' %]Claim acquisition + [% CASE 'claimissues' %]Claim serial issue + [% CASE 'reserves' %]Holds + [% CASE 'ill' %]Interlibrary loans + [% CASE 'members' %]Patrons + [% CASE 'serial' %]Serials (new issue) + [% CASE 'suggestions' %]Suggestions + [% CASE 'pos' %]Point of sale + [% CASE %][% lette.module | html %] + [% END %] + + [% lette.code | html %] + [% lette.name | html %] + [% lette.updated_on | $KohaDates with_hours = 1 %] + + [% IF !independant_branch || !lette.branchcode %] +
+ + + + + [% IF independant_branch %] + + [% ELSE %] + [% select_for_copy | $raw %] + [% END %] + +
+ [% END # /IF !independent_branch %] + + + [% IF can_edit %] + Edit + [% END %] + [% IF !lette.protected && can_edit %] + Delete + [% END %] + + + [% END # /FOREACH lette %] + + + [% ELSE # IF lette %]
[% IF ( branchcode ) %] -- 2.39.5