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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-7 / +15 lines)
Lines 778-800 Link Here
778
                    </fieldset>
778
                    </fieldset>
779
                [% END %]
779
                [% END %]
780
780
781
                [% UNLESS action == 'edit' %]
781
                [% UNLESS action == 'edit' || hidden.defined('password') %]
782
                    <fieldset class="rows" id="memberentry_password">
782
                    <fieldset class="rows" id="memberentry_password">
783
                        <legend id="contact_legend">Contact information</legend>
783
                        <legend id="contact_legend">Password</legend>
784
                    [% UNLESS hidden.defined('password') %]
784
                        [% IF Koha.Preference('minPasswordLength') || !mandatory.defined('password') %]
785
                        <div class="alert alert-info">Your password must be at least [% minpassw %] characters long.
785
                            <div class="alert alert-info">
786
                                [% IF Koha.Preference('minPasswordLength') %]
787
                                    <p>Your password must be at least [% Koha.Preference('minPasswordLength') %] characters long.</p>
788
                                [% END %]
789
                                [% UNLESS mandatory.defined('password') %]
790
                                    If you do not enter a password a system generated password will be created.
791
                                [% END %]
792
                            </div>
793
                        [% END %]
794
786
                        [% IF mandatory.defined('password') %]
795
                        [% IF mandatory.defined('password') %]
787
                            <br>You must enter a password!</div>
788
                            <ol>
796
                            <ol>
789
                                <li><label for="borrower_password" class="required">Password</label>
797
                                <li><label for="borrower_password" class="required">Password</label>
790
                                    <input type="text" name="borrower_password" id="password" />
798
                                    <input type="text" name="borrower_password" id="password" />
799
                                    <span class="required">Required</span>
791
                                </li>
800
                                </li>
792
                                <li><label for="borrower_password2" class="required">Confirm password</label>
801
                                <li><label for="borrower_password2" class="required">Confirm password</label>
793
                                    <input type="text" name="borrower_password2" id="password2" />
802
                                    <input type="text" name="borrower_password2" id="password2" />
803
                                    <span class="required">Required</span>
794
                                </li>
804
                                </li>
795
                            </ol>
805
                            </ol>
796
                        [% ELSE %]
806
                        [% ELSE %]
797
                            <br>If you do not enter a password a system generated password will be created</div>
798
                            <ol>
807
                            <ol>
799
                                <li><label for="borrower_password">Password</label>
808
                                <li><label for="borrower_password">Password</label>
800
                                    <input type="text" name="borrower_password" id="password" />
809
                                    <input type="text" name="borrower_password" id="password" />
Lines 804-810 Link Here
804
                                </li>
813
                                </li>
805
                            </ol>
814
                            </ol>
806
                        [% END %]
815
                        [% END %]
807
                    [% END %]
808
                    </fieldset>
816
                    </fieldset>
809
817
810
                    <fieldset class="rows" id="memberentry_captcha">
818
                    <fieldset class="rows" id="memberentry_captcha">
(-)a/opac/opac-memberentry.pl (-2 lines)
Lines 67-73 $template->param( Link Here
67
    action            => $action,
67
    action            => $action,
68
    hidden            => $hidden,
68
    hidden            => $hidden,
69
    mandatory         => $mandatory,
69
    mandatory         => $mandatory,
70
    minpassw          => C4::Context->preference('minPasswordLength'),
71
    member_titles     => GetTitles() || undef,
70
    member_titles     => GetTitles() || undef,
72
    branches          => GetBranchesLoop(),
71
    branches          => GetBranchesLoop(),
73
    OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),
72
    OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),
74
- 

Return to bug 15343