xref: /webtrees/resources/views/admin/analytics-edit.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
10c0910bfSGreg Roach<?php
28e5c5efeSGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
50c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
63213013eSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
780e25270SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsPage;
80c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N;
90c0910bfSGreg Roach
107c2c99faSGreg Roach/**
117c2c99faSGreg Roach * @var string $action
127c2c99faSGreg Roach * @var string $form_fields
137c2c99faSGreg Roach * @var string $preview
147c2c99faSGreg Roach * @var string $title
157c2c99faSGreg Roach */
167c2c99faSGreg Roach
170c0910bfSGreg Roach?>
180c0910bfSGreg Roach
1980e25270SGreg Roach<?= 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]]) ?>
208e5c5efeSGreg Roach
218e5c5efeSGreg Roach<h1><?= $title ?></h1>
228e5c5efeSGreg Roach
2383615acfSGreg Roach<form method="post" action="<?= e($action) ?>" class="form-horizontal">
248e5c5efeSGreg Roach    <?= $form_fields ?>
258e5c5efeSGreg Roach
269e3c2cf9SGreg Roach    <div class="row mb-3">
2798640303SGreg Roach        <label class="col-sm-3" for="preview">
288e5c5efeSGreg Roach            <?= I18N::translate('Preview') ?>
2998640303SGreg Roach        </label>
308e5c5efeSGreg Roach
318e5c5efeSGreg Roach        <div class="col-sm-9">
3298640303SGreg Roach            <textarea id="preview" class="form-control" rows="10" dir="ltr" disabled><?= e($preview) ?></textarea>
338e5c5efeSGreg Roach        </div>
348e5c5efeSGreg Roach    </div>
358e5c5efeSGreg Roach
368e5c5efeSGreg Roach
379e3c2cf9SGreg Roach    <div class="row mb-3">
388e5c5efeSGreg Roach        <div class="offset-sm-3 col-sm-9">
398e5c5efeSGreg Roach            <button type="submit" class="btn btn-primary">
408e5c5efeSGreg Roach                <?= view('icons/save') ?>
418e5c5efeSGreg Roach                <?= I18N::translate('save') ?>
428e5c5efeSGreg Roach            </button>
438e5c5efeSGreg Roach
4480e25270SGreg Roach            <a href="<?= e(route(ModulesAnalyticsPage::class)) ?>" class="btn btn-secondary">
458e5c5efeSGreg Roach                <?= view('icons/cancel') ?>
468e5c5efeSGreg Roach                <?= I18N::translate('cancel') ?>
478e5c5efeSGreg Roach            </a>
488e5c5efeSGreg Roach        </div>
498e5c5efeSGreg Roach    </div>
5081443e3cSGreg Roach
5181443e3cSGreg Roach    <?= csrf_field() ?>
528e5c5efeSGreg Roach</form>
53