Bug 18629 - Translatability: Fix problems with web installer 17.05
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / installer / step1.tt
1 [% BLOCK txt_continue %]Continue to the next step[% END %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Web installer &rsaquo;
4     [% UNLESS ( language ) %] Choose your language [% END %]
5     [% IF ( language ) %]
6         [% UNLESS ( checkmodule ) %]
7             [% IF ( missing_modules ) %]
8                 Perl modules missing
9             [% END %]
10             [% IF ( problems ) %]
11                 Perl version obsolete
12             [% END %]
13         [% END %]
14         Check Perl dependencies
15     [% END %]
16 </title>
17 [% INCLUDE 'installer-doc-head-close.inc' %]
18
19 <div class="container-fluid">
20     <div class="row">
21         <div id="installer-step1" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
22
23             <h1 id="logo"><a href="#">Koha</a></h1>
24
25             [% UNLESS ( language ) %]
26                 <h2>Web installer &rsaquo; Choose your language</h2>
27                 <p>You are about to install Koha.</p>
28
29                 <p>Please pick your language from the following list. If your language is not listed, please inform your system administrator.</p>
30
31                 <form name="language" method="post" action="install.pl">
32                     <div class="form-group">
33                         <label for="language">Select a language: </label>
34                         <select id="language" name="language">
35                             [% IF ( installer_languages_loop ) %]
36                                 [% FOREACH installer_languages_loo IN installer_languages_loop %]
37                                     [% IF ( installer_languages_loo.plural ) %]
38                                         <optgroup label="[% installer_languages_loo.language %]">
39                                             [% FOREACH sublanguages_loo IN installer_languages_loo.sublanguages_loop %]
40                                                 <option value="[% sublanguages_loo.rfc4646_subtag %]">[% IF ( sublanguages_loo.native_description ) %][% sublanguages_loo.native_description %][% ELSE %][% sublanguages_loo.rfc4646_subtag %][% END %]</option>
41                                             [% END %]
42                                         </optgroup>
43                                     [% ELSE %]
44                                         <option value="[% installer_languages_loo.rfc4646_subtag %]">[% IF ( installer_languages_loo.native_description ) %][% installer_languages_loo.native_description %][% ELSE %][% installer_languages_loo.rfc4646_subtag %][% END %]</option>
45                                     [% END %]
46                                 [% END %]
47                             [% END %]
48                         </select>
49                     </div>
50                     <p><input value="[% INCLUDE txt_continue %]" class="btn btn-primary" type="submit" /></p>
51                 </form>
52             [% END %]
53
54             [% IF ( language ) %]
55                 [% UNLESS ( checkmodule ) %]
56                     [% IF ( missing_modules ) %]
57                         <h2>Web installer &rsaquo; Perl modules missing</h2>
58                         <p>Some Perl modules are missing. <span class="label label-danger">Important: </span>Required modules must be installed before you may continue.<br />
59                         <ul>
60                             [% FOREACH missing_module IN missing_modules %]
61                                 <li><strong>[% missing_module.name %]</strong> [% IF ( missing_module.require ) %]<span class="label label-danger">Required</span>[% END %]
62                                     <br /> Version: [% missing_module.version %]
63                                     <br /> Usage: [% missing_module.usage %]
64                                 </li>
65                             [% END %]
66                         </ul>
67                     [% END %]
68
69                     [% IF ( problems ) %]
70                         <h2>Web installer &rsaquo; Perl version too old</h2>
71                         <p>I encountered some problems.</p>
72                         <ul>
73                             [% IF ( perlversion ) %]
74                                 <li>Your Perl version is out of date. Please upgrade to a newer version of Perl (at least version 5.10).</li>
75                             [% END %]
76                         </ul>
77                     [% END %]
78
79                     <form name="checkmodules" action="install.pl">
80                         <input type="hidden" name="step" value="1" />
81                         <p> <input value="Recheck dependencies" class="btn btn-primary" type="submit" /></p>
82                     </form>
83
84                 [% ELSE # IF checkmodule %]
85                     <h2>Web installer &rsaquo; Check Perl dependencies</h2>
86                     <p>All required Perl modules appear to be installed.</p>
87                     <p> All dependencies installed.</p>
88
89                     <form name="checkmodules" role="form" action="install.pl">
90                         <input type="hidden" name="step" value="2" />
91                         <p> <input value="[% INCLUDE txt_continue %]" class="btn btn-primary" type="submit" /> </p>
92                     </form>
93                 [% END # IF checkmodule%]
94             [% END # IF language %]
95         </div> <!-- / #installer-step1 -->
96     </div> <!-- / .row -->
97
98 [% INCLUDE 'intranet-bottom.inc' %]