Bug 11810: Input fields in OPAC suggestion form are a bit short (Bootstrap)
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-auth.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog ›
4 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
5     Log in to your account
6 [% ELSE %]
7     Catalog login disabled
8 [% END %]
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% BLOCK cssinclude %][% END %]
11 </head>
12 <body id="opac-login-page" class="scrollto">
13 [% INCLUDE 'masthead.inc' %]
14
15 <div class="main">
16     <ul class="breadcrumb">
17         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
18         <li><a href="#">Log in</a></li>
19     </ul>
20
21     <div class="container-fluid">
22         <div class="row-fluid">
23             <div class="span7 offset2">
24                 <div id="opac-auth" class="maincontent">
25                     <!--CONTENT-->
26                     [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
27                         [% IF ( nopermission ) %]
28                             <!-- This is what is displayed if user doesnt have permission -->
29                             <div class="alert">
30                                 <h3>Access denied</h3>
31                                 <p>Sorry, the system doesn't think you have permission to access this page. </p>
32                             </div>
33                         [% END %]
34
35                         [% IF ( loginprompt ) %]
36                             <!-- login prompt time-->
37                             <h3>Log in to your account</h3>
38
39                             [% IF ( timed_out ) %]
40                                 <!-- This is what is displayed if login has timed out -->
41                                 <div class="alert alert-info">
42                                     <p>Sorry, your session has timed out.  Please log in again.</p>
43                                 </div>
44                             [% END %]
45
46                             [% IF ( different_ip ) %]
47                                 <!-- This is what is displayed if user doesnt have permission -->
48                                 <div class="alert alert-info">
49                                     <p>You are logging from a different IP address.  Please log in again.</p>
50                                 </div>
51                             [% END %]
52
53                             [% IF ( invalid_username_or_password ) %]
54                                 <!-- This is what is displayed if user doesnt have permission -->
55                                 <div class="alert alert-info">
56                                     <p>You entered an incorrect username or password. Please try again! And remember, usernames and passwords are case sensitive.</p>
57                                 </div>
58                             [% END %]
59
60                             [% IF ( casAuthentication ) %]
61                                 <h4>CAS login</h4>
62
63                                 [% IF ( invalidCasLogin ) %]
64                                     <!-- This is what is displayed if cas login has failed -->
65                                     <p>Sorry, the CAS login failed.</p>
66                                 [% END %]
67
68                                 <p>If you have a <acronym title="Central Authentication Service">CAS</acronym> account,
69                                 [% IF ( casServerUrl ) %]
70                                     please <a href="[% casServerUrl %]">click here to login</a>.<p>
71                                 [% END %]
72
73                                 [% IF ( casServersLoop ) %]
74                                     Please choose against which one you would like to authenticate: </p>
75                                     <ul>
76                                         [% FOREACH casServer IN casServersLoop %]
77                                         <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
78                                         [% END %]
79                                     </ul>
80                                 [% END %]
81
82                                 <h4>Local login</h4>
83                                 <p>If you do not have a CAS account, but a local account, you can still log in: </p>
84
85                             [% END # / IF casAuthentication %]
86
87                             <form action="[% url %]" name="auth" id="auth" method="post">
88                                 <input type="hidden" name="koha_login_context" value="opac" />
89                                 <fieldset class="brief">
90                                     [% FOREACH INPUT IN INPUTS %]
91                                         <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
92                                     [% END %]
93                                     <label for="userid">Login</label>
94                                     <input type="text"  size="25" id="userid"  name="userid" />
95                                     <label for="password">Password</label><input type="password"  size="25" id="password"  name="password" />
96                                 </fieldset>
97
98                                 <input type="submit" value="Log in" class="btn" />
99                                 <div id="nologininstructions">
100                                     [% IF Koha.Preference('NoLoginInstructions') %]
101                                         [% Koha.Preference('NoLoginInstructions') %]
102                                     [% ELSE %]
103                                         <h5>Don't have a password yet?</h5><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>
104                                         <h5>Don't have a library card?</h5><p> If you don't have a library card, stop by your local library to sign up.</p>
105                                     [% END # / IF Koha.Preference('NoLoginInstructions') %]
106                                     [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<span id="registrationinstructions">You may <a href="/cgi-bin/koha/opac-memberentry.pl">register here</a>.</span>[% END %]
107                                 </div>
108                             </form>
109                         [% END # / IF loginprompt %]
110
111                     [% ELSE %]
112                         <h4>Logging on to the catalog has not been enabled by the library.</h4>
113                         <ul>
114                             <li>To report this error, you can <a href="mailto:[% admin %]">email the Koha Administrator</a>.</li>
115                             <li>Use top menu bar to navigate to another part of Koha.</li>
116                         </ul>
117                     [% END # / IF opacuserlogin %]
118
119                     [% IF persona %]
120                         <p><a href="#" class="persona-button" id="browserid" ><span>Sign in with your Email</span></a></p>
121                     [% END %]
122
123                 </div> <!-- /.opac-auth -->
124             </div> <!-- /.span12 -->
125         </div> <!-- /.row-fluid -->
126     </div> <!-- /.container-fluid -->
127 </div> <!-- /.main -->
128
129 [% INCLUDE 'opac-bottom.inc' %]
130 [% BLOCK jsinclude %]
131 <script type="text/javascript">
132 //<![CDATA[
133     // Hide circular 'Log in to Your Account' link in opac-auth.pl
134     $(document).ready(function() {
135         if ( $("#auth" ) ) { $("#members ul li a").hide(); }
136     });
137 //]]>
138 </script>
139 [% END %]