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 269-275 legend:hover { Link Here
269
                            [% IF ( step_1 ) %]
284
                            [% IF ( step_1 ) %]
270
                                [% UNLESS notitle && nosurname && nofirstname && nomiddle_name && nodateofbirth && noinitials && noothernames &&nosex && nopronouns %]
285
                                [% UNLESS notitle && nosurname && nofirstname && nomiddle_name && nodateofbirth && noinitials && noothernames &&nosex && nopronouns %]
271
                                    <fieldset class="rows" id="memberentry_identity">
286
                                    <fieldset class="rows" id="memberentry_identity">
272
                                        <legend id="identity_lgd">[% IF ( patron_category.category_type == 'I' ) %]<span>Organization [% ELSE %]Patron [% END %]identity</span></legend>
287
                                        <legend class="expanded" id="identity_lgd">
288
                                            <i class="fa fa-caret-down" title="Collapse this section"></i>
289
                                            [% IF ( patron_category.category_type == 'I' ) %]<span>Organization [% ELSE %]Patron [% END %]identity</span>
290
                                        </legend>
273
                                        <ol>
291
                                        <ol>
274
                                            [% UNLESS ( patron_category.category_type == 'I' ) %]
292
                                            [% UNLESS ( patron_category.category_type == 'I' ) %]
275
                                                [% UNLESS notitle %]
293
                                                [% UNLESS notitle %]
Lines 464-470 legend:hover { Link Here
464
                                    [% SET possible_relationships = Koha.Preference('borrowerRelationship') %]
482
                                    [% SET possible_relationships = Koha.Preference('borrowerRelationship') %]
465
                                    <div id="memberentry_guarantor_anchor">
483
                                    <div id="memberentry_guarantor_anchor">
466
                                        <fieldset id="memberentry_guarantor" class="rows">
484
                                        <fieldset id="memberentry_guarantor" class="rows">
467
                                            <legend>Patron guarantor</legend>
485
                                            <legend class="expanded" id="patron_guarantor_lgd">
486
                                                <i class="fa fa-caret-down"></i>
487
                                                Patron guarantor
488
                                            </legend>
468
489
469
                                            <div id="guarantor_relationships">
490
                                            <div id="guarantor_relationships">
470
                                                [% FOREACH r IN relationships %]
491
                                                [% FOREACH r IN relationships %]
Lines 626-632 legend:hover { Link Here
626
647
627
                                    [% UNLESS nocontactname && nocontactfirstname && norelationship %]
648
                                    [% UNLESS nocontactname && nocontactfirstname && norelationship %]
628
                                        <fieldset class="rows" id="non_patron_guarantor">
649
                                        <fieldset class="rows" id="non_patron_guarantor">
629
                                            <legend>Non-patron guarantor</legend>
650
                                            <legend class="expanded" id="non_patron_guarantor_lgd">
651
                                                <i class="fa fa-caret-down"></i>
652
                                                Non-patron guarantor
653
                                            </legend>
630
                                            <ol>
654
                                            <ol>
631
                                                [% UNLESS nocontactname %]
655
                                                [% UNLESS nocontactname %]
632
                                                    <li>
656
                                                    <li>
Lines 690-696 legend:hover { Link Here
690
714
691
                                [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
715
                                [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
692
                                    <fieldset class="rows" id="memberentry_contact">
716
                                    <fieldset class="rows" id="memberentry_contact">
693
                                        <legend id="contact_lgd">Contact information</legend>
717
                                        <legend class="expanded" id="contact_lgd">
718
                                            <i class="fa fa-caret-down"></i>
719
                                            Contact information
720
                                        </legend>
694
                                        <ol>
721
                                        <ol>
695
                                            [% UNLESS nophone %]
722
                                            [% UNLESS nophone %]
696
                                                <li>
723
                                                <li>
Lines 879-885 legend:hover { Link Here
879
                            [% IF ( step_3 ) %]
906
                            [% IF ( step_3 ) %]
880
                                [% SET autoMemberNum = Koha.Preference('autoMemberNum') %]
907
                                [% SET autoMemberNum = Koha.Preference('autoMemberNum') %]
881
                                <fieldset class="rows" id="memberentry_library_management">
908
                                <fieldset class="rows" id="memberentry_library_management">
882
                                    <legend id="library_management_lgd">Library management</legend>
909
                                    <legend class="expanded" id="library_management_lgd">
910
                                        <i class="fa fa-caret-down"></i>
911
                                        Library management
912
                                    </legend>
883
                                    <ol>
913
                                    <ol>
884
                                        [% UNLESS nocardnumber %]
914
                                        [% UNLESS nocardnumber %]
885
                                            <li>
915
                                            <li>
Lines 1110-1116 legend:hover { Link Here
1110
1140
1111
                                [% UNLESS nodateenrolled &&  noopacnote && noborrowernotes %]
1141
                                [% UNLESS nodateenrolled &&  noopacnote && noborrowernotes %]
1112
                                    <fieldset class="rows" id="memberentry_subscription">
1142
                                    <fieldset class="rows" id="memberentry_subscription">
1113
                                        <legend id="library_setup_lgd">Library setup</legend><ol>
1143
                                        <legend class="expanded" id="library_setup_lgd">
1144
                                            <i class="fa fa-caret-down"></i>
1145
                                            Library setup
1146
                                        </legend>
1147
                                        <ol>
1114
                                        [% UNLESS nodateenrolled %]
1148
                                        [% UNLESS nodateenrolled %]
1115
                                            <li>
1149
                                            <li>
1116
                                                [% IF ( mandatorydateenrolled ) %]
1150
                                                [% IF ( mandatorydateenrolled ) %]
Lines 1196-1202 legend:hover { Link Here
1196
1230
1197
                                [% UNLESS nouserid && nopassword && !CanUpdatePasswordExpiration %]
1231
                                [% UNLESS nouserid && nopassword && !CanUpdatePasswordExpiration %]
1198
                                    <fieldset class="rows" id="memberentry_userid">
1232
                                    <fieldset class="rows" id="memberentry_userid">
1199
                                        <legend id="opac_staff_login_lgd">OPAC/Staff interface login</legend>
1233
                                        <legend class="expanded" id="opac_staff_login_lgd">
1234
                                            <i class="fa fa-caret-down"></i>
1235
                                            OPAC/Staff interface login
1236
                                        </legend>
1200
                                        <ol>
1237
                                        <ol>
1201
                                            [% UNLESS nouserid %]
1238
                                            [% UNLESS nouserid %]
1202
                                                <li>
1239
                                                <li>
Lines 1352-1358 legend:hover { Link Here
1352
                                <!--this zones are not necessary in modif mode -->
1389
                                <!--this zones are not necessary in modif mode -->
1353
                                [% UNLESS ( opadd || opduplicate || ( nogonenoaddress && nolost ) ) %]
1390
                                [% UNLESS ( opadd || opduplicate || ( nogonenoaddress && nolost ) ) %]
1354
                                    <fieldset class="rows" id="memberentry_account_flags">
1391
                                    <fieldset class="rows" id="memberentry_account_flags">
1355
                                        <legend id="account_flags_lgd">Patron account flags</legend>
1392
                                        <legend class="expanded" id="account_flags_lgd">
1393
                                            <i class="fa fa-caret-down"></i>
1394
                                            Patron account flags
1395
                                        </legend>
1356
                                        <p>Setting a value here will prevent patron from circulating materials and placing holds on the OPAC</p>
1396
                                        <p>Setting a value here will prevent patron from circulating materials and placing holds on the OPAC</p>
1357
                                        <ol class="radio">
1397
                                        <ol class="radio">
1358
                                            [% UNLESS nogonenoaddress %]
1398
                                            [% UNLESS nogonenoaddress %]
Lines 1428-1434 legend:hover { Link Here
1428
                                    </fieldset> <!-- /#memberentry_account_flags -->
1468
                                    </fieldset> <!-- /#memberentry_account_flags -->
1429
                                [% END %]
1469
                                [% END %]
1430
                                    <fieldset class="rows" id="memberentry_restrictions">
1470
                                    <fieldset class="rows" id="memberentry_restrictions">
1431
                                        <legend id="restrictions_lgd">Patron restrictions</legend>
1471
                                        <legend class="expanded" id="restrictions_lgd">
1472
                                            <i class="fa fa-caret-down"></i>
1473
                                            Patron restrictions
1474
                                        </legend>
1432
                                        [% IF ( patron.restrictions.count ) %]
1475
                                        [% IF ( patron.restrictions.count ) %]
1433
                                            <table>
1476
                                            <table>
1434
                                                <thead>
1477
                                                <thead>
Lines 1517-1523 legend:hover { Link Here
1517
                            [% IF ( step_7 ) %]
1560
                            [% IF ( step_7 ) %]
1518
                                [% IF Koha.Preference('HouseboundModule') %]
1561
                                [% IF Koha.Preference('HouseboundModule') %]
1519
                                    <fieldset class="rows" id="memberentry_housebound_roles">
1562
                                    <fieldset class="rows" id="memberentry_housebound_roles">
1520
                                        <legend id="housebound_roles">Housebound roles</legend>
1563
                                        <legend class="expanded" id="housebound_roles">
1564
                                            <i class="fa fa-caret-down"></i>
1565
                                            Housebound roles
1566
                                        </legend>
1521
                                        <ol class="radio">
1567
                                        <ol class="radio">
1522
                                            <li>
1568
                                            <li>
1523
                                                <label class="radio" for="housebound_chooser">
1569
                                                <label class="radio" for="housebound_chooser">
Lines 1558-1564 legend:hover { Link Here
1558
                                [% IF Koha.Preference('ExtendedPatronAttributes') %]
1604
                                [% IF Koha.Preference('ExtendedPatronAttributes') %]
1559
                                    [% UNLESS ( no_patron_attribute_types ) %]
1605
                                    [% UNLESS ( no_patron_attribute_types ) %]
1560
                                        <fieldset class="rows" id="memberentry_patron_attributes">
1606
                                        <fieldset class="rows" id="memberentry_patron_attributes">
1561
                                            <legend id="patron_attributes_lgd">Additional attributes and identifiers</legend>
1607
                                            <legend class="expanded" id="patron_attributes_lgd">
1608
                                                <i class="fa fa-caret-down"></i>
1609
                                                Additional attributes and identifiers
1610
                                            </legend>
1562
                                            <input type="hidden" name="setting_extended_patron_attributes" value="1" />
1611
                                            <input type="hidden" name="setting_extended_patron_attributes" value="1" />
1563
                                            [% FOREACH pa_loo IN patron_attributes %]
1612
                                            [% FOREACH pa_loo IN patron_attributes %]
1564
                                                <ol class="attributes_table">
1613
                                                <ol class="attributes_table">
Lines 1618-1624 legend:hover { Link Here
1618
                            [% IF ( step_5 ) %]
1667
                            [% IF ( step_5 ) %]
1619
                                [% IF ( EnhancedMessagingPreferences ) %]
1668
                                [% IF ( EnhancedMessagingPreferences ) %]
1620
                                    <fieldset class="rows" id="memberentry_messaging_prefs">
1669
                                    <fieldset class="rows" id="memberentry_messaging_prefs">
1621
                                        <legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend>
1670
                                        <legend class="expanded" id="patron_messaging_prefs_lgd">
1671
                                            <i class="fa fa-caret-down"></i>
1672
                                            Patron messaging preferences
1673
                                        </legend>
1622
                                        <div id="messaging_prefs_loading" class="form-message" style="display:none">
1674
                                        <div id="messaging_prefs_loading" class="form-message" style="display:none">
1623
                                            <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading new messaging defaults
1675
                                            <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading new messaging defaults
1624
                                        </div>
1676
                                        </div>
Lines 1690-1781 legend:hover { Link Here
1690
            }
1742
            }
1691
        }
1743
        }
1692
        var Sticky;
1744
        var Sticky;
1745
1693
        function showHideFields(){
1746
        function showHideFields(){
1747
            $("#messaging_prefs_loading, #guarantor_template").hide();
1694
            [% UNLESS step == 1 %]
1748
            [% UNLESS step == 1 %]
1695
                [% IF fieldstohide.match('identity') %]
1749
                [% IF fieldstohide.match('identity') %]
1696
                    $("#memberentry_identity").find('legend').nextAll().toggle();
1750
                    togglePanel( $("#identity_lgd") );
1697
                [% END %]
1751
                [% END %]
1698
                [% IF show_guarantor || guarantor %]
1752
                [% IF show_guarantor || guarantor %]
1699
                    [% IF fieldstohide.match('guarantor') %]
1753
                    [% IF fieldstohide.match('guarantor') %]
1700
                        $("#memberentry_guarantor").find('legend').nextAll().toggle();
1754
                        togglePanel( $("#patron_guarantor_lgd") );
1701
                        $("#guarantor_template").toggle();
1702
                    [% END %]
1755
                    [% END %]
1703
                    [% IF fieldstohide.match('nonpatron_guarantor') %]
1756
                    [% IF fieldstohide.match('nonpatron_guarantor') %]
1704
                        $("#non_patron_guarantor").find('legend').nextAll().toggle();
1757
                        togglePanel( $("#non_patron_guarantor_lgd") );
1705
                    [% END %]
1758
                    [% END %]
1706
                [% END %]
1759
                [% END %]
1707
                [% IF fieldstohide.match('primary_address') %]
1760
                [% IF fieldstohide.match('primary_address') %]
1708
                    $("#memberentry_mainaddress").find('legend').nextAll().toggle();
1761
                    togglePanel( $("#main_address_lgd") );
1709
                [% END %]
1762
                [% END %]
1710
                [% IF fieldstohide.match('primary_contact') %]
1763
                [% IF fieldstohide.match('primary_contact') %]
1711
                    $("#memberentry_contact").find('legend').nextAll().toggle();
1764
                    togglePanel( $("#contact_lgd") );
1712
                [% END %]
1765
                [% END %]
1713
            [% END %]
1766
            [% END %]
1714
            [% UNLESS step == 6 %]
1767
            [% UNLESS step == 6 %]
1715
                [% IF fieldstohide.match('alt_address') %]
1768
                [% IF fieldstohide.match('alt_address') %]
1716
                    $("#memberentry_address").find('legend').nextAll().toggle();
1769
                    togglePanel( $("#alt_address_lgd") );
1717
                [% END %]
1770
                [% END %]
1718
            [% END %]
1771
            [% END %]
1719
            [% UNLESS step == 2 %]
1772
            [% UNLESS step == 2 %]
1720
                [% IF fieldstohide.match('alt_contact') %]
1773
                [% IF fieldstohide.match('alt_contact') %]
1721
                    $("#memberentry_altaddress").find('legend').nextAll().toggle();
1774
                    togglePanel( $("#alt_contact_lgd") );
1722
                [% END %]
1775
                [% END %]
1723
            [% END %]
1776
            [% END %]
1724
            [% UNLESS step == 3 %]
1777
            [% UNLESS step == 3 %]
1725
                [% IF fieldstohide.match('lib_mgmt') %]
1778
                [% IF fieldstohide.match('lib_mgmt') %]
1726
                        $("#memberentry_library_management").find('legend').nextAll().toggle();
1779
                    togglePanel( $("#library_management_lgd") );
1727
                [% END %]
1780
                [% END %]
1728
                [% UNLESS nodateenrolled && noopacnote && noborrowernotes %]
1781
                [% UNLESS nodateenrolled && noopacnote && noborrowernotes %]
1729
                    [% IF fieldstohide.match('lib_setup') %]
1782
                    [% IF fieldstohide.match('lib_setup') %]
1730
                        $("#memberentry_subscription").find('legend').nextAll().toggle();
1783
                        togglePanel( $("#library_setup_lgd") );
1731
                    [% END %]
1784
                    [% END %]
1732
                [% END %]
1785
                [% END %]
1733
                [% UNLESS nouserid && nopassword %]
1786
                [% UNLESS nouserid && nopassword %]
1734
                    [% IF fieldstohide.match('login') %]
1787
                    [% IF fieldstohide.match('login') %]
1735
                        $("#memberentry_userid").find('legend').nextAll().toggle();
1788
                        togglePanel( $("#opac_staff_login_lgd") );
1736
                    [% END %]
1789
                    [% END %]
1737
                [% END %]
1790
                [% END %]
1738
                [% UNLESS ( opadd || opduplicate ) %]
1791
                [% UNLESS ( opadd || opduplicate ) %]
1739
                    [% IF fieldstohide.match('flags') %]
1792
                    [% IF fieldstohide.match('flags') %]
1740
                        $("#memberentry_account_flags").find('legend').nextAll().toggle();
1793
                        togglePanel( $("#account_flags_lgd") );
1741
                    [% END %]
1794
                    [% END %]
1742
                [% END %]
1795
                [% END %]
1743
                [% IF fieldstohide.match('debarments') %]
1796
                [% IF fieldstohide.match('debarments') %]
1744
                    $("#memberentry_restrictions").find('legend').nextAll().toggle();
1797
                    togglePanel( $("#restrictions_lgd") );
1745
                [% END %]
1798
                [% END %]
1746
            [% END %]
1799
            [% END %]
1747
            [% UNLESS step == 7 %]
1800
            [% UNLESS step == 7 %]
1748
                [% IF Koha.Preference('HouseboundModule') %]
1801
                [% IF Koha.Preference('HouseboundModule') %]
1749
                    [% IF fieldstohide.match('housebound') %]
1802
                    [% IF fieldstohide.match('housebound') %]
1750
                        $("#memberentry_housebound_roles").find('legend').nextAll().toggle();
1803
                        togglePanel( $("#housebound_roles") );
1751
                    [% END %]
1804
                    [% END %]
1752
                [% END %]
1805
                [% END %]
1753
            [% END %]
1806
            [% END %]
1754
            [% UNLESS step == 4 %]
1807
            [% UNLESS step == 4 %]
1755
                [% IF Koha.Preference('ExtendedPatronAttributes') %]
1808
                [% IF Koha.Preference('ExtendedPatronAttributes') %]
1756
                    [% IF fieldstohide.match('additional') %]
1809
                    [% IF fieldstohide.match('additional') %]
1757
                        $("#memberentry_patron_attributes").find('legend').nextAll().toggle();
1810
                        togglePanel( $("#patron_attributes_lgd") );
1758
                    [% END %]
1811
                    [% END %]
1759
                [% END %]
1812
                [% END %]
1760
            [% END %]
1813
            [% END %]
1761
            [% UNLESS step == 5 %]
1814
            [% UNLESS step == 5 %]
1762
                [% IF Koha.Preference('EnhancedMessagingPreferences') %]
1815
                [% IF Koha.Preference('EnhancedMessagingPreferences') %]
1763
                    [% IF fieldstohide.match('messaging') %]
1816
                    [% IF fieldstohide.match('messaging') %]
1764
                        $("#memberentry_messaging_prefs").find('legend').nextAll().toggle();
1817
                        togglePanel( $("#patron_messaging_prefs_lgd") );
1765
                        $("#messaging_prefs_loading").toggle();
1818
                        $("#messaging_prefs_loading").toggle();
1766
                    [% END %]
1819
                    [% END %]
1767
                [% END %]
1820
                [% END %]
1768
            [% END %]
1821
            [% END %]
1769
        }
1822
        }
1770
1823
1824
        function togglePanel( node ){
1825
            var panel = node.nextAll();
1826
            if(panel.is(":visible")){
1827
                node.addClass("collapsed").removeClass("expanded").attr("title", __("Click to expand this section") );
1828
                panel.hide();
1829
            } else {
1830
                node.addClass("expanded").removeClass("collapsed").attr("title", __("Click to collapse this section") );
1831
                panel.show();
1832
                panel.find("input, select, textarea").eq(0).focus();
1833
            }
1834
        }
1835
1771
        $(document).ready(function() {
1836
        $(document).ready(function() {
1772
            showHideFields();
1837
            showHideFields();
1773
            $("#toggle_hidden_fields").change(function(){
1838
            $("#toggle_hidden_fields").change(function(){
1774
                showHideFields();
1839
                showHideFields();
1775
            });
1840
            });
1776
1841
1777
            $("legend").click(function(){
1842
            $(".collapsed,.expanded").on("click",function(){
1778
                $(this).nextAll().toggle();
1843
                togglePanel( $(this) );
1779
                $("#messaging_prefs_loading").hide();
1844
                $("#messaging_prefs_loading").hide();
1780
                $("#guarantor_template").hide();
1845
                $("#guarantor_template").hide();
1781
            });
1846
            });
1782
- 

Return to bug 35511