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