xref: /webtrees/resources/views/modules/here-maps/config.phtml (revision d1da5ba430762bd82a5d57bc40552492431d11ee)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
4use Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
5use Fisharebest\Webtrees\I18N;
6
7/**
8 * @var string $api_key
9 * @var string $title
10 */
11
12?>
13
14<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ModulesAllPage::class) => I18N::translate('Modules'), $title]]) ?>
15
16<h1><?= $title ?></h1>
17
18<form method="post">
19    <?= csrf_field() ?>
20
21    <div class="row form-group">
22        <label class="col-sm-3 col-form-label" for="api_key">
23            <?= I18N::translate('API key') ?>
24        </label>
25        <div class="col-sm-9">
26            <input
27                    class="form-control"
28                    dir="ltr"
29                    id="api_key"
30                    maxlength="255"
31                    name="api_key"
32                    type="text"
33                    value="<?= e($api_key) ?>"
34            >
35            <p class="small text-muted">
36                <?= I18N::translate('To use this service, you need an API key.') ?>
37                <br>
38                <?= I18N::translate('For more information, see %s.', '<a href="https://developer.here.com">developer.here.com</a>') ?>
39            </p>
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</form>
52