summaryrefslogtreecommitdiff
path: root/resources/views/modules/geonames/config.phtml
blob: 0747d486e55da8bf00d5d3546161897a097c5f24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php

declare(strict_types=1);

use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
use Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
use Fisharebest\Webtrees\I18N;

/**
 * @var string $username
 * @var string $title
 */

?>

<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ModulesAllPage::class) => I18N::translate('Modules'), $title]]) ?>

<h1><?= $title ?></h1>

<form method="post">
    <div class="row mb-3">
        <label class="col-sm-3 col-form-label" for="username">
            <?= I18N::translate('Username') ?>
        </label>
        <div class="col-sm-9">
            <input
                    class="form-control"
                    dir="ltr"
                    id="username"
                    maxlength="255"
                    name="username"
                    type="text"
                    value="<?= e($username) ?>"
            >
            <div class="form-text">
                <?= I18N::translate('To use this service, you need an account.') ?>
                <br>
                <?= I18N::translate('For more information, see %s.', '<a href="https://www.geonames.org/login">www.geonames.org/login</a>') ?>
            </div>
        </div>
    </div>

    <button type="submit" class="btn btn-primary">
        <?= I18N::translate('save') ?>
    </button>

    <a href="<?= route(ControlPanel::class) ?>" class="btn btn-secondary">
        <?= view('icons/cancel') ?>
        <?= I18N::translate('cancel') ?>
    </a>

    <?= csrf_field() ?>
</form>