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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-1 / +13 lines)
Lines 689-695 Link Here
689
                $(".customization_note").hide();
689
                $(".customization_note").hide();
690
                $( "#" + location + "_notes" ).show();
690
                $( "#" + location + "_notes" ).show();
691
            }
691
            }
692
692
            function checkLang() {
693
                if ( $('#lang').val().includes('SelfRegistrationInstructions_') ) {
694
                    $('#branch option[value=""]').prop('selected' , true);
695
                    $('#branch').prop('disabled' , true)
696
                } else {
697
                    $('#branch').prop('disabled' , false)
698
                }
699
            }
700
            checkLang();
693
            $(document).ready(function() {
701
            $(document).ready(function() {
694
                [% IF category == 'news' %]
702
                [% IF category == 'news' %]
695
                $("#add_additional_content").validate({
703
                $("#add_additional_content").validate({
Lines 727-732 Link Here
727
                });
735
                });
728
736
729
                $("#location").select2({ width: '50%' });
737
                $("#location").select2({ width: '50%' });
738
739
                $('#lang').change( function() {
740
                    checkLang();
741
                });
730
            });
742
            });
731
        </script>
743
        </script>
732
    [% END %]
744
    [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-1 / +5 lines)
Lines 11-16 Link Here
11
[% PROCESS 'html_helpers.inc' %]
11
[% PROCESS 'html_helpers.inc' %]
12
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
12
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
13
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
13
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
14
[% SET selfregistrationinstructions = AdditionalContents.get( location => "SelfRegistrationInstructions", lang => lang, library => branchcode ) %]
14
[% SET userupdateview = 1 %]
15
[% SET userupdateview = 1 %]
15
[% BLOCK streetnumber %]
16
[% BLOCK streetnumber %]
16
    [% UNLESS hidden.defined('streetnumber') %]
17
    [% UNLESS hidden.defined('streetnumber') %]
Lines 235-240 Link Here
235
                        >
236
                        >
236
                    [% END %]
237
                    [% END %]
237
238
239
                    [% IF ( selfregistrationinstructions ) %]
240
                        [% PROCESS koha_news_block news => selfregistrationinstructions %]
241
                    [% END %]
242
238
                    <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
243
                    <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
239
                        [% INCLUDE 'csrf-token.inc' %]
244
                        [% INCLUDE 'csrf-token.inc' %]
240
245
241
- 

Return to bug 19838