xref: /webtrees/resources/views/modules/custom-css-js/edit.phtml (revision 59597b37d69e8147c3f4a27643e9c8edaa2a0592)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
4use Fisharebest\Webtrees\I18N;
5
6?>
7
8<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), $title]]) ?>
9
10<h1><?= $title ?></h1>
11
12<form method="post">
13    <?= csrf_field() ?>
14    <div class="row form-group">
15        <label for="head" class="col-sm-3 col-form-label">
16            <?= I18N::translate('Add content to the end of the <code>&lt;head&gt;</code> element.') ?>
17        </label>
18        <div class="col-sm-9">
19            <textarea id="head" name="head" class="form-control text-monospace" dir="ltr" rows="5"><?= e($head) ?></textarea>
20            <p class="text-muted">
21                <?= I18N::translate('Include the <code>&lt;style&gt;&lt;/style&gt;</code> tags.') ?>
22            </p>
23        </div>
24    </div>
25
26    <div class="row form-group">
27        <label for="body" class="col-sm-3 col-form-label">
28            <?= I18N::translate('Add content to the end of the <code>&lt;body&gt;</code> element.') ?>
29        </label>
30        <div class="col-sm-9">
31            <textarea id="body" name="body" class="form-control text-monospace" dir="ltr" rows="5"><?= e($body) ?></textarea>
32            <p class="text-muted">
33                <?= I18N::translate('Include the <code>&lt;script&gt;&lt;/script&gt;</code> tags.') ?>
34            </p>
35        </div>
36    </div>
37
38    <button type="submit" class="btn btn-primary">
39        <?= view('icons/save') ?>
40        <?= I18N::translate('save') ?>
41    </button>
42
43    <a href="<?= route(ControlPanel::class) ?>" class="btn btn-secondary">
44        <?= view('icons/cancel') ?>
45        <?= I18N::translate('cancel') ?>
46    </a>
47</form>
48