Bug 17942 [Follow-up] Update style of the web installer with Bootstrap 3
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / installer / step2.tt
1 [% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo; Web installer &rsaquo; Database settings</title>
2 [% INCLUDE 'installer-doc-head-close.inc' %]
3 </head>
4
5 <body id="installer" class="installer">
6     <div class="container-fluid">
7         <div class="row">
8             <div id="installer-step2" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
9
10                 <h1 id="logo"><a href="#">Koha</a></h1>
11                 <h2>Web installer &rsaquo; Database settings</h2>
12                 <h3>Database settings:</h3>
13                 <ul>
14                     <li><em>Database type : </em> <code>[% dbms %]</code></li>
15                     <li><em>Database name : </em> <code>[% dbname %]</code></li>
16                     <li><em>Database host : </em> <code>[% hostname %]</code></li>
17                     <li><em>Database port : </em> <code>[% port %]</code> (probably okay if blank)</li>
18                     <li><em>Database user : </em> <code>[% user %]</code></li>
19                 </ul>
20
21                 [% IF ( dbconnection ) %]
22                     <form name="checkdbparameters" method="post" action="install.pl">
23                         [% IF ( checkdatabaseaccess ) %]
24                             <div class="alert alert-success" role="alert"><p>Connection established.</p></div>
25                             [% IF ( checkdatabasecreated ) %]
26                                 <ul>
27                                     <li>Database <code>[% dbname %]</code> exists.</li>
28                                 [% IF ( checkgrantaccess ) %]
29                                     <li>User <code>[% user %]</code> has all required privileges on database <code>[% dbname %]</code>.</li>
30                                     </ul>
31                                 [% ELSE %]
32                                     </ul>
33                                     <p class="error">user <code>[% user %]</code> doesn't have enough privilege on database <code>[% dbname %]</code> </p>
34                                     <p class="tip"> Ask for or make a change in the user's privileges. Need help? See [% IF ( mysql ) %]
35                                             <a href="http://dev.mysql.com/doc/refman/4.1/en/grant.html">
36                                         [% ELSE %]
37                                             <a href="http://www.postgresql.org/docs/8.2/interactive/sql-createrole.html">
38                                         [% END %]
39                                         this page</a>. User <code>[% user %]</code> must have USAGE, INSERT, UPDATE, DELETE, DROP and CREATE privileges on <code>[% dbname %]</code>
40                                     </p>
41                                 [% END %]
42                             [% ELSE %]
43                                 <div class="alert alert-danger" role="alert"><p>No database named <code>[% dbname %]</code> detected.</p></div>
44                                 <p>Please create the database before continuing.</p>
45                             [% END %]
46                         [% ELSE %]
47                             <div class="alert alert-warning" role="alert">[% error %] : [% message %]</div>
48                             <div class="tip">
49                                 <ul>
50                                     <li>Check that your database is running.</li>
51                                     <li>Check your database settings in <code>koha-conf.xml</code>. </li>
52                                     <li>Check the hostname setting in <code>koha-conf.xml</code>.
53                                     Some database servers require <code>127.0.0.1</code> rather than <code>localhost</code>.</li>
54                                 </ul>
55                             </div>
56                             <p>Please correct these errors and <a href="/cgi-bin/koha/installer/install.pl">start the installer</a> again.
57                         [% END %]
58                         [% UNLESS ( error ) %]
59                             <input type="hidden" name="step" value="3" />
60                             <p> <input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p>
61                         [% END %]
62                     </form>
63                 [% ELSE %]
64                     <form name="checkinformation" method="post" action="install.pl">
65                         <input type="hidden" name="step" value="2" />
66                         <input type="hidden" name="checkdb" value="1" />
67                         <p> <input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p>
68                     </form>
69                 [% END # / IF dbconnection %]
70             </div> <!-- / #installer-step2 -->
71         </div> <!-- / .row -->
72
73 [% INCLUDE 'intranet-bottom.inc' %]