Bug 25155: (follow-up) Increase headings levels by 1
[koha-equinox.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-auth.tt
1 [% USE raw %]
2 [% USE Koha %]
3 [% USE Categories %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo;
6 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
7     Log in to your account
8 [% ELSE %]
9     Catalog login disabled
10 [% END %]</title>
11 [% INCLUDE 'doc-head-close.inc' %]
12 [% BLOCK cssinclude %][% END %]
13 </head>
14 [% INCLUDE 'bodytag.inc' bodyid='opac-login-page' bodyclass='scrollto' %]
15 [% INCLUDE 'masthead.inc' %]
16
17 <div class="main">
18     <ul class="breadcrumb">
19         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
20         <li><a href="#">Log in</a></li>
21     </ul>
22
23     <div class="container-fluid">
24         <div class="row-fluid">
25             <div class="span7 offset2">
26                 <div id="opac-auth" class="maincontent">
27                     <!--CONTENT-->
28                     [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
29                         [% IF ( nopermission ) %]
30                             <!-- This is what is displayed if user doesn't have permission -->
31                             <div class="alert">
32                                 <h2>Access denied</h2>
33                                 <p>Sorry, the system doesn't think you have permission to access this page. </p>
34                                 [% IF SCO_login %]
35                                     <p><a href="/cgi-bin/koha/sco/sco-main.pl?logout.x=1">Log out and try again with a different user.</a></p>
36                                 [% ELSIF SCI_login %]
37                                     <p><a href="/cgi-bin/koha/sci/sci-main.pl?logout.x=1">Log out and try again with a different user.</a></p>
38                                 [% END %]
39                             </div>
40                         [% END %]
41
42                         [% IF ( loginprompt ) %]
43                             <!-- login prompt time-->
44                             <h2>Log in to your account</h2>
45
46                             [% IF ( timed_out ) %]
47                                 <!-- This is what is displayed if login has timed out -->
48                                 <div class="alert alert-info">
49                                     <p>Sorry, your session has timed out. Please log in again.</p>
50                                 </div>
51                             [% END %]
52
53                             [% IF ( different_ip ) %]
54                                 <!-- This is what is displayed if user doesn't have permission -->
55                                 <div class="alert alert-info">
56                                     <p>You are logging from a different IP address. Please log in again.</p>
57                                 </div>
58                             [% END %]
59
60
61                             [% IF invalid_username_or_password || too_many_login_attempts %]
62                                 <!-- This is what is displayed if user doesn't have permission or account is locked. (Do not expose more information than needed.) -->
63                                 <div class="alert alert-info">
64                                     <p>You entered an incorrect username or password. Please try again! But note that passwords are case sensitive[% IF Koha.Preference('FailedLoginAttempts') %] and that your account will be locked out after a fixed number of failed login attempts[% END %]. Please contact a library staff member if you continue to have problems.</p>
65                                 </div>
66                             [% END %]
67
68                             [% IF ( shibbolethAuthentication ) %]
69                                 [% IF ( invalidShibLogin ) %]
70                                     <!-- This is what is displayed if shibboleth login has failed to match a koha user -->
71                                     <div class="alert alert-info">
72                                     <p>Sorry, your Shibboleth identity does not match a valid library identity.</p>
73                                     [% IF ( casAuthentication ) %]
74                                         [% IF ( invalidCasLogin ) %]
75                                             <!-- This is what is displayed if cas login has failed -->
76                                             <p>Sorry, the CAS login also failed. If you have a local login you may use that below.</p>
77                                         [% ELSE %]
78                                             <p>If you have a CAS account, you may use that below.</p>
79                                         [% END %]
80                                     [% ELSE %]
81                                         <p>If you have a local account, you may use that below.</p>
82                                     [% END %]
83                                     </div>
84                             [% ELSE %]
85                                 <h3>Shibboleth Login</h3>
86                                 <p><a href="[% shibbolethLoginUrl | $raw %]">If you have a Shibboleth account, please click here to log in.</a></p>
87                             [% END %]
88                             [% IF ( casAuthentication ) %]
89                                 <h3>CAS login</h3>
90                                 <p>If you do not have a Shibboleth account, but you do have a CAS account, you can use CAS.</p>
91                             [% ELSE %]
92                                 <h3>Local login</h3>
93                                 <p>If you do not have a Shibboleth account, but you do have a local login, then you may login below.</p>
94                             [% END %]
95
96                         [% END %]
97
98                         [% IF ( casAuthentication ) %]
99                             [% IF ( shibbolethAuthentication ) %]
100                                 [% IF ( casServerUrl ) %]
101                                     <p><a href="[% casServerUrl | $raw %]">Please click here to log in.</a><p>
102                                 [% END %]
103
104                                 [% IF ( casServersLoop ) %]
105                                     <p>Please choose against which one you would like to authenticate: </p>
106                                     <ul>
107                                         [% FOREACH casServer IN casServersLoop %]
108                                             <li><a href="[% casServer.value | $raw %]">[% casServer.name | html %]</a></li>
109                                         [% END %]
110                                     </ul>
111                                 [% END %]
112                             [% ELSE %]
113                                 <h3>CAS login</h3>
114
115                                 [% IF ( invalidCasLogin ) %]
116                                     <!-- This is what is displayed if cas login has failed -->
117                                     <p>Sorry, the CAS login failed.</p>
118                                 [% END %]
119
120                                 [% IF ( casServerUrl ) %]
121                                    <p><a href="[% casServerUrl | $raw %]">If you have a CAS account, please click here to log in.</a><p>
122                                 [% END %]
123
124                                 [% IF ( casServersLoop ) %]
125                                     <p>If you have a CAS account, please choose against which one you would like to authenticate:</p>
126                                     <ul>
127                                         [% FOREACH casServer IN casServersLoop %]
128                                         <li><a href="[% casServer.value | $raw %]">[% casServer.name | html %]</a></li>
129                                         [% END %]
130                                     </ul>
131                                 [% END %]
132                             [% END %]
133
134                             [% IF ( shibbolethAuthentication ) %]
135                                 <p>Nothing</p>
136                             [% ELSE %]
137                                 <h3>Local login</h3>
138                                 <p>If you do not have a CAS account, but do have a local account, you can still log in: </p>
139                             [% END %]
140
141                         [% END # / IF casAuthentication %]
142
143                         [% IF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %]
144                             [% IF ( invalidGoogleOpenIDConnectLogin ) %]
145                                 <h3>Google login</h3>
146                                 <p>Sorry, your Google login failed. <span class="error">[% invalidGoogleOpenIDConnectLogin | html %]</span></p>
147                                 <p>Please note that the Google login will only work if you are using the e-mail address registered with this library.</p>
148                                 <p>If you want to, you can try to <a href="/cgi-bin/koha/svc/auth/googleopenidconnect?reauthenticate=select_account">log in using a different account</a>
149                             [% END %]
150                                 <a href="/cgi-bin/koha/svc/auth/googleopenidconnect" class="btn btn-primary" id="openid_connect">Log in with Google</a>
151                                 <p>If you do not have a Google account, but do have a local account, you can still log in: </p>
152                         [% END %]
153
154                         [% IF SCO_login %]
155                             <form action="/cgi-bin/koha/sco/sco-main.pl" name="auth" id="auth" method="post" autocomplete="off">
156                         [% ELSIF SCI_login %]
157                             <form action="/cgi-bin/koha/sci/sci-main.pl" name="auth" id="auth" method="post" autocomplete="off">
158                         [% ELSE %]
159                             <form action="[% script_name | html %]" name="auth" id="auth" method="post" autocomplete="off">
160                         [% END %]
161                             <input type="hidden" name="koha_login_context" value="opac" />
162                             <fieldset class="brief">
163                             [% FOREACH INPUT IN INPUTS %]
164                                 [% NEXT IF INPUT.name == 'logout.x' %]
165                                 <input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" />
166                             [% END %]
167                             <label for="userid">Login</label>
168                             <input type="text"  size="25" id="userid"  name="userid" />
169                             <label for="password">Password</label><input type="password"  size="25" id="password"  name="password" />
170                             </fieldset>
171
172                             <input type="submit" value="Log in" class="btn" />
173                             [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]
174                                 <div id="forgotpassword">
175                                     <a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
176                                 </div>
177                             [% END %]
178                             <div id="nologininstructions">
179                             [% IF Koha.Preference('OpacLoginInstructions') %]
180                                 [% Koha.Preference('OpacLoginInstructions') | $raw %]
181                             [% ELSE %]
182                                 <h3>Don't have a password yet?</h3>
183                                 <p>If you don't have a password yet, stop by the circulation desk the next time you're in the library. We'll happily set one up for you.</p>
184                                 <h3>Don't have a library card?</h3>
185                                 <p>If you don't have a library card, stop by your local library to sign up.</p>
186                             [% END # / IF Koha.Preference('OpacLoginInstructions') %]
187
188                             [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<span id="registrationinstructions"><a href="/cgi-bin/koha/opac-memberentry.pl">You may register here.</a></span>
189                             [% END %]
190                             </div>
191                             </form>
192                         [% END # / IF loginprompt %]
193
194                     [% ELSE %]
195                         <h2>Logging on to the catalog has not been enabled by the library.</h2>
196                         <ul>
197                             <li>To report this error, you can email the Koha Administrator.<a href="mailto:[% admin | uri %]">Email</a></li>
198                             <li>Use top menu bar to navigate to another part of Koha.</li>
199                         </ul>
200                     [% END # / IF opacuserlogin %]
201
202                 </div> <!-- /.opac-auth -->
203             </div> <!-- /.span12 -->
204         </div> <!-- /.row-fluid -->
205     </div> <!-- /.container-fluid -->
206 </div> <!-- /.main -->
207
208 [% INCLUDE 'opac-bottom.inc' %]
209 [% BLOCK jsinclude %]
210 <script>
211 //<![CDATA[
212     // Hide circular 'Log in to Your Account' link in opac-auth.pl
213     $(document).ready(function() {
214         if ( $("#auth" ) ) { $("#members ul li a").hide(); }
215     });
216 //]]>
217 </script>
218 [% END %]