Bug 34337: (bug 33581 follow-up) Sample patrons not inserted
[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" aria-hidden="true"></i> Choose your language</li>
18                         <li class="complete"><i class="fa fa-check-square" aria-hidden="true"></i> Check Perl dependencies</li>
19                         <li class="current open"><i class="fa fa-square" aria-hidden="true"></i> Database settings</li>
20                         <li class="open"><i class="fa fa-square" aria-hidden="true"></i> Set up database</li>
21                         <li class="open"><i class="fa fa-square" aria-hidden="true"></i> Install basic configuration settings</li>
22                         <li class="open"><i class="fa fa-square" 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                                 [% IF ( warnDbRowFormat ) %]
53                                     <div class="alert alert-danger" role="alert">
54                                         <p>Database tables with a row format other than 'DYNAMIC': [% warnDbRowFormat | html %]</p>
55                                         <p>You may experience problems upgrading to newer versions of Koha unless you update the row format for your database tables.</p>
56                                         <p>To know how to avoid this problem see the related wiki page:
57                                             <a href="https://wiki.koha-community.org/wiki/Database_row_format">Database row format</a>
58                                         </p>
59                                     </div>
60                                 [% END %]
61                             [% ELSE %]
62                                 <div class="alert alert-danger" role="alert"><p>No database named [% dbname | $HtmlTags tag=>'code' %] detected.</p></div>
63                                 <p>Please create the database before continuing.</p>
64                             [% END %]
65                         [% ELSE %]
66                             <div class="alert alert-warning" role="alert">[% error | html %] : [% message | html %]</div>
67                             <div class="tip">
68                                 <ul>
69                                     <li>Check that your database is running.</li>
70                                     <li>Check your database settings in [% 'koha-conf.xml' | $HtmlTags Tag=>'code' %].</li>
71                                     <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>
72                                 </ul>
73                             </div>
74                             <p>Please correct these errors. <a href="/cgi-bin/koha/installer/install.pl">Then start the installer again.</a>
75                         [% END %]
76                         [% UNLESS ( error ) %]
77                             <input type="hidden" name="step" value="3" />
78                             <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
79                         [% END %]
80                     </form>
81                 [% ELSE %]
82                     <form name="checkinformation" method="post" action="install.pl">
83                         <input type="hidden" name="step" value="2" />
84                         <input type="hidden" name="checkdb" value="1" />
85                         <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p>
86                     </form>
87                 [% END # / IF dbconnection %]
88             </div> <!-- / #installer-step2 -->
89         </div> <!-- / .row -->
90     </div><!-- / .container-fluid -->
91
92 [% INCLUDE 'installer-intranet-bottom.inc' %]