From de26db413f0f9292d74032b97afb935b11790f7d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 7 May 2025 15:05:13 +0200 Subject: [PATCH] Bug 36586: Fix tidy --- .../bootstrap/en/modules/sci/sci-main.tt | 455 +++++++++--------- 1 file changed, 234 insertions(+), 221 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt index 1572315c32e..1a6330580ad 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt @@ -25,10 +25,11 @@ [% SET SelfCheckInMainUserBlock = AdditionalContents.get( location => "SelfCheckInMainUserBlock", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] [% INCLUDE 'doc-head-open.inc' %] [% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %] -Self check-in › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha [% END %] +Self check-in › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha[% END %] - + + [% IF ( Koha.Preference('OpacFavicon') ) %] @@ -43,16 +44,28 @@ [% ELSE %] [% Asset.css("css/sco.css") | $raw %] [% END %] -[% IF ( Koha.Preference('OPACUserCSS') ) %][% END %] +[% IF ( Koha.Preference('OPACUserCSS') ) %] + + + +[% END %] [% IF Branches.GetBranchSpecificCSS( Branches.GetLoggedInBranchcode() || default_branch) %] + + +[% END %] +[% IF ( Koha.Preference('SelfCheckInUserCSS') ) %] + + + [% END %] -[% IF ( Koha.Preference('SelfCheckInUserCSS') ) %][% END %] [% IF lang && lang != 'en' %] [% Asset.js(lang _ '/js/locale_data.js') | $raw %] @@ -61,118 +74,120 @@ [% Asset.js('js/i18n.js') | $raw %] - [% INCLUDE 'masthead-sci.inc' %] - -
-
-
-
-
-

[% LibraryName | html %] Self check-in

+[% INCLUDE 'masthead-sci.inc' %] + +
+
+
+
+
+

[% LibraryName | html %] Self check-in

+
+ + [% IF ( nopermission ) %] + [%# This is what is displayed if user doesn't have permission %] +
+

Access denied

+

Sorry, this self check-in station has lost authentication. Please contact the administrator to resolve this problem.

- - [% IF ( nopermission ) %] - [%# This is what is displayed if user doesn't have permission %] -
-

Access denied

-

Sorry, this self check-in station has lost authentication. Please contact the administrator to resolve this problem.

-
- [% ELSIF ( different_ip ) %] - [%# This is what is displayed if user doesn't have permission %] -
-

Session lost

-

You are accessing self check-in from a different IP address! Please log in again.

-
- [% ELSIF ( checkins ) %] - [%# We have results from a check-in attempt %] -
- [% IF ( success && success.size > 0 || errors && errors.size > 0 ) %] - - - - - - - - [% FOREACH success_line IN success %] - - - - - [% END %] - [% FOREACH error IN errors %] - - - - - [% END %] - - -
- Finish -
- [% ELSE %] -
-

Your request included no check-ins.

+ [% ELSIF ( different_ip ) %] + [%# This is what is displayed if user doesn't have permission %] +
+

Session lost

+

You are accessing self check-in from a different IP address! Please log in again.

+
+ [% ELSIF ( checkins ) %] + [%# We have results from a check-in attempt %] +
+ [% IF ( success && success.size > 0 || errors && errors.size > 0 ) %] + + + + + + + + [% FOREACH success_line IN success %] + + + + + [% END %] + [% FOREACH error IN errors %] + + + + + [% END %] + + +
+ Finish +
+ [% ELSE %] +
+

Your request included no check-ins.

+
+ [% END %] +
+ [% ELSE %] + [%# Prompt for barcodes %] +
+
+ [% INCLUDE 'csrf-token.inc' %] + Scan +
+
+
- [% END %] -
- [% ELSE %] - [%# Prompt for barcodes %] -
- - [% INCLUDE 'csrf-token.inc' %] - Scan -
-
- -
-
- +
+ +
+
+ +
+
+ +
+
+
+ + + + + + + +
-
- + + +
+ +
-
-
-
-
- - - - - - - - -
- -
- - -
-
-
- -
- [% END # /IF ( nopermission ) %] - - [% IF ( SelfCheckInMainUserBlock ) %] -
- [% PROCESS koha_news_block news => SelfCheckInMainUserBlock %] -
- [% END %] -
-
-
+ +
+ +
+ + + +
+ + [% END # /IF ( nopermission ) %] -
+ [% IF ( SelfCheckInMainUserBlock ) %] +
[% PROCESS koha_news_block news => SelfCheckInMainUserBlock %]
+ [% END %] +
+ +
+ +
+ +
+ [% # Help modal %] + +
+ -
-
-
+ + + + + + [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] -[% Asset.js('js/timeout.js') | $raw %] + [% Asset.js('js/timeout.js') | $raw %] - [% IF ( Koha.Preference('SelfCheckInUserJS') ) %] - + [% END %] [% END %] -- 2.34.1