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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-24 / +34 lines)
Lines 754-784 Link Here
754
754
755
                [% UNLESS action == 'edit' %]
755
                [% UNLESS action == 'edit' %]
756
                    <fieldset class="rows" id="memberentry_password">
756
                    <fieldset class="rows" id="memberentry_password">
757
                        <legend id="contact_legend">Contact information</legend>
757
                        <legend id="contact_legend">Password</legend>
758
                    [% UNLESS hidden.defined('password') %]
758
                        [% UNLESS hidden.defined('password') %]
759
                        <div class="alert alert-info">Your password must be at least [% minpassw %] characters long.
759
                            [% IF Koha.Preference('minPasswordLength') || !mandatory.defined('password') %]
760
                        [% IF mandatory.defined('password') %]
760
                                <div class="alert alert-info">
761
                            <br>You must enter a password!</div>
761
                                    [% IF Koha.Preference('minPasswordLength') %]
762
                            <ol>
762
                                        <p>Your password must be at least [% Koha.Preference('minPasswordLength') %] characters long.</p>
763
                                <li><label for="borrower_password" class="required">Password</label>
763
                                    [% END %]
764
                                    <input type="text" name="borrower_password" id="password" />
764
                                    [% UNLESS mandatory.defined('password') %]
765
                                </li>
765
                                        If you do not enter a password a system generated password will be created.
766
                                <li><label for="borrower_password2" class="required">Confirm password</label>
766
                                    [% END %]
767
                                    <input type="text" name="borrower_password2" id="password2" />
767
                                </div>
768
                                </li>
768
                            [% END %]
769
                            </ol>
769
770
                        [% ELSE %]
770
                            [% IF mandatory.defined('password') %]
771
                            <br>If you do not enter a password a system generated password will be created</div>
771
                                <ol>
772
                            <ol>
772
                                    <li><label for="borrower_password" class="required">Password</label>
773
                                <li><label for="borrower_password">Password</label>
773
                                        <input type="text" name="borrower_password" id="password" />
774
                                    <input type="text" name="borrower_password" id="password" />
774
                                        <span class="required">Required</span>
775
                                </li>
775
                                    </li>
776
                                <li><label for="borrower_password2">Confirm password</label>
776
                                    <li><label for="borrower_password2" class="required">Confirm password</label>
777
                                    <input type="text" name="borrower_password2" id="password2" />
777
                                        <input type="text" name="borrower_password2" id="password2" />
778
                                </li>
778
                                        <span class="required">Required</span>
779
                            </ol>
779
                                    </li>
780
                                </ol>
781
                            [% ELSE %]
782
                                <ol>
783
                                    <li><label for="borrower_password">Password</label>
784
                                        <input type="text" name="borrower_password" id="password" />
785
                                    </li>
786
                                    <li><label for="borrower_password2">Confirm password</label>
787
                                        <input type="text" name="borrower_password2" id="password2" />
788
                                    </li>
789
                                </ol>
790
                            [% END %]
780
                        [% END %]
791
                        [% END %]
781
                    [% END %]
782
                    </fieldset>
792
                    </fieldset>
783
793
784
                    <fieldset class="rows" id="memberentry_captcha">
794
                    <fieldset class="rows" id="memberentry_captcha">
(-)a/opac/opac-memberentry.pl (-2 lines)
Lines 66-72 $template->param( Link Here
66
    action            => $action,
66
    action            => $action,
67
    hidden            => $hidden,
67
    hidden            => $hidden,
68
    mandatory         => $mandatory,
68
    mandatory         => $mandatory,
69
    minpassw          => C4::Context->preference('minPasswordLength'),
70
    member_titles     => GetTitles() || undef,
69
    member_titles     => GetTitles() || undef,
71
    branches          => GetBranchesLoop(),
70
    branches          => GetBranchesLoop(),
72
    OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),
71
    OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),
73
- 

Return to bug 15343