xref: /webtrees/resources/views/modules/geonames/config.phtml (revision 78606cf427772fbdc5222ff607ee23f43078f94b)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
6use Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
7use Fisharebest\Webtrees\I18N;
8
9/**
10 * @var string $username
11 * @var string $title
12 */
13
14?>
15
16<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ModulesAllPage::class) => I18N::translate('Modules'), $title]]) ?>
17
18<h1><?= $title ?></h1>
19
20<form method="post">
21    <div class="row mb-3">
22        <label class="col-sm-3 col-form-label" for="username">
23            <?= I18N::translate('Username') ?>
24        </label>
25        <div class="col-sm-9">
26            <input
27                    class="form-control"
28                    dir="ltr"
29                    id="username"
30                    maxlength="255"
31                    name="username"
32                    type="text"
33                    value="<?= e($username) ?>"
34            >
35            <div class="form-text">
36                <?= I18N::translate('To use this service, you need an account.') ?>
37                <br>
38                <?= I18N::translate('For more information, see %s.', '<a href="https://www.geonames.org/login">www.geonames.org/login</a>') ?>
39            </div>
40        </div>
41    </div>
42
43    <button type="submit" class="btn btn-primary">
44        <?= I18N::translate('save') ?>
45    </button>
46
47    <a href="<?= route(ControlPanel::class) ?>" class="btn btn-secondary">
48        <?= view('icons/cancel') ?>
49        <?= I18N::translate('cancel') ?>
50    </a>
51
52    <?= csrf_field() ?>
53</form>
54