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