Koha/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt
Wainui Witika-Park 96501a941b Bug 27631: installer and onboarding folders
Changed each of the pages in the installer and onboarding folders to
have one <h1> tag showing that describes the page, rather than the <h1>
describing the logo.

The hierarchy of heading tags may be broken in many pages, but this
will be dealt with in an additional bug.

To test:
1) Go to the Staff Client
2) Apply patch
3) Ensure that the page source shows logo inside <div> and not inside
   <h1>
4) Go to each of the pages in the installer and onboarding folders and
   check that they have an obvious and descriptive heading
5) Ensure that the heading in the page is <h1>

Sponsored-by: Catalyst IT

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-04-20 09:03:37 -10:00

172 lines
11 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>
[% UNLESS ( language ) %] Choose your language [% END %]
[% IF ( language ) %]
[% UNLESS ( checkmodule ) %]
[% IF ( missing_modules ) %]
Perl modules missing
[% END %]
[% IF ( problems ) %]
Perl version obsolete
[% END %]
[% END %]
Check Perl dependencies
[% END %] &rsaquo; Web installer &rsaquo; Koha
</title>
[% INCLUDE 'installer-doc-head-close.inc' %]
</head>
<body id="installer" class="installer">
<div class="container-fluid">
<div class="row">
<div id="installer-step1" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
<div id="logo"><a href="#">Koha</a></div>
[% UNLESS ( language ) %]
<h1>Web installer &rsaquo; Choose your language</h1>
<div id="steps">
<ol>
<li class="current open"><i class="fa fa-square-o" aria-hidden="true"></i> Choose your language</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Check Perl dependencies</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Database settings</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Set up database</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Install basic configuration settings</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Onboarding</li>
</ol>
</div>
<p>Please pick your language from the following list. If your language is not listed, please inform your system administrator.</p>
<form name="language" method="post" action="install.pl">
<div class="form-group">
<label for="language">Select a language: </label>
<select id="language" name="language">
[% IF ( installer_languages_loop ) %]
[% FOREACH installer_languages_loo IN installer_languages_loop %]
[% IF ( installer_languages_loo.plural ) %]
<optgroup label="[% installer_languages_loo.language | html %]">
[% FOREACH sublanguages_loo IN installer_languages_loo.sublanguages_loop %]
<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>
[% END %]
</optgroup>
[% ELSE %]
<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>
[% END %]
[% END %]
[% END %]
</select>
</div>
<p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
</form>
[% END %]
[% IF ( language ) %]
[% UNLESS ( checkmodule ) %]
[% IF ( missing_modules ) %]
<h1>Web installer &rsaquo; Perl modules missing</h1>
<div id="steps">
<ol>
<li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Choose your language</li>
<li class="current open"><i class="fa fa-square-o" aria-hidden="true"></i> Check Perl dependencies</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Database settings</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Set up database</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Install basic configuration settings</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Onboarding</li>
</ol>
</div>
<p>Some Perl modules are missing. <span class="label label-danger">Important: </span>Required modules must be installed before you may continue.<br />
<ul>
[% FOREACH missing_module IN missing_modules %]
<li><strong>[% missing_module.name | html %]</strong> [% IF ( missing_module.require ) %]<span class="label label-danger">Required</span>[% END %]
<br /> Version: [% missing_module.min_version | html %]
</li>
[% END %]
</ul>
[% END %]
[% IF ( upgrade_modules ) %]
<h1>Web installer &rsaquo; Perl modules due for upgrade</h1>
<div id="steps">
<ol>
<li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Choose your language</li>
<li class="current open"><i class="fa fa-square-o" aria-hidden="true"></i> Check Perl dependencies</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Database settings</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Set up database</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Install basic configuration settings</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Onboarding</li>
</ol>
</div>
<p>Some Perl modules require upgrade. <span class="label label-danger">Important: </span>Required modules must be installed at the correct version before you may continue.<br />
<ul>
[% FOREACH upgrade_module IN upgrade_modules %]
<li><strong>[% upgrade_module.name | html %]</strong> [% IF ( upgrade_module.require ) %]<span class="label label-danger">Required</span>[% END %]
<br /> Installed version: [% upgrade_module.version | html %]
<br /> Minimum version: [% upgrade_module.min_version | html %]
<br /> Maximum version: [% upgrade_module.max_version | html %]
</li>
[% END %]
</ul>
[% END %]
[% IF ( problems ) %]
<h1>Web installer &rsaquo; Perl version too old</h1>
<div id="steps">
<ol>
<li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Choose your language</li>
<li class="current open"><i class="fa fa-square-o" aria-hidden="true"></i> Check Perl dependencies</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Database settings</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Set up database</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Install basic configuration settings</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Onboarding</li>
</ol>
</div>
<p>I encountered some problems.</p>
<ul>
[% IF ( perlversion ) %]
<li>Your Perl version is out of date. Please upgrade to a newer version of Perl (at least version 5.10).</li>
[% END %]
</ul>
[% END %]
<form name="checkmodules" action="install.pl">
<input type="hidden" name="step" value="1" />
<p> <input value="Recheck dependencies" class="btn btn-primary" type="submit" /></p>
</form>
[% ELSE # IF checkmodule %]
<h1>Web installer &rsaquo; Check Perl dependencies</h1>
<div id="steps">
<ol>
<li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Choose your language</li>
<li class="current open"><i class="fa fa-square-o" aria-hidden="true"></i> Check Perl dependencies</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Database settings</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Set up database</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Install basic configuration settings</li>
<li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Onboarding</li>
</ol>
</div>
<p>All required Perl modules appear to be installed.</p>
<p> All dependencies installed.</p>
<form name="checkmodules" role="form" action="install.pl">
<input type="hidden" name="step" value="2" />
<p> <input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p>
</form>
[% END # IF checkmodule%]
[% END # IF language %]
</div> <!-- / #installer-step1 -->
</div> <!-- / .row -->
</div><!-- / .container-fluid -->
[% INCLUDE 'installer-intranet-bottom.inc' %]