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