1*dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\Bootstrap4; ?> 2*dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?> 3*dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 4*dd6b2bfcSGreg Roach 5*dd6b2bfcSGreg Roach<div class="row form-group"> 6*dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="title"> 7*dd6b2bfcSGreg Roach <?= I18N::translate('Title') ?> 8*dd6b2bfcSGreg Roach </label> 9*dd6b2bfcSGreg Roach <div class="col-sm-9"> 10*dd6b2bfcSGreg Roach <input class="form-control" type="text" id="title" name="title" value="<?= e($title) ?>"> 11*dd6b2bfcSGreg Roach </div> 12*dd6b2bfcSGreg Roach</div> 13*dd6b2bfcSGreg Roach 14*dd6b2bfcSGreg Roach<div class="row form-group"> 15*dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="template"> 16*dd6b2bfcSGreg Roach <?= I18N::translate('Templates') ?> 17*dd6b2bfcSGreg Roach </label> 18*dd6b2bfcSGreg Roach <div class="col-sm-9"> 19*dd6b2bfcSGreg Roach <?= Bootstrap4::select([$html => I18N::translate('Custom')] + array_flip($templates), '', ['onchange' => 'this.form.html.value=this.options[this.selectedIndex].value; CKEDITOR.instances.html.setData(document.getElementById("html").value);', 'id' => 'template']) ?> 20*dd6b2bfcSGreg Roach <p class="small text-muted"> 21*dd6b2bfcSGreg Roach <?= I18N::translate('To assist you in getting started with this block, we have created several standard templates. When you select one of these templates, the text area will contain a copy that you can then alter to suit your site’s requirements.') ?> 22*dd6b2bfcSGreg Roach </p> 23*dd6b2bfcSGreg Roach </div> 24*dd6b2bfcSGreg Roach</div> 25*dd6b2bfcSGreg Roach 26*dd6b2bfcSGreg Roach<div class="row form-group"> 27*dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="html"> 28*dd6b2bfcSGreg Roach <?= I18N::translate('Content') ?> 29*dd6b2bfcSGreg Roach </label> 30*dd6b2bfcSGreg Roach <div class="col-sm-9"> 31*dd6b2bfcSGreg Roach <p> 32*dd6b2bfcSGreg Roach <?= I18N::translate('As well as using the toolbar to apply HTML formatting, you can insert database fields which are updated automatically. These special fields are marked with <b>#</b> characters. For example <b>#totalFamilies#</b> will be replaced with the actual number of families in the database. Advanced users may wish to apply CSS classes to their text, so that the formatting matches the currently selected theme.') ?> 33*dd6b2bfcSGreg Roach </p> 34*dd6b2bfcSGreg Roach <textarea name="html" id="html" class="html-edit form-control" rows="10"><?= e($html) ?></textarea> 35*dd6b2bfcSGreg Roach </div> 36*dd6b2bfcSGreg Roach</div> 37*dd6b2bfcSGreg Roach 38*dd6b2bfcSGreg Roach<fieldset class="form-group"> 39*dd6b2bfcSGreg Roach <div class="row"> 40*dd6b2bfcSGreg Roach <legend class="form-control-legend col-sm-3"> 41*dd6b2bfcSGreg Roach <?= I18N::translate('Show the date and time of update') ?> 42*dd6b2bfcSGreg Roach </legend> 43*dd6b2bfcSGreg Roach <div class="col-sm-9"> 44*dd6b2bfcSGreg Roach <?= Bootstrap4::radioButtons('show_timestamp', FunctionsEdit::optionsNoYes(), $show_timestamp, true) ?> 45*dd6b2bfcSGreg Roach </div> 46*dd6b2bfcSGreg Roach </div> 47*dd6b2bfcSGreg Roach</fieldset> 48*dd6b2bfcSGreg Roach 49*dd6b2bfcSGreg Roach<fieldset class="form-group"> 50*dd6b2bfcSGreg Roach <div class="row"> 51*dd6b2bfcSGreg Roach <legend class="form-control-legend col-sm-3"> 52*dd6b2bfcSGreg Roach <?= I18N::translate('Show this block for which languages') ?> 53*dd6b2bfcSGreg Roach </legend> 54*dd6b2bfcSGreg Roach <div class="col-sm-9"> 55*dd6b2bfcSGreg Roach <?= FunctionsEdit::editLanguageCheckboxes('lang', $languages) ?> 56*dd6b2bfcSGreg Roach </div> 57*dd6b2bfcSGreg Roach </div> 58*dd6b2bfcSGreg Roach</fieldset> 59*dd6b2bfcSGreg Roach 60*dd6b2bfcSGreg Roach<?= view('modules/ckeditor/ckeditor-js') ?> 61