Bug 32355: Add css class url to URL syspref
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / installer / step2.tt
1 [% USE HtmlTags %]
2 [% INCLUDE 'doc-head-open.inc' %]<title>Database settings &rsaquo; Web installer &rsaquo; Koha</title>
3 [% INCLUDE 'installer-doc-head-close.inc' %]
4 </head>
5
6 <body id="installer" class="installer">
7     <div class="container-fluid">
8         <div class="row">
9             <div id="installer-step2" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
10
11
12                 <div id="logo"><a href="#">Koha</a></div>
13                 <h1>Web installer &rsaquo; Database settings</h1>
14
15                 <div id="steps">
16                     <ol>
17                         <li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Choose your language</li>
18                         <li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Check Perl dependencies</li>
19                         <li class="current open"><i class="fa fa-square-o" aria-hidden="true"></i> Database settings</li>
20                         <li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Set up database</li>
21                         <li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Install basic configuration settings</li>
22                         <li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Onboarding</li>
23                     </ol>
24                 </div>
25
26                 <h3>Database settings:</h3>
27                 <ul>
28                     <li><em>Database type: </em> [%- dbms | $HtmlTags tag=>'code' -%]</li>
29                     <li><em>Database name: </em> [%- dbname | $HtmlTags tag=>'code' -%]</li>
30                     <li><em>Database host: </em> [%- hostname | $HtmlTags tag=>'code' -%]</li>
31                     <li><em>Database port: </em> [%- port| $HtmlTags tag=>'code' -%] (probably okay if blank)</li>
32                     <li><em>Database user: </em> [%- user | $HtmlTags tag=>'code' -%]</li>
33                 </ul>
34
35                 [% IF ( dbconnection ) %]
36                     <form name="checkdbparameters" method="post" action="install.pl">
37                         [% IF ( checkdatabaseaccess ) %]
38                             <div class="alert alert-success" role="alert"><p>Connection established.</p></div>
39                             [% IF ( checkdatabasecreated ) %]
40                                 <ul>
41                                     <li>Database [% dbname | $HtmlTags tag=>'code' %] exists.</li>
42                                 [% IF ( checkgrantaccess ) %]
43                                     <li>User [% user | $HtmlTags tag=>'code' %]  has all required privileges on database [% dbname | $HtmlTags tag=>'code' %].</li>
44                                     </ul>
45                                 [% ELSE %]
46                                     </ul>
47                                     <p class="error">User [% user | $HtmlTags tag=>'code' %] doesn't have enough privilege on database [% dbname | $HtmlTags tag=>'code' %].</p>
48                                     <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>
49                                     <p>Need help? For help with granting permissions, please search online for "[% dbms | $HtmlTags tag=>'code' %] manual grant permissions"
50                                     </p>
51                                 [% END %]
52                             [% ELSE %]
53                                 <div class="alert alert-danger" role="alert"><p>No database named [% dbname | $HtmlTags tag=>'code' %] detected.</p></div>
54                                 <p>Please create the database before continuing.</p>
55                             [% END %]
56                         [% ELSE %]
57                             <div class="alert alert-warning" role="alert">[% error | html %] : [% message | html %]</div>
58                             <div class="tip">
59                                 <ul>
60                                     <li>Check that your database is running.</li>
61                                     <li>Check your database settings in [% 'koha-conf.xml' | $HtmlTags Tag=>'code' %].</li>
62                                     <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>
63                                 </ul>
64                             </div>
65                             <p>Please correct these errors. <a href="/cgi-bin/koha/installer/install.pl">Then start the installer again.</a>
66                         [% END %]
67                         [% UNLESS ( error ) %]
68                             <input type="hidden" name="step" value="3" />
69                             <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
70                         [% END %]
71                     </form>
72                 [% ELSE %]
73                     <form name="checkinformation" method="post" action="install.pl">
74                         <input type="hidden" name="step" value="2" />
75                         <input type="hidden" name="checkdb" value="1" />
76                         <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p>
77                     </form>
78                 [% END # / IF dbconnection %]
79             </div> <!-- / #installer-step2 -->
80         </div> <!-- / .row -->
81     </div><!-- / .container-fluid -->
82
83 [% INCLUDE 'installer-intranet-bottom.inc' %]