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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt (-1 / +16 lines)
Lines 344-349 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
344
                });
344
                });
345
            });
345
            });
346
        </script>
346
        </script>
347
    [% ELSE %]
348
        <script>
349
            function checkLang() {
350
                if ( $('#lang').val().includes('SelfRegistrationInstructions_') ) {
351
                    $('#branch option[value=""]').prop('selected' , true);
352
                    $('#branch').prop('disabled' , true)
353
                } else {
354
                    $('#branch').prop('disabled' , false)
355
                }
356
            }
357
            checkLang();
358
            $('#lang').change( function() {
359
                checkLang();
360
            })
361
        </script>
347
    [% END %]
362
    [% END %]
348
    [% UNLESS ( wysiwyg ) %]
363
    [% UNLESS ( wysiwyg ) %]
349
        [% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %]
364
        [% Asset.js( "lib/codemirror/codemirror.min.js" ) | $raw %]
Lines 403-409 Edit news item[% ELSE %]Add news item[% END %][% ELSE %]News[% END %]</div> Link Here
403
    [% END %]
418
    [% END %]
404
    [% FOREACH lang_lis IN lang_list %]
419
    [% FOREACH lang_lis IN lang_list %]
405
        <optgroup label="[% lang_lis.language | html %]">
420
        <optgroup label="[% lang_lis.language | html %]">
406
            [% FOREACH location IN [ '', 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacSuggestionInstructions'] %]
421
            [% FOREACH location IN [ '', 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacSuggestionInstructions', 'SelfRegistrationInstructions'] %]
407
                [% IF ( location == '' ) %]
422
                [% IF ( location == '' ) %]
408
                    [% SET location_lang = lang_lis.language %]
423
                    [% SET location_lang = lang_lis.language %]
409
                    [% location = BLOCK %]OPAC news[% END %]
424
                    [% location = BLOCK %]OPAC news[% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-3 / +5 lines)
Lines 6-11 Link Here
6
[% USE Branches %]
6
[% USE Branches %]
7
[% USE KohaDates %]
7
[% USE KohaDates %]
8
[% USE Math %]
8
[% USE Math %]
9
[% USE KohaNews %]
10
[% SET selfregistrationinstructions = KohaNews.get( location => "SelfRegistrationInstructions", lang => lang, library => branchcode ) %]
9
[% SET userupdateview = 1 %]
11
[% SET userupdateview = 1 %]
10
[% BLOCK streetnumber %]
12
[% BLOCK streetnumber %]
11
    [% UNLESS hidden.defined('streetnumber') %]
13
    [% UNLESS hidden.defined('streetnumber') %]
Lines 188-194 Link Here
188
                [% IF ( extended_unique_id_failed_code ) %]
190
                [% IF ( extended_unique_id_failed_code ) %]
189
                    <div class="alert" id="extended_unique_id_failed"><a href="#patron-attr-start-[% extended_unique_id_failed_code | uri %]">[% extended_unique_id_failed_description _ ': ' | html %]</a> Value is already in use ([% extended_unique_id_failed_value | html %])</div>
191
                    <div class="alert" id="extended_unique_id_failed"><a href="#patron-attr-start-[% extended_unique_id_failed_code | uri %]">[% extended_unique_id_failed_description _ ': ' | html %]</a> Value is already in use ([% extended_unique_id_failed_value | html %])</div>
190
                [% END %]
192
                [% END %]
191
193
                [% IF ( selfregistrationinstructions ) %]
194
                    [% PROCESS koha_news_block news => selfregistrationinstructions %]
195
                [% END %]
192
                <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
196
                <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
193
197
194
                    [%# Following on one line for translatability %]
198
                    [%# Following on one line for translatability %]
Lines 348-354 Link Here
348
                                                [% END %]
352
                                                [% END %]
349
353
350
                                                <input type="text" id="borrower_dateofbirth" name="borrower_dateofbirth" value="[% borrower.dateofbirth | $KohaDates %]" size="10" />
354
                                                <input type="text" id="borrower_dateofbirth" name="borrower_dateofbirth" value="[% borrower.dateofbirth | $KohaDates %]" size="10" />
351
352
                                                [% UNLESS action == 'edit' && !OPACPatronDetails %]
355
                                                [% UNLESS action == 'edit' && !OPACPatronDetails %]
353
                                                    [% UNLESS ( mandatory.defined('dateofbirth') ) %]
356
                                                    [% UNLESS ( mandatory.defined('dateofbirth') ) %]
354
                                                        <a href="#" style="font-size:85%;text-decoration:none;" class="cleardate">Clear date</a>
357
                                                        <a href="#" style="font-size:85%;text-decoration:none;" class="cleardate">Clear date</a>
355
- 

Return to bug 19838