xref: /webtrees/resources/views/modules/custom-css-js/edit.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
10c0910bfSGreg Roach<?php
28d6560c4SGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
50c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
60c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N;
70c0910bfSGreg Roach
87c2c99faSGreg Roach/**
97c2c99faSGreg Roach * @var string $body
107c2c99faSGreg Roach * @var string $head
117c2c99faSGreg Roach * @var string $title
127c2c99faSGreg Roach */
137c2c99faSGreg Roach
140c0910bfSGreg Roach?>
150c0910bfSGreg Roach
160c0910bfSGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), $title]]) ?>
178d6560c4SGreg Roach
188d6560c4SGreg Roach<h1><?= $title ?></h1>
198d6560c4SGreg Roach
208d6560c4SGreg Roach<form method="post">
219e3c2cf9SGreg Roach    <div class="row mb-3">
228d6560c4SGreg Roach        <label for="head" class="col-sm-3 col-form-label">
238d6560c4SGreg Roach            <?= I18N::translate('Add content to the end of the <code>&lt;head&gt;</code> element.') ?>
248d6560c4SGreg Roach        </label>
258d6560c4SGreg Roach        <div class="col-sm-9">
26315eb316SGreg Roach            <textarea id="head" name="head" class="form-control font-monospace" dir="ltr" rows="5"><?= e($head) ?></textarea>
278d6560c4SGreg Roach            <p class="text-muted">
288d6560c4SGreg Roach                <?= I18N::translate('Include the <code>&lt;style&gt;&lt;/style&gt;</code> tags.') ?>
298d6560c4SGreg Roach            </p>
308d6560c4SGreg Roach        </div>
318d6560c4SGreg Roach    </div>
328d6560c4SGreg Roach
339e3c2cf9SGreg Roach    <div class="row mb-3">
348d6560c4SGreg Roach        <label for="body" class="col-sm-3 col-form-label">
358d6560c4SGreg Roach            <?= I18N::translate('Add content to the end of the <code>&lt;body&gt;</code> element.') ?>
368d6560c4SGreg Roach        </label>
378d6560c4SGreg Roach        <div class="col-sm-9">
38315eb316SGreg Roach            <textarea id="body" name="body" class="form-control font-monospace" dir="ltr" rows="5"><?= e($body) ?></textarea>
398d6560c4SGreg Roach            <p class="text-muted">
408d6560c4SGreg Roach                <?= I18N::translate('Include the <code>&lt;script&gt;&lt;/script&gt;</code> tags.') ?>
418d6560c4SGreg Roach            </p>
428d6560c4SGreg Roach        </div>
438d6560c4SGreg Roach    </div>
448d6560c4SGreg Roach
458d6560c4SGreg Roach    <button type="submit" class="btn btn-primary">
468d6560c4SGreg Roach        <?= view('icons/save') ?>
478d6560c4SGreg Roach        <?= I18N::translate('save') ?>
488d6560c4SGreg Roach    </button>
498d6560c4SGreg Roach
500c0910bfSGreg Roach    <a href="<?= route(ControlPanel::class) ?>" class="btn btn-secondary">
518d6560c4SGreg Roach        <?= view('icons/cancel') ?>
528d6560c4SGreg Roach        <?= I18N::translate('cancel') ?>
538d6560c4SGreg Roach    </a>
5481443e3cSGreg Roach
5581443e3cSGreg Roach    <?= csrf_field() ?>
568d6560c4SGreg Roach</form>
57