1<?php 2 3use Fisharebest\Webtrees\Functions\FunctionsEdit; 4use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 5use Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage; 6use Fisharebest\Webtrees\I18N; 7 8?> 9 10<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ModulesAllPage::class) => I18N::translate('Modules'), route('module', ['module' => 'faq', 'action' => 'Admin']) => I18N::translate('Frequently asked questions'), $title]]) ?> 11 12<h1><?= $title ?></h1> 13 14<form method="post" name="faq" class="form-horizontal"> 15 <?= csrf_field() ?> 16 <input type="hidden" name="block_id" value="<?= $block_id ?>"> 17 18 <div class="row form-group"> 19 <label for="header" class="col-sm-3 col-form-label"> 20 <?= I18N::translate('Question') ?> 21 </label> 22 23 <div class="col-sm-9"> 24 <input type="text" class="form-control" name="header" id="header" 25 value="<?= e($header) ?>"> 26 </div> 27 </div> 28 29 <div class="row form-group"> 30 <label for="body" class="col-sm-3 col-form-label"> 31 <?= I18N::translate('Answer') ?> 32 </label> 33 34 <div class="col-sm-9"> 35 <textarea name="body" id="body" class="form-control html-edit" rows="10"><?= e($body) ?></textarea> 36 </div> 37 </div> 38 39 <div class="row form-group"> 40 <label for="xref" class="col-sm-3 col-form-label"> 41 <?= /* I18N: Label for a configuration option */ 42 I18N::translate('Show this block for which languages') ?> 43 </label> 44 45 <div class="col-sm-9"> 46 <?= view('edit/language-checkboxes', ['languages' => $languages]) ?> 47 </div> 48 </div> 49 50 <div class="row form-group"> 51 <label for="block_order" class="col-sm-3 col-form-label"> 52 <?= I18N::translate('Sort order') ?> 53 </label> 54 55 <div class="col-sm-9"> 56 <input type="text" name="block_order" id="block_order" class="form-control" value="<?= $block_order ?>"> 57 </div> 58 </div> 59 60 <div class="row form-group"> 61 <label for="gedcom_id" class="col-sm-3 col-form-label"> 62 <?= I18N::translate('Family tree') ?> 63 </label> 64 65 <div class="col-sm-9"> 66 <?= view('components/select', ['name' => 'gedcom_id', 'selected' => $gedcom_id, 'options' => $gedcom_ids]) ?> 67 <p class="small text-muted"> 68 <?= /* I18N: FAQ = “Frequently Asked Question” */ 69 I18N::translate('An FAQ can be displayed on just one of the family trees, or on all the family trees.') ?> 70 </p> 71 </div> 72 </div> 73 74 <div class="row form-group"> 75 <div class="offset-sm-3 col-sm-9"> 76 <button type="submit" class="btn btn-primary"> 77 <?= view('icons/save') ?> 78 <?= I18N::translate('save') ?> 79 </button> 80 </div> 81 </div> 82</form> 83