View | Details | Raw Unified | Return to bug 35511
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc (-1 / +4 lines)
Lines 2-8 Link Here
2
[% USE AuthorisedValues %]
2
[% USE AuthorisedValues %]
3
[% BLOCK 'alt-address-style' %]
3
[% BLOCK 'alt-address-style' %]
4
    <fieldset class="rows" id="memberentry_address">
4
    <fieldset class="rows" id="memberentry_address">
5
        <legend id="alt_address_lgd">Alternate address</legend>
5
        <legend class="expanded" id="alt_address_lgd">
6
            <i class="fa fa-caret-down"></i>
7
            Alternate address
8
        </legend>
6
        <ol>
9
        <ol>
7
            [% IF Koha.Preference( 'AddressFormat' ) %]
10
            [% IF Koha.Preference( 'AddressFormat' ) %]
8
                [% PROCESS "member-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }" %]
11
                [% PROCESS "member-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }" %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style.inc (-1 / +4 lines)
Lines 1-7 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% BLOCK 'alt-contact-style' %]
2
[% BLOCK 'alt-contact-style' %]
3
    <fieldset class="rows" id="memberentry_altaddress">
3
    <fieldset class="rows" id="memberentry_altaddress">
4
        <legend id="alt_contact_lgd">Alternate contact</legend>
4
        <legend class="expanded" id="alt_contact_lgd">
5
            <i class="fa fa-caret-down"></i>
6
            Alternate contact
7
        </legend>
5
        <ol>
8
        <ol>
6
            [% IF Koha.Preference( 'AddressFormat' ) %]
9
            [% IF Koha.Preference( 'AddressFormat' ) %]
7
                [% PROCESS "member-alt-contact-style-${ Koha.Preference( 'AddressFormat' ) }" %]
10
                [% PROCESS "member-alt-contact-style-${ Koha.Preference( 'AddressFormat' ) }" %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc (-1 / +4 lines)
Lines 2-8 Link Here
2
[% USE AuthorisedValues %]
2
[% USE AuthorisedValues %]
3
[% BLOCK 'main-address-style' %]
3
[% BLOCK 'main-address-style' %]
4
    <fieldset class="rows" id="memberentry_mainaddress">
4
    <fieldset class="rows" id="memberentry_mainaddress">
5
        <legend id="main_address_lgd">Main address</legend>
5
        <legend class="expanded" id="main_address_lgd">
6
            <i class="fa fa-caret-down"></i>
7
            Main address
8
        </legend>
6
        <ol>
9
        <ol>
7
            [% IF Koha.Preference( 'AddressFormat' ) %]
10
            [% IF Koha.Preference( 'AddressFormat' ) %]
8
                [% PROCESS "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }" %]
11
                [% PROCESS "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }" %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-36 / +100 lines)
Lines 24-35 Link Here
24
    [% t("Patrons") | html %] &rsaquo;
24
    [% t("Patrons") | html %] &rsaquo;
25
    [% t("Koha") | html %]
25
    [% t("Koha") | html %]
26
[% END %]</title>
26
[% END %]</title>
27
<style>
27
[% INCLUDE 'doc-head-close.inc' %]
28
legend:hover {
28
<style>[% FILTER collapse %]
29
fieldset legend {
30
    border: 1px solid #FFF;
31
    padding: .7em;
32
}
33
fieldset legend:hover {
34
    border: 1px solid #6FAF44;
29
    cursor: pointer;
35
    cursor: pointer;
30
}
36
}
31
</style>
37
32
[% INCLUDE 'doc-head-close.inc' %]
38
fieldset legend i {
39
    color: #4C7AA8;
40
    font-size: 80%;
41
    padding-right: .2rem;
42
}
43
44
legend.collapsed i.fa.fa-caret-down::before {
45
    content: "\f0da";
46
}
47
[% END %]</style>
33
</head>
48
</head>
34
49
35
<body id="pat_memberentrygen" class="pat">
50
<body id="pat_memberentrygen" class="pat">
Lines 199-205 legend:hover { Link Here
199
                        [% SET fieldstohide = Koha.Preference('CollapseFieldsPatronAddForm') %]
214
                        [% SET fieldstohide = Koha.Preference('CollapseFieldsPatronAddForm') %]
200
                        [% IF Koha.Preference('CollapseFieldsPatronAddForm') %][% UNLESS step %]
215
                        [% IF Koha.Preference('CollapseFieldsPatronAddForm') %][% UNLESS step %]
201
                            <p id="selections">
216
                            <p id="selections">
202
                                <input type="checkbox" id="toggle_hidden_fields" title="These fields are collapsed by default by the CollapseFieldsPatronAddForm system preference"><strong>Show collapsed fields:</strong>
217
                                <label><input type="checkbox" id="toggle_hidden_fields" title="These fields are collapsed by default by the CollapseFieldsPatronAddForm system preference"><strong>Show collapsed fields:</strong></label>
203
                                [% FOREACH field IN fieldstohide.split(',') %]
218
                                [% FOREACH field IN fieldstohide.split(',') %]
204
                                    [% SWITCH field %]
219
                                    [% SWITCH field %]
205
                                        [% CASE 'identity' %] <span>Patron identity</span> |
220
                                        [% CASE 'identity' %] <span>Patron identity</span> |
Lines 270-276 legend:hover { Link Here
270
                            [% IF ( step_1 ) %]
285
                            [% IF ( step_1 ) %]
271
                                [% UNLESS notitle && nosurname && nofirstname && nomiddle_name && nodateofbirth && noinitials && noothernames &&nosex && nopronouns %]
286
                                [% UNLESS notitle && nosurname && nofirstname && nomiddle_name && nodateofbirth && noinitials && noothernames &&nosex && nopronouns %]
272
                                    <fieldset class="rows" id="memberentry_identity">
287
                                    <fieldset class="rows" id="memberentry_identity">
273
                                        <legend id="identity_lgd">[% IF ( patron_category.category_type == 'I' ) %]<span>Organization [% ELSE %]Patron [% END %]identity</span></legend>
288
                                        <legend class="expanded" id="identity_lgd">
289
                                            <i class="fa fa-caret-down" title="Collapse this section"></i>
290
                                            [% IF ( patron_category.category_type == 'I' ) %]<span>Organization [% ELSE %]Patron [% END %]identity</span>
291
                                        </legend>
274
                                        <ol>
292
                                        <ol>
275
                                            [% UNLESS ( patron_category.category_type == 'I' ) %]
293
                                            [% UNLESS ( patron_category.category_type == 'I' ) %]
276
                                                [% UNLESS notitle %]
294
                                                [% UNLESS notitle %]
Lines 465-471 legend:hover { Link Here
465
                                    [% SET possible_relationships = Koha.Preference('borrowerRelationship') %]
483
                                    [% SET possible_relationships = Koha.Preference('borrowerRelationship') %]
466
                                    <div id="memberentry_guarantor_anchor">
484
                                    <div id="memberentry_guarantor_anchor">
467
                                        <fieldset id="memberentry_guarantor" class="rows">
485
                                        <fieldset id="memberentry_guarantor" class="rows">
468
                                            <legend>Patron guarantor</legend>
486
                                            <legend class="expanded" id="patron_guarantor_lgd">
487
                                                <i class="fa fa-caret-down"></i>
488
                                                Patron guarantor
489
                                            </legend>
469
490
470
                                            <div id="guarantor_relationships">
491
                                            <div id="guarantor_relationships">
471
                                                [% FOREACH r IN relationships %]
492
                                                [% FOREACH r IN relationships %]
Lines 627-633 legend:hover { Link Here
627
648
628
                                    [% UNLESS nocontactname && nocontactfirstname && norelationship %]
649
                                    [% UNLESS nocontactname && nocontactfirstname && norelationship %]
629
                                        <fieldset class="rows" id="non_patron_guarantor">
650
                                        <fieldset class="rows" id="non_patron_guarantor">
630
                                            <legend>Non-patron guarantor</legend>
651
                                            <legend class="expanded" id="non_patron_guarantor_lgd">
652
                                                <i class="fa fa-caret-down"></i>
653
                                                Non-patron guarantor
654
                                            </legend>
631
                                            <ol>
655
                                            <ol>
632
                                                [% UNLESS nocontactname %]
656
                                                [% UNLESS nocontactname %]
633
                                                    <li>
657
                                                    <li>
Lines 691-697 legend:hover { Link Here
691
715
692
                                [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
716
                                [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
693
                                    <fieldset class="rows" id="memberentry_contact">
717
                                    <fieldset class="rows" id="memberentry_contact">
694
                                        <legend id="contact_lgd">Contact information</legend>
718
                                        <legend class="expanded" id="contact_lgd">
719
                                            <i class="fa fa-caret-down"></i>
720
                                            Contact information
721
                                        </legend>
695
                                        <ol>
722
                                        <ol>
696
                                            [% UNLESS nophone %]
723
                                            [% UNLESS nophone %]
697
                                                <li>
724
                                                <li>
Lines 880-886 legend:hover { Link Here
880
                            [% IF ( step_3 ) %]
907
                            [% IF ( step_3 ) %]
881
                                [% SET autoMemberNum = Koha.Preference('autoMemberNum') %]
908
                                [% SET autoMemberNum = Koha.Preference('autoMemberNum') %]
882
                                <fieldset class="rows" id="memberentry_library_management">
909
                                <fieldset class="rows" id="memberentry_library_management">
883
                                    <legend id="library_management_lgd">Library management</legend>
910
                                    <legend class="expanded" id="library_management_lgd">
911
                                        <i class="fa fa-caret-down"></i>
912
                                        Library management
913
                                    </legend>
884
                                    <ol>
914
                                    <ol>
885
                                        [% UNLESS nocardnumber %]
915
                                        [% UNLESS nocardnumber %]
886
                                            <li>
916
                                            <li>
Lines 1111-1117 legend:hover { Link Here
1111
1141
1112
                                [% UNLESS nodateenrolled &&  noopacnote && noborrowernotes %]
1142
                                [% UNLESS nodateenrolled &&  noopacnote && noborrowernotes %]
1113
                                    <fieldset class="rows" id="memberentry_subscription">
1143
                                    <fieldset class="rows" id="memberentry_subscription">
1114
                                        <legend id="library_setup_lgd">Library setup</legend><ol>
1144
                                        <legend class="expanded" id="library_setup_lgd">
1145
                                            <i class="fa fa-caret-down"></i>
1146
                                            Library setup
1147
                                        </legend>
1148
                                        <ol>
1115
                                        [% UNLESS nodateenrolled %]
1149
                                        [% UNLESS nodateenrolled %]
1116
                                            <li>
1150
                                            <li>
1117
                                                [% IF ( mandatorydateenrolled ) %]
1151
                                                [% IF ( mandatorydateenrolled ) %]
Lines 1197-1203 legend:hover { Link Here
1197
1231
1198
                                [% UNLESS nouserid && nopassword && !CanUpdatePasswordExpiration %]
1232
                                [% UNLESS nouserid && nopassword && !CanUpdatePasswordExpiration %]
1199
                                    <fieldset class="rows" id="memberentry_userid">
1233
                                    <fieldset class="rows" id="memberentry_userid">
1200
                                        <legend id="opac_staff_login_lgd">OPAC/Staff interface login</legend>
1234
                                        <legend class="expanded" id="opac_staff_login_lgd">
1235
                                            <i class="fa fa-caret-down"></i>
1236
                                            OPAC/Staff interface login
1237
                                        </legend>
1201
                                        <ol>
1238
                                        <ol>
1202
                                            [% UNLESS nouserid %]
1239
                                            [% UNLESS nouserid %]
1203
                                                <li>
1240
                                                <li>
Lines 1353-1359 legend:hover { Link Here
1353
                                <!--this zones are not necessary in modif mode -->
1390
                                <!--this zones are not necessary in modif mode -->
1354
                                [% UNLESS ( opadd || opduplicate || ( nogonenoaddress && nolost ) ) %]
1391
                                [% UNLESS ( opadd || opduplicate || ( nogonenoaddress && nolost ) ) %]
1355
                                    <fieldset class="rows" id="memberentry_account_flags">
1392
                                    <fieldset class="rows" id="memberentry_account_flags">
1356
                                        <legend id="account_flags_lgd">Patron account flags</legend>
1393
                                        <legend class="expanded" id="account_flags_lgd">
1394
                                            <i class="fa fa-caret-down"></i>
1395
                                            Patron account flags
1396
                                        </legend>
1357
                                        <p>Setting a value here will prevent patron from circulating materials and placing holds on the OPAC</p>
1397
                                        <p>Setting a value here will prevent patron from circulating materials and placing holds on the OPAC</p>
1358
                                        <ol class="radio">
1398
                                        <ol class="radio">
1359
                                            [% UNLESS nogonenoaddress %]
1399
                                            [% UNLESS nogonenoaddress %]
Lines 1429-1435 legend:hover { Link Here
1429
                                    </fieldset> <!-- /#memberentry_account_flags -->
1469
                                    </fieldset> <!-- /#memberentry_account_flags -->
1430
                                [% END %]
1470
                                [% END %]
1431
                                    <fieldset class="rows" id="memberentry_restrictions">
1471
                                    <fieldset class="rows" id="memberentry_restrictions">
1432
                                        <legend id="restrictions_lgd">Patron restrictions</legend>
1472
                                        <legend class="expanded" id="restrictions_lgd">
1473
                                            <i class="fa fa-caret-down"></i>
1474
                                            Patron restrictions
1475
                                        </legend>
1433
                                        [% IF ( patron.restrictions.count ) %]
1476
                                        [% IF ( patron.restrictions.count ) %]
1434
                                            <table>
1477
                                            <table>
1435
                                                <thead>
1478
                                                <thead>
Lines 1518-1524 legend:hover { Link Here
1518
                            [% IF ( step_7 ) %]
1561
                            [% IF ( step_7 ) %]
1519
                                [% IF Koha.Preference('HouseboundModule') %]
1562
                                [% IF Koha.Preference('HouseboundModule') %]
1520
                                    <fieldset class="rows" id="memberentry_housebound_roles">
1563
                                    <fieldset class="rows" id="memberentry_housebound_roles">
1521
                                        <legend id="housebound_roles">Housebound roles</legend>
1564
                                        <legend class="expanded" id="housebound_roles">
1565
                                            <i class="fa fa-caret-down"></i>
1566
                                            Housebound roles
1567
                                        </legend>
1522
                                        <ol class="radio">
1568
                                        <ol class="radio">
1523
                                            <li>
1569
                                            <li>
1524
                                                <label class="radio" for="housebound_chooser">
1570
                                                <label class="radio" for="housebound_chooser">
Lines 1559-1565 legend:hover { Link Here
1559
                                [% IF Koha.Preference('ExtendedPatronAttributes') %]
1605
                                [% IF Koha.Preference('ExtendedPatronAttributes') %]
1560
                                    [% UNLESS ( no_patron_attribute_types ) %]
1606
                                    [% UNLESS ( no_patron_attribute_types ) %]
1561
                                        <fieldset class="rows" id="memberentry_patron_attributes">
1607
                                        <fieldset class="rows" id="memberentry_patron_attributes">
1562
                                            <legend id="patron_attributes_lgd">Additional attributes and identifiers</legend>
1608
                                            <legend class="expanded" id="patron_attributes_lgd">
1609
                                                <i class="fa fa-caret-down"></i>
1610
                                                Additional attributes and identifiers
1611
                                            </legend>
1563
                                            <input type="hidden" name="setting_extended_patron_attributes" value="1" />
1612
                                            <input type="hidden" name="setting_extended_patron_attributes" value="1" />
1564
                                            [% FOREACH pa_loo IN patron_attributes %]
1613
                                            [% FOREACH pa_loo IN patron_attributes %]
1565
                                                <ol class="attributes_table">
1614
                                                <ol class="attributes_table">
Lines 1619-1625 legend:hover { Link Here
1619
                            [% IF ( step_5 ) %]
1668
                            [% IF ( step_5 ) %]
1620
                                [% IF ( EnhancedMessagingPreferences ) %]
1669
                                [% IF ( EnhancedMessagingPreferences ) %]
1621
                                    <fieldset class="rows" id="memberentry_messaging_prefs">
1670
                                    <fieldset class="rows" id="memberentry_messaging_prefs">
1622
                                        <legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend>
1671
                                        <legend class="expanded" id="patron_messaging_prefs_lgd">
1672
                                            <i class="fa fa-caret-down"></i>
1673
                                            Patron messaging preferences
1674
                                        </legend>
1623
                                        <div id="messaging_prefs_loading" class="form-message" style="display:none">
1675
                                        <div id="messaging_prefs_loading" class="form-message" style="display:none">
1624
                                            <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading new messaging defaults
1676
                                            <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading new messaging defaults
1625
                                        </div>
1677
                                        </div>
Lines 1691-1782 legend:hover { Link Here
1691
            }
1743
            }
1692
        }
1744
        }
1693
        var Sticky;
1745
        var Sticky;
1746
1694
        function showHideFields(){
1747
        function showHideFields(){
1748
            $("#messaging_prefs_loading, #guarantor_template").hide();
1695
            [% UNLESS step == 1 %]
1749
            [% UNLESS step == 1 %]
1696
                [% IF fieldstohide.match('identity') %]
1750
                [% IF fieldstohide.match('identity') %]
1697
                    $("#memberentry_identity").find('legend').nextAll().toggle();
1751
                    togglePanel( $("#identity_lgd") );
1698
                [% END %]
1752
                [% END %]
1699
                [% IF show_guarantor || guarantor %]
1753
                [% IF show_guarantor || guarantor %]
1700
                    [% IF fieldstohide.match('guarantor') %]
1754
                    [% IF fieldstohide.match('guarantor') %]
1701
                        $("#memberentry_guarantor").find('legend').nextAll().toggle();
1755
                        togglePanel( $("#patron_guarantor_lgd") );
1702
                        $("#guarantor_template").toggle();
1703
                    [% END %]
1756
                    [% END %]
1704
                    [% IF fieldstohide.match('nonpatron_guarantor') %]
1757
                    [% IF fieldstohide.match('nonpatron_guarantor') %]
1705
                        $("#non_patron_guarantor").find('legend').nextAll().toggle();
1758
                        togglePanel( $("#non_patron_guarantor_lgd") );
1706
                    [% END %]
1759
                    [% END %]
1707
                [% END %]
1760
                [% END %]
1708
                [% IF fieldstohide.match('primary_address') %]
1761
                [% IF fieldstohide.match('primary_address') %]
1709
                    $("#memberentry_mainaddress").find('legend').nextAll().toggle();
1762
                    togglePanel( $("#main_address_lgd") );
1710
                [% END %]
1763
                [% END %]
1711
                [% IF fieldstohide.match('primary_contact') %]
1764
                [% IF fieldstohide.match('primary_contact') %]
1712
                    $("#memberentry_contact").find('legend').nextAll().toggle();
1765
                    togglePanel( $("#contact_lgd") );
1713
                [% END %]
1766
                [% END %]
1714
            [% END %]
1767
            [% END %]
1715
            [% UNLESS step == 6 %]
1768
            [% UNLESS step == 6 %]
1716
                [% IF fieldstohide.match('alt_address') %]
1769
                [% IF fieldstohide.match('alt_address') %]
1717
                    $("#memberentry_address").find('legend').nextAll().toggle();
1770
                    togglePanel( $("#alt_address_lgd") );
1718
                [% END %]
1771
                [% END %]
1719
            [% END %]
1772
            [% END %]
1720
            [% UNLESS step == 2 %]
1773
            [% UNLESS step == 2 %]
1721
                [% IF fieldstohide.match('alt_contact') %]
1774
                [% IF fieldstohide.match('alt_contact') %]
1722
                    $("#memberentry_altaddress").find('legend').nextAll().toggle();
1775
                    togglePanel( $("#alt_contact_lgd") );
1723
                [% END %]
1776
                [% END %]
1724
            [% END %]
1777
            [% END %]
1725
            [% UNLESS step == 3 %]
1778
            [% UNLESS step == 3 %]
1726
                [% IF fieldstohide.match('lib_mgmt') %]
1779
                [% IF fieldstohide.match('lib_mgmt') %]
1727
                        $("#memberentry_library_management").find('legend').nextAll().toggle();
1780
                    togglePanel( $("#library_management_lgd") );
1728
                [% END %]
1781
                [% END %]
1729
                [% UNLESS nodateenrolled && noopacnote && noborrowernotes %]
1782
                [% UNLESS nodateenrolled && noopacnote && noborrowernotes %]
1730
                    [% IF fieldstohide.match('lib_setup') %]
1783
                    [% IF fieldstohide.match('lib_setup') %]
1731
                        $("#memberentry_subscription").find('legend').nextAll().toggle();
1784
                        togglePanel( $("#library_setup_lgd") );
1732
                    [% END %]
1785
                    [% END %]
1733
                [% END %]
1786
                [% END %]
1734
                [% UNLESS nouserid && nopassword %]
1787
                [% UNLESS nouserid && nopassword %]
1735
                    [% IF fieldstohide.match('login') %]
1788
                    [% IF fieldstohide.match('login') %]
1736
                        $("#memberentry_userid").find('legend').nextAll().toggle();
1789
                        togglePanel( $("#opac_staff_login_lgd") );
1737
                    [% END %]
1790
                    [% END %]
1738
                [% END %]
1791
                [% END %]
1739
                [% UNLESS ( opadd || opduplicate ) %]
1792
                [% UNLESS ( opadd || opduplicate ) %]
1740
                    [% IF fieldstohide.match('flags') %]
1793
                    [% IF fieldstohide.match('flags') %]
1741
                        $("#memberentry_account_flags").find('legend').nextAll().toggle();
1794
                        togglePanel( $("#account_flags_lgd") );
1742
                    [% END %]
1795
                    [% END %]
1743
                [% END %]
1796
                [% END %]
1744
                [% IF fieldstohide.match('debarments') %]
1797
                [% IF fieldstohide.match('debarments') %]
1745
                    $("#memberentry_restrictions").find('legend').nextAll().toggle();
1798
                    togglePanel( $("#restrictions_lgd") );
1746
                [% END %]
1799
                [% END %]
1747
            [% END %]
1800
            [% END %]
1748
            [% UNLESS step == 7 %]
1801
            [% UNLESS step == 7 %]
1749
                [% IF Koha.Preference('HouseboundModule') %]
1802
                [% IF Koha.Preference('HouseboundModule') %]
1750
                    [% IF fieldstohide.match('housebound') %]
1803
                    [% IF fieldstohide.match('housebound') %]
1751
                        $("#memberentry_housebound_roles").find('legend').nextAll().toggle();
1804
                        togglePanel( $("#housebound_roles") );
1752
                    [% END %]
1805
                    [% END %]
1753
                [% END %]
1806
                [% END %]
1754
            [% END %]
1807
            [% END %]
1755
            [% UNLESS step == 4 %]
1808
            [% UNLESS step == 4 %]
1756
                [% IF Koha.Preference('ExtendedPatronAttributes') %]
1809
                [% IF Koha.Preference('ExtendedPatronAttributes') %]
1757
                    [% IF fieldstohide.match('additional') %]
1810
                    [% IF fieldstohide.match('additional') %]
1758
                        $("#memberentry_patron_attributes").find('legend').nextAll().toggle();
1811
                        togglePanel( $("#patron_attributes_lgd") );
1759
                    [% END %]
1812
                    [% END %]
1760
                [% END %]
1813
                [% END %]
1761
            [% END %]
1814
            [% END %]
1762
            [% UNLESS step == 5 %]
1815
            [% UNLESS step == 5 %]
1763
                [% IF Koha.Preference('EnhancedMessagingPreferences') %]
1816
                [% IF Koha.Preference('EnhancedMessagingPreferences') %]
1764
                    [% IF fieldstohide.match('messaging') %]
1817
                    [% IF fieldstohide.match('messaging') %]
1765
                        $("#memberentry_messaging_prefs").find('legend').nextAll().toggle();
1818
                        togglePanel( $("#patron_messaging_prefs_lgd") );
1766
                        $("#messaging_prefs_loading").toggle();
1819
                        $("#messaging_prefs_loading").toggle();
1767
                    [% END %]
1820
                    [% END %]
1768
                [% END %]
1821
                [% END %]
1769
            [% END %]
1822
            [% END %]
1770
        }
1823
        }
1771
1824
1825
        function togglePanel( node ){
1826
            var panel = node.nextAll();
1827
            if(panel.is(":visible")){
1828
                node.addClass("collapsed").removeClass("expanded").attr("title", __("Click to expand this section") );
1829
                panel.hide();
1830
            } else {
1831
                node.addClass("expanded").removeClass("collapsed").attr("title", __("Click to collapse this section") );
1832
                panel.show();
1833
                panel.find("input, select, textarea").eq(0).focus();
1834
            }
1835
        }
1836
1772
        $(document).ready(function() {
1837
        $(document).ready(function() {
1773
            showHideFields();
1838
            showHideFields();
1774
            $("#toggle_hidden_fields").change(function(){
1839
            $("#toggle_hidden_fields").change(function(){
1775
                showHideFields();
1840
                showHideFields();
1776
            });
1841
            });
1777
1842
1778
            $("legend").click(function(){
1843
            $(".collapsed,.expanded").on("click",function(){
1779
                $(this).nextAll().toggle();
1844
                togglePanel( $(this) );
1780
                $("#messaging_prefs_loading").hide();
1845
                $("#messaging_prefs_loading").hide();
1781
                $("#guarantor_template").hide();
1846
                $("#guarantor_template").hide();
1782
            });
1847
            });
1783
- 

Return to bug 35511