xref: /webtrees/resources/views/modules/map-box/config.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
1c9c6f2ecSGreg Roach<?php
2c9c6f2ecSGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
5c9c6f2ecSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
6c9c6f2ecSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
7c9c6f2ecSGreg Roachuse Fisharebest\Webtrees\I18N;
8c9c6f2ecSGreg Roach
9c9c6f2ecSGreg Roach/**
10c9c6f2ecSGreg Roach * @var string $api_key
11c9c6f2ecSGreg Roach * @var string $title
12c9c6f2ecSGreg Roach */
13c9c6f2ecSGreg Roach
14c9c6f2ecSGreg Roach?>
15c9c6f2ecSGreg Roach
16c9c6f2ecSGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ModulesAllPage::class) => I18N::translate('Modules'), $title]]) ?>
17c9c6f2ecSGreg Roach
18c9c6f2ecSGreg Roach<h1><?= $title ?></h1>
19c9c6f2ecSGreg Roach
20c9c6f2ecSGreg Roach<form method="post">
219e3c2cf9SGreg Roach    <div class="row mb-3">
22c9c6f2ecSGreg Roach        <label class="col-sm-3 col-form-label" for="api_key">
23c9c6f2ecSGreg Roach            <?= I18N::translate('API key') ?>
24c9c6f2ecSGreg Roach        </label>
25c9c6f2ecSGreg Roach        <div class="col-sm-9">
26c9c6f2ecSGreg Roach            <input
27c9c6f2ecSGreg Roach                    class="form-control"
28c9c6f2ecSGreg Roach                    dir="ltr"
29c9c6f2ecSGreg Roach                    id="api_key"
30c9c6f2ecSGreg Roach                    maxlength="255"
31c9c6f2ecSGreg Roach                    name="api_key"
32c9c6f2ecSGreg Roach                    type="text"
33c9c6f2ecSGreg Roach                    value="<?= e($api_key) ?>"
34c9c6f2ecSGreg Roach            >
35315eb316SGreg Roach            <div class="form-text">
36c9c6f2ecSGreg Roach                <?= I18N::translate('To use this service, you need an API key.') ?>
37c9c6f2ecSGreg Roach                <br>
38df46d43dSDavid Drury                <?= I18N::translate('For more information, see %s.', '<a href="https://account.mapbox.com/access-tokens/">Mapbox access tokens</a>') ?>
39315eb316SGreg Roach            </div>
40c9c6f2ecSGreg Roach        </div>
41c9c6f2ecSGreg Roach    </div>
42c9c6f2ecSGreg Roach
43c9c6f2ecSGreg Roach    <button type="submit" class="btn btn-primary">
44c9c6f2ecSGreg Roach        <?= I18N::translate('save') ?>
45c9c6f2ecSGreg Roach    </button>
46c9c6f2ecSGreg Roach
47c9c6f2ecSGreg Roach    <a href="<?= route(ControlPanel::class) ?>" class="btn btn-secondary">
48c9c6f2ecSGreg Roach        <?= view('icons/cancel') ?>
49c9c6f2ecSGreg Roach        <?= I18N::translate('cancel') ?>
50c9c6f2ecSGreg Roach    </a>
5181443e3cSGreg Roach
5281443e3cSGreg Roach    <?= csrf_field() ?>
53c9c6f2ecSGreg Roach</form>
54