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