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