@@ -, +, @@ collapsible sections - Each section of the form should have an arrow indicator by the section heading indicating whether it is expanded or collapsed. - Mousing over the heading should show a border to help show the clickable region. - Clicking the header should collapse the section and the arrow indicator should change to reflect that the section is collapsed. - Go to Administration -> Sytem preferences and search for CollapseFieldsPatronAddForm. - Make some selections from the dropdown and save your changes. - Return to the patron entry form and confirm that your selections are collapsed by default. --- .../en/includes/member-alt-address-style.inc | 5 +- .../en/includes/member-alt-contact-style.inc | 5 +- .../en/includes/member-main-address-style.inc | 5 +- .../prog/en/modules/members/memberentrygen.tt | 135 +++++++++++++----- 4 files changed, 112 insertions(+), 38 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc @@ -2,7 +2,10 @@ [% USE AuthorisedValues %] [% BLOCK 'alt-address-style' %]
- Alternate address + + + Alternate address +
    [% IF Koha.Preference( 'AddressFormat' ) %] [% PROCESS "member-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }" %] --- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style.inc @@ -1,7 +1,10 @@ [% USE Koha %] [% BLOCK 'alt-contact-style' %]
    - Alternate contact + + + Alternate contact +
      [% IF Koha.Preference( 'AddressFormat' ) %] [% PROCESS "member-alt-contact-style-${ Koha.Preference( 'AddressFormat' ) }" %] --- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc @@ -2,7 +2,10 @@ [% USE AuthorisedValues %] [% BLOCK 'main-address-style' %]
      - Main address + + + Main address +
        [% IF Koha.Preference( 'AddressFormat' ) %] [% PROCESS "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }" %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -25,12 +25,27 @@ [% t("Patrons") | html %] › [% t("Koha") | html %] [% END %] - -[% INCLUDE 'doc-head-close.inc' %] + +fieldset legend i { + color: #4C7AA8; + font-size: 80%; + padding-right: .2rem; +} + +legend.collapsed i.fa.fa-caret-down::before { + content: "\f0da"; +} +[% END %] @@ -200,7 +215,7 @@ legend:hover { [% SET fieldstohide = Koha.Preference('CollapseFieldsPatronAddForm') %] [% IF Koha.Preference('CollapseFieldsPatronAddForm') %][% UNLESS step %]

        - Show collapsed fields: + [% FOREACH field IN fieldstohide.split(',') %] [% SWITCH field %] [% CASE 'identity' %] Patron identity | @@ -271,7 +286,10 @@ legend:hover { [% IF ( step_1 ) %] [% UNLESS notitle && nosurname && nofirstname && nomiddle_name && nodateofbirth && noinitials && noothernames &&nosex && nopronouns %]

        - [% IF ( patron_category.category_type == 'I' ) %]Organization [% ELSE %]Patron [% END %]identity + + + [% IF ( patron_category.category_type == 'I' ) %]Organization [% ELSE %]Patron [% END %]identity +
          [% UNLESS ( patron_category.category_type == 'I' ) %] [% UNLESS notitle %] @@ -466,7 +484,10 @@ legend:hover { [% SET possible_relationships = Koha.Preference('borrowerRelationship') %]
          - Patron guarantor + + + Patron guarantor +
          [% FOREACH r IN relationships %] @@ -628,7 +649,10 @@ legend:hover { [% UNLESS nocontactname && nocontactfirstname && norelationship %]
          - Non-patron guarantor + + + Non-patron guarantor +
            [% UNLESS nocontactname %]
          1. @@ -692,7 +716,10 @@ legend:hover { [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
            - Contact information + + + Contact information +
              [% UNLESS nophone %]
            1. @@ -881,7 +908,10 @@ legend:hover { [% IF ( step_3 ) %] [% SET autoMemberNum = Koha.Preference('autoMemberNum') %]
              - Library management + + + Library management +
                [% UNLESS nocardnumber %]
              1. @@ -1112,7 +1142,11 @@ legend:hover { [% UNLESS nodateenrolled && noopacnote && noborrowernotes %]
                - Library setup
                  + + + Library setup + +
                    [% UNLESS nodateenrolled %]
                  1. [% IF ( mandatorydateenrolled ) %] @@ -1198,7 +1232,10 @@ legend:hover { [% UNLESS nouserid && nopassword && !CanUpdatePasswordExpiration %]
                    - OPAC/Staff interface login + + + OPAC/Staff interface login +
                      [% UNLESS nouserid %]
                    1. @@ -1354,7 +1391,10 @@ legend:hover { [% UNLESS ( op == 'add_form' || op == 'duplicate' || ( nogonenoaddress && nolost ) ) %]
                      - Patron account flags + + + Patron account flags +

                      Setting a value here will prevent patron from circulating materials and placing holds on the OPAC

                        [% UNLESS nogonenoaddress %] @@ -1430,7 +1470,10 @@ legend:hover {
                      [% END %]
                      - Patron restrictions + + + Patron restrictions + [% IF ( patron.restrictions.count ) %] @@ -1519,7 +1562,10 @@ legend:hover { [% IF ( step_7 ) %] [% IF Koha.Preference('HouseboundModule') %]
                      - Housebound roles + + + Housebound roles +