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