Bug 8753 - Followup - change value text on syspref
[koha-equinox.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-password-recovery.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %][% END %]
6 [% BLOCK jsinclude %]
7 <script type="text/javascript" language="javascript">
8    $(function() {
9         $("#CheckAll").click(function(){
10                 $("[name=deleteRequest]").attr('checked', true);
11                 return false;
12             });
13
14         $("#CheckNone").click(function(){
15                 $("[name=deleteRequest]").attr('checked', false);
16                 return false;
17             });
18
19         $("select#type").change(function() {
20             $("fieldset#serial, fieldset#book, fieldset#chapter").hide()
21             $("fieldset#" + $(this).val() ).show();
22         });
23    });
24 </script>
25 [% END %]
26 </head>
27 [% INCLUDE 'bodytag.inc' bodyid='opac-password-recovery' %]
28 [% INCLUDE 'masthead.inc' %]
29
30 <div class="main">
31     <ul class="breadcrumb">
32         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
33         <li><a href="#">Change your password</a></li>
34     </ul>
35
36     <div class="container-fluid">
37         <div class="row-fluid">
38             <div class="span2">
39                 [% IF ( OpacPublic ) %]
40
41                 <div id="navigation">
42                     [% INCLUDE 'navigation.inc' IsPatronPage=0 %]
43                 </div>
44                 [% END %]
45             </div>
46             <div class="span10">
47                     <h3>Password recovery</h3>
48             [% IF (hasError) %]
49                 <div class="alert alert-warning">
50                     <h3>An error occurred</h3>
51                     <p>
52                     [% IF (sendmailError) %]
53                         An error has occurred while sending you the password recovery link.
54                         <br/>Please try again later.
55                     [% ELSIF (errNoBorrowerFound) %]
56                         No account was found with the provided information.
57                         <br/>Check if you typed it correctly.
58                     [% ELSIF (errBadEmail) %]
59                         The provided email address is not tied to this account.
60                     [% ELSIF (errTooManyEmailFound) %]
61                         More than one account has been found for the email address: "<strong>[% email %]</strong>"
62                         <br/>Try to use your username or an alternative email if you have one.
63                     [% ELSIF (errNoBorrowerEmail) %]
64                         This account has no email address we can send the email to.
65                     [% ELSIF (errAlreadyStartRecovery) %]
66                         The process of password recovery has already started for this account ("<strong>[% username %]</strong>")
67                         <br/>Check your emails; you should receive the link to reset your password.
68                         <br/>If you did not receive it, click <a href="/cgi-bin/koha/opac-password-recovery.pl?resendEmail=true&email=[% email %]&username=[% username %]">here</a> to get a new password recovery link.
69                     [% ELSIF (errPassNotMatch) %]
70                         The passwords entered does not match.
71                         <br/>Please try again.
72                     [% ELSIF (errPassTooShort) %]
73                         The password is too short.
74                         <br/>The password must contain at least [% minPassLength %] characters.
75                     [% ELSIF (errLinkNotValid) %]
76                         We could not authenticate you as the account owner.
77                         <br/>Be sure to use the link you received in your email.
78                     [% END %]
79                     </p>
80                     <p>Please contact the staff if you need further assistance.</p>
81                 </div>
82             [% END %]
83                 <div id="password-recovery">
84 [% IF (!Koha.Preference('OpacResetPassword')) %]
85                     <div class="alert alert-info">You can't reset your password.</div>
86 [% ELSIF (password_recovery) %]
87                     <form action="/cgi-bin/koha/opac-password-recovery.pl" method="post">
88                         <input type="hidden" name="koha_login_context" value="opac" />
89                         <fieldset>
90                             <p>To reset your password, enter your username or email address.
91                             <br/>A link to reset your password will be sent at this address.</p>
92                             <label for="username">Login:</label>
93                             <input type="text" id="username" size="40" name="username" value="[% username %]" />
94                             <label for="email">Email:</label>
95                             <input type="text" id="email" size="40" name="email" value="[% email %]" />
96                             <fieldset class="action">
97                                 <input type="submit" value="Submit" class="btn" name="sendEmail" />
98                             </fieldset>
99                          </fieldset>
100                     </form>
101 [% ELSIF (new_password) %]
102                     <form action="/cgi-bin/koha/opac-password-recovery.pl" method="post">
103                         <input type="hidden" name="koha_login_context" value="opac" />
104                         <fieldset>
105                             <div class="alert alert-info">The password must contain at least [% minPassLength %] characters.</div>
106                             <label for="password">New password:</label>
107                             <input type="password" id="password" size="40" name="password" />
108                             <label for="repeatPassword">Confirm new password:</label>
109                             <input type="password" id="repeatPassword" size="40" name="repeatPassword" />
110                             <fieldset class="action">
111                                 <input type="hidden" name="username" value="[% username %]" />
112                                 <input type="hidden" name="uniqueKey" value="[% uniqueKey %]" />
113                                 <input type="submit" value="Submit" class="btn" name="passwordReset" />
114                             </fieldset>
115                          </fieldset>
116                     </form>
117 [% ELSIF (mail_sent) %]
118                     <div class="alert alert-info">
119                         <p>
120                             An email has been sent to "[% email %]".
121                             <br/>It contains a link to create a new password.
122                             <br/>This link will be valid for 2 days starting now.
123                         </p>
124                         Click <a href="/cgi-bin/koha/opac-main.pl"">here</a> to return to the main page.
125                     </div>
126 [% ELSIF (password_reset_done) %]
127                     <div class="alert alert-success">
128                         <p>The password has been changed for user "[% username %]".</p>
129                         Click <a href="/cgi-bin/koha/opac-user.pl">here</a> to login.
130                     </div>
131 [% END %]
132                 </div><!-- / #password-recovery -->
133             </div><!-- / .span10 -->
134         </div><!-- / .row-fluid -->
135     </div><!-- / .container-fluid -->
136 </div><!-- / .main -->
137 [% INCLUDE 'opac-bottom.inc' %]