xref: /webtrees/resources/views/admin/analytics-edit.phtml (revision 9864030347b47337b6a477b4a6d47d4fe492a8f4)
10c0910bfSGreg Roach<?php
28e5c5efeSGreg Roach
30c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
40c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N;
50c0910bfSGreg Roach
60c0910bfSGreg Roach?>
70c0910bfSGreg Roach
80c0910bfSGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route('modules') => I18N::translate('Modules'), route('analytics') => I18N::translate('Tracking and analytics'), $title]]) ?>
98e5c5efeSGreg Roach
108e5c5efeSGreg Roach<h1><?= $title ?></h1>
118e5c5efeSGreg Roach
1283615acfSGreg Roach<form method="post" action="<?= e($action) ?>" class="form-horizontal">
138e5c5efeSGreg Roach    <?= csrf_field() ?>
148e5c5efeSGreg Roach    <?= $form_fields ?>
158e5c5efeSGreg Roach
168e5c5efeSGreg Roach    <div class="row form-group">
17*98640303SGreg Roach        <label class="col-sm-3" for="preview">
188e5c5efeSGreg Roach            <?= I18N::translate('Preview') ?>
19*98640303SGreg Roach        </label>
208e5c5efeSGreg Roach
218e5c5efeSGreg Roach        <div class="col-sm-9">
22*98640303SGreg Roach            <textarea id="preview" class="form-control" rows="10" dir="ltr" disabled><?= e($preview) ?></textarea>
238e5c5efeSGreg Roach        </div>
248e5c5efeSGreg Roach    </div>
258e5c5efeSGreg Roach
268e5c5efeSGreg Roach
278e5c5efeSGreg Roach    <div class="row form-group">
288e5c5efeSGreg Roach        <div class="offset-sm-3 col-sm-9">
298e5c5efeSGreg Roach            <button type="submit" class="btn btn-primary">
308e5c5efeSGreg Roach                <?= view('icons/save') ?>
318e5c5efeSGreg Roach                <?= I18N::translate('save') ?>
328e5c5efeSGreg Roach            </button>
338e5c5efeSGreg Roach
348e5c5efeSGreg Roach            <a href="<?= e(route('analytics')) ?>" class="btn btn-secondary">
358e5c5efeSGreg Roach                <?= view('icons/cancel') ?>
368e5c5efeSGreg Roach                <?= I18N::translate('cancel') ?>
378e5c5efeSGreg Roach            </a>
388e5c5efeSGreg Roach        </div>
398e5c5efeSGreg Roach    </div>
408e5c5efeSGreg Roach</form>
41