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