diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt index 476f98b2e4..ed7cd00492 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt @@ -231,124 +231,122 @@ [% END %] [% IF borrowers %]
-
- - +
+ + + [% IF ( op == 'show' ) %] + + [% ELSE %] + + [% END %] + + + + + + + + + + + + + + + + + + + [% IF CanUpdatePasswordExpiration %] + + [% END %] + [% IF CanUpdateProtectPatron %] + + [% END %] + + + + + + [% FOREACH attrh IN attributes_header %] + + [% END %] + + + + [% FOREACH borrower IN borrowers %] [% IF ( op == 'show' ) %] - + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + [% IF CanUpdatePasswordExpiration %] - + [% IF borrower.password_expiration_date %] + + [% ELSE %] + + [% END %] [% END %] [% IF CanUpdateProtectPatron %] - + [% END %] - - - - - - [% FOREACH attrh IN attributes_header %] - + + + + + + [% FOREACH pa IN borrower.patron_attributes %] + [% IF ( pa.code ) %] + [%# Replace pa.attribute with pa.description if we prefer to display the description %] + + [% ELSE %] + + [% END %] [% END %] - - - [% FOREACH borrower IN borrowers %] - - [% IF ( op == 'show' ) %] - - - - - - - - - - - - - - - - - - - - [% IF CanUpdatePasswordExpiration %] - [% IF borrower.password_expiration_date %] - - [% ELSE %] - - [% END %] - [% END %] - [% IF CanUpdateProtectPatron %] - - [% END %] - - - - - - [% FOREACH pa IN borrower.patron_attributes %] - [% IF ( pa.code ) %] - [%# Replace pa.attribute with pa.description if we prefer to display the description %] - - [% ELSE %] - - [% END %] - [% END %] - - [% END %] - -
  Card numberSurnameFirst nameLibraryPatron categoryStreet numberAddressAddress 2CityStateZIP/Postal codeCountryPrimary emailPrimary phoneOther phoneFaxRegistration dateExpiry datePassword expiration dateProtectedCirculation noteOPAC noteMessageRestriction expirationRestriction comment[% attrh.attribute | html %]
  [% ELSE %] -   [% END %] - Card numberSurnameFirst nameLibraryPatron categoryStreet numberAddressAddress 2CityStateZIP/Postal codeCountryPrimary emailPrimary phoneOther phoneFaxRegistration dateExpiry date[% borrower.cardnumber | html %][% borrower.surname | html %][% borrower.firstname | html %][% Branches.GetName( borrower.branchcode ) | html %][% Categories.GetName(borrower.categorycode) | html %][% borrower.streetnumber | html %][% borrower.address | html %][% borrower.address2 | html %][% borrower.city | html %][% borrower.state | html %][% borrower.zipcode | html %][% borrower.country | html %][% borrower.email | html %][% borrower.phone | html %][% borrower.mobile | html %][% borrower.fax | html %][% borrower.dateenrolled | $KohaDates %][% borrower.dateexpiry | $KohaDates %]Password expiration date + [% borrower.password_expiration_date | $KohaDates %] + NeverProtected + [% IF borrower.protected %] + Yes + [% ELSE %] + No + [% END %] + Circulation noteOPAC noteMessageRestriction expirationRestriction comment[% attrh.attribute | html %][% borrower.borrowernotes | $raw | html_line_break %][% borrower.opacnote | html %] + [% FOREACH patron_message IN borrower.patron_messages %] + [% patron_message.message | html %]
+ + [% IF (patron_message.message_type == 'B') %] + ( OPAC ) + [% ELSE %] + ( Staff ) + [% END %] +

+ [% END %] +
[% borrower.debarred | $KohaDates %][% borrower.debarredcomment | html %][% pa.code | html %]=[% pa.attribute | html %]
- [% ELSE %] - - [% END %] - - [% borrower.cardnumber | html %][% borrower.surname | html %][% borrower.firstname | html %][% Branches.GetName( borrower.branchcode ) | html %][% Categories.GetName(borrower.categorycode) | html %][% borrower.streetnumber | html %][% borrower.address | html %][% borrower.address2 | html %][% borrower.city | html %][% borrower.state | html %][% borrower.zipcode | html %][% borrower.country | html %][% borrower.email | html %][% borrower.phone | html %][% borrower.mobile | html %][% borrower.fax | html %][% borrower.dateenrolled | $KohaDates %][% borrower.dateexpiry | $KohaDates %] - [% borrower.password_expiration_date | $KohaDates %] - Never - [% IF borrower.protected %] - Yes - [% ELSE %] - No - [% END %] - [% borrower.borrowernotes | $raw | html_line_break %][% borrower.opacnote | html %] - [% FOREACH patron_message IN borrower.patron_messages %] - [% patron_message.message | html %]
- - [% IF (patron_message.message_type == 'B') %] - ( OPAC ) - [% ELSE %] - ( Staff ) - [% END %] -

- [% END %] -
[% borrower.debarred | $KohaDates %][% borrower.debarredcomment | html %][% pa.code | html %]=[% pa.attribute | html %]
-
+ [% END %] + +
[% IF ( op == 'show' ) %] @@ -507,7 +505,6 @@ let patron_table = KohaTable("borrowerst", { "order": [[ 1, "asc" ]], "autoWidth": true, - "scrollX": true, }, table_settings); $("#selectallbutton").click(function() {