Bug 19036: Add ability to auto generate a number for account credits
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / installer / auth.tt
blob71cd268d67e8db6521bb2d449da81f701143d213
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo;
4     [% IF ( nopermission ) %]Access denied[% END %]
5     [% IF ( timed_out ) %]Session timed out[% END %]
6     [% IF ( different_ip ) %]IP address change[% END %]
7     [% IF ( invalid_username_or_password ) %]Invalid username or password[% END %]
8     [% IF ( loginprompt ) %]Log in to the Koha web installer[% END %]
9 </title>
10 [% INCLUDE 'installer-doc-head-close.inc' %]
11 </head>
13 <body id="installer" class="installer">
14     <div class="container-fluid">
15         <div class="row">
16             <div id="installer-login" class="installer-main col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3">
18                 <h1 id="logo"><a href="#">Koha</a></h1>
20                 [% IF ( nopermission ) %]
21                     <div id="login_error" class="alert alert-danger"><strong>Error: </strong>Unauthorized user <a href="/cgi-bin/koha/mainpage.pl?logout.x=1">click to log out</a></div>
22                 [% END %]
24                 [% IF ( timed_out ) %]
25                 <div id="login_error" class="alert alert-danger"><strong>Error: </strong>Session timed out, please log in again</div>
26                 [% END %]
28                 [% IF ( different_ip ) %]
29                 <div id="login_error" class="alert alert-danger"><strong>Error: </strong>IP address has changed, please log in again </div>
30                 [% END %]
32                 [% IF ( invalid_username_or_password ) %]
33                 <div id="login_error" class="alert alert-danger"><strong>Error: </strong>Invalid username or password</div>
34                 [% END %]
36                 [% IF ( loginprompt ) %]
37                     <h2>Welcome to the Koha [%- Koha.Version.release | html -%] web installer</h2>
39                     <p>Before we begin, please verify you have the correct credentials to continue. Please log in with the username and password given to you by your systems administrator and located in your <code>koha-conf.xml</code> configuration file.</p>
41                     <form action="[% url | html %]" method="post" id="mainform">
42                         [% FOREACH INPUT IN INPUTS %]
43                             <input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" />
44                         [% END %]
46                         <fieldset>
47                             <legend>Please enter your username and password</legend>
49                             <div class="form-group">
50                                 <label>Username:</label>
51                                 <input type="text" class="form-control" name="userid" id="userid" value="[% userid | html %]" size="20" tabindex="1" />
52                             </div>
53                             <div class="form-group">
54                                 <label>Password:</label>
55                                 <input type="password" class="form-control" name="password" id="password" value="" size="20" tabindex="2" />
56                             </div>
57                             <input id="submit" type="submit" class="btn btn-primary" value="Log in" tabindex="3" />
58                         </fieldset>
59                     </form>
60                 [% END %]
61             </div> <!-- / #installer-login -->
62         </div> <!-- / .row -->
63     </div><!-- / .container-fluid -->
65 [% INCLUDE 'installer-intranet-bottom.inc' %]