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