xref: /webtrees/resources/views/admin/upgrade/wizard.phtml (revision c06384d0dc00d3271940d4c4da1c38f13ddb0cba)
10c0910bfSGreg Roach<?php
2dd6b2bfcSGreg Roach
30c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
40c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N;
50c0910bfSGreg Roach
60c0910bfSGreg Roach?>
70c0910bfSGreg Roach
80c0910bfSGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), $title]]) ?>
9dd6b2bfcSGreg Roach
10dd6b2bfcSGreg Roach<h1><?= $title ?></h1>
11dd6b2bfcSGreg Roach
12dd6b2bfcSGreg Roach<?php if ($latest_version === '') : ?>
13dd6b2bfcSGreg Roach    <div class="alert alert-warning">
14dd6b2bfcSGreg Roach        <?= I18N::translate('No upgrade information is available.') ?>
15dd6b2bfcSGreg Roach    </div>
16dd6b2bfcSGreg Roach<?php elseif (version_compare($current_version, $latest_version) >= 0) : ?>
17dd6b2bfcSGreg Roach    <div class="alert alert-info">
18dd6b2bfcSGreg Roach        <?= I18N::translate('This is the latest version of webtrees. No upgrade is available.') ?>
19dd6b2bfcSGreg Roach    </div>
20dd6b2bfcSGreg Roach<?php else : ?>
21dd6b2bfcSGreg Roach    <p>
22dd6b2bfcSGreg Roach        <?= I18N::translate('A new version of webtrees is available.') ?>
23dd6b2bfcSGreg Roach    </p>
24dd6b2bfcSGreg Roach
25dd6b2bfcSGreg Roach    <p>
26dd6b2bfcSGreg Roach        <?= I18N::translate('Depending on your server configuration, you may be able to upgrade automatically.') ?>
27dd6b2bfcSGreg Roach    </p>
28dd6b2bfcSGreg Roach
29*c06384d0SGreg Roach    <form method="post" action="<?= e(route('upgrade-confirm')) ?>" class="form-horizontal">
30*c06384d0SGreg Roach        <?= csrf_field() ?>
31dd6b2bfcSGreg Roach
32dd6b2bfcSGreg Roach        <button type="submit" class="btn btn-primary" name="continue" value="1">
33dd6b2bfcSGreg Roach            <?= I18N::translate('continue') ?>
34dd6b2bfcSGreg Roach        </button>
35dd6b2bfcSGreg Roach    </form>
36dd6b2bfcSGreg Roach<?php endif ?>
37