xref: /webtrees/resources/views/modules/custom-css-js/edit.phtml (revision 81443e3cbe4eef5ccdcf8dae716a7e35f7417b60)
10c0910bfSGreg Roach<?php
28d6560c4SGreg Roach
30c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
40c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N;
50c0910bfSGreg Roach
67c2c99faSGreg Roach/**
77c2c99faSGreg Roach * @var string $body
87c2c99faSGreg Roach * @var string $head
97c2c99faSGreg Roach * @var string $title
107c2c99faSGreg Roach */
117c2c99faSGreg Roach
120c0910bfSGreg Roach?>
130c0910bfSGreg Roach
140c0910bfSGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), $title]]) ?>
158d6560c4SGreg Roach
168d6560c4SGreg Roach<h1><?= $title ?></h1>
178d6560c4SGreg Roach
188d6560c4SGreg Roach<form method="post">
199e3c2cf9SGreg Roach    <div class="row mb-3">
208d6560c4SGreg Roach        <label for="head" class="col-sm-3 col-form-label">
218d6560c4SGreg Roach            <?= I18N::translate('Add content to the end of the <code>&lt;head&gt;</code> element.') ?>
228d6560c4SGreg Roach        </label>
238d6560c4SGreg Roach        <div class="col-sm-9">
24315eb316SGreg Roach            <textarea id="head" name="head" class="form-control font-monospace" dir="ltr" rows="5"><?= e($head) ?></textarea>
258d6560c4SGreg Roach            <p class="text-muted">
268d6560c4SGreg Roach                <?= I18N::translate('Include the <code>&lt;style&gt;&lt;/style&gt;</code> tags.') ?>
278d6560c4SGreg Roach            </p>
288d6560c4SGreg Roach        </div>
298d6560c4SGreg Roach    </div>
308d6560c4SGreg Roach
319e3c2cf9SGreg Roach    <div class="row mb-3">
328d6560c4SGreg Roach        <label for="body" class="col-sm-3 col-form-label">
338d6560c4SGreg Roach            <?= I18N::translate('Add content to the end of the <code>&lt;body&gt;</code> element.') ?>
348d6560c4SGreg Roach        </label>
358d6560c4SGreg Roach        <div class="col-sm-9">
36315eb316SGreg Roach            <textarea id="body" name="body" class="form-control font-monospace" dir="ltr" rows="5"><?= e($body) ?></textarea>
378d6560c4SGreg Roach            <p class="text-muted">
388d6560c4SGreg Roach                <?= I18N::translate('Include the <code>&lt;script&gt;&lt;/script&gt;</code> tags.') ?>
398d6560c4SGreg Roach            </p>
408d6560c4SGreg Roach        </div>
418d6560c4SGreg Roach    </div>
428d6560c4SGreg Roach
438d6560c4SGreg Roach    <button type="submit" class="btn btn-primary">
448d6560c4SGreg Roach        <?= view('icons/save') ?>
458d6560c4SGreg Roach        <?= I18N::translate('save') ?>
468d6560c4SGreg Roach    </button>
478d6560c4SGreg Roach
480c0910bfSGreg Roach    <a href="<?= route(ControlPanel::class) ?>" class="btn btn-secondary">
498d6560c4SGreg Roach        <?= view('icons/cancel') ?>
508d6560c4SGreg Roach        <?= I18N::translate('cancel') ?>
518d6560c4SGreg Roach    </a>
52*81443e3cSGreg Roach
53*81443e3cSGreg Roach    <?= csrf_field() ?>
548d6560c4SGreg Roach</form>
55