xref: /webtrees/resources/views/modules/faq/edit.phtml (revision 3213013ede3591752a6702ce4e8d35f6396dd0f9)
171378461SGreg Roach<?php
271378461SGreg Roach
371378461SGreg Roachuse Fisharebest\Webtrees\Functions\FunctionsEdit;
40c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
5*3213013eSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
671378461SGreg Roachuse Fisharebest\Webtrees\I18N;
771378461SGreg Roach
871378461SGreg Roach?>
9dd6b2bfcSGreg Roach
10*3213013eSGreg Roach<?= 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]]) ?>
11dd6b2bfcSGreg Roach
12dd6b2bfcSGreg Roach<h1><?= $title ?></h1>
13dd6b2bfcSGreg Roach
141d1f373cSGreg Roach<form method="post" name="faq" class="form-horizontal">
15dd6b2bfcSGreg Roach    <?= csrf_field() ?>
16dd6b2bfcSGreg Roach    <input type="hidden" name="block_id" value="<?= $block_id ?>">
17dd6b2bfcSGreg Roach
18dd6b2bfcSGreg Roach    <div class="row form-group">
19dd6b2bfcSGreg Roach        <label for="header" class="col-sm-3 col-form-label">
20dd6b2bfcSGreg Roach            <?= I18N::translate('Question') ?>
21dd6b2bfcSGreg Roach        </label>
22dd6b2bfcSGreg Roach
23dd6b2bfcSGreg Roach        <div class="col-sm-9">
24dd6b2bfcSGreg Roach            <input type="text" class="form-control" name="header" id="header"
25dd6b2bfcSGreg Roach                value="<?= e($header) ?>">
26dd6b2bfcSGreg Roach        </div>
27dd6b2bfcSGreg Roach    </div>
28dd6b2bfcSGreg Roach
29dd6b2bfcSGreg Roach    <div class="row form-group">
301e653452SGreg Roach        <label for="body" class="col-sm-3 col-form-label">
31dd6b2bfcSGreg Roach            <?= I18N::translate('Answer') ?>
32dd6b2bfcSGreg Roach        </label>
33dd6b2bfcSGreg Roach
34dd6b2bfcSGreg Roach        <div class="col-sm-9">
351e653452SGreg Roach            <textarea name="body" id="body" class="form-control html-edit" rows="10"><?= e($body) ?></textarea>
36dd6b2bfcSGreg Roach        </div>
37dd6b2bfcSGreg Roach    </div>
38dd6b2bfcSGreg Roach
39dd6b2bfcSGreg Roach    <div class="row form-group">
40dd6b2bfcSGreg Roach        <label for="xref" class="col-sm-3 col-form-label">
41dd6b2bfcSGreg Roach            <?= /* I18N: Label for a configuration option */
42dd6b2bfcSGreg Roach            I18N::translate('Show this block for which languages') ?>
43dd6b2bfcSGreg Roach        </label>
44dd6b2bfcSGreg Roach
45dd6b2bfcSGreg Roach        <div class="col-sm-9">
46e73fb82fSGreg Roach            <?= view('edit/language-checkboxes', ['languages' => $languages]) ?>
47dd6b2bfcSGreg Roach        </div>
48dd6b2bfcSGreg Roach    </div>
49dd6b2bfcSGreg Roach
50dd6b2bfcSGreg Roach    <div class="row form-group">
51dd6b2bfcSGreg Roach        <label for="block_order" class="col-sm-3 col-form-label">
52dd6b2bfcSGreg Roach            <?= I18N::translate('Sort order') ?>
53dd6b2bfcSGreg Roach        </label>
54dd6b2bfcSGreg Roach
55dd6b2bfcSGreg Roach        <div class="col-sm-9">
56dd6b2bfcSGreg Roach            <input type="text" name="block_order" id="block_order" class="form-control" value="<?= $block_order ?>">
57dd6b2bfcSGreg Roach        </div>
58dd6b2bfcSGreg Roach    </div>
59dd6b2bfcSGreg Roach
60dd6b2bfcSGreg Roach    <div class="row form-group">
61dd6b2bfcSGreg Roach        <label for="gedcom_id" class="col-sm-3 col-form-label">
62dd6b2bfcSGreg Roach            <?= I18N::translate('Family tree') ?>
63dd6b2bfcSGreg Roach        </label>
64dd6b2bfcSGreg Roach
65dd6b2bfcSGreg Roach        <div class="col-sm-9">
661e653452SGreg Roach            <?= view('components/select', ['name' => 'gedcom_id', 'selected' => $gedcom_id, 'options' => $gedcom_ids]) ?>
67dd6b2bfcSGreg Roach            <p class="small text-muted">
68dd6b2bfcSGreg Roach                <?= /* I18N: FAQ = “Frequently Asked Question” */
69dd6b2bfcSGreg Roach                I18N::translate('An FAQ can be displayed on just one of the family trees, or on all the family trees.') ?>
70dd6b2bfcSGreg Roach            </p>
71dd6b2bfcSGreg Roach        </div>
72dd6b2bfcSGreg Roach    </div>
73dd6b2bfcSGreg Roach
74dd6b2bfcSGreg Roach    <div class="row form-group">
75dd6b2bfcSGreg Roach        <div class="offset-sm-3 col-sm-9">
76dd6b2bfcSGreg Roach            <button type="submit" class="btn btn-primary">
77dd6b2bfcSGreg Roach                <?= view('icons/save') ?>
78dd6b2bfcSGreg Roach                <?= I18N::translate('save') ?>
79dd6b2bfcSGreg Roach            </button>
80dd6b2bfcSGreg Roach        </div>
81dd6b2bfcSGreg Roach    </div>
82dd6b2bfcSGreg Roach</form>
83