xref: /webtrees/resources/views/admin/analytics-edit.phtml (revision f289f086829969e7321ef4a025706451a46fe995)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
4use Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
5use Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsPage;
6use Fisharebest\Webtrees\I18N;
7
8?>
9
10<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ModulesAllPage::class) => I18N::translate('Modules'), route(ModulesAnalyticsPage::class) => I18N::translate('Tracking and analytics'), $title]]) ?>
11
12<h1><?= $title ?></h1>
13
14<form method="post" action="<?= e($action) ?>" class="form-horizontal">
15    <?= csrf_field() ?>
16    <?= $form_fields ?>
17
18    <div class="row form-group">
19        <label class="col-sm-3" for="preview">
20            <?= I18N::translate('Preview') ?>
21        </label>
22
23        <div class="col-sm-9">
24            <textarea id="preview" class="form-control" rows="10" dir="ltr" disabled><?= e($preview) ?></textarea>
25        </div>
26    </div>
27
28
29    <div class="row form-group">
30        <div class="offset-sm-3 col-sm-9">
31            <button type="submit" class="btn btn-primary">
32                <?= view('icons/save') ?>
33                <?= I18N::translate('save') ?>
34            </button>
35
36            <a href="<?= e(route(ModulesAnalyticsPage::class)) ?>" class="btn btn-secondary">
37                <?= view('icons/cancel') ?>
38                <?= I18N::translate('cancel') ?>
39            </a>
40        </div>
41    </div>
42</form>
43