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