1d70512abSGreg Roach<?php 2d70512abSGreg Roach 30c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 43213013eSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage; 50c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N; 6c532e5bbSGreg Roachuse Fisharebest\Webtrees\Individual; 7c532e5bbSGreg Roachuse Fisharebest\Webtrees\Tree; 8c532e5bbSGreg Roach 9c532e5bbSGreg Roach/** 10c532e5bbSGreg Roach * @var int $block_id 11c532e5bbSGreg Roach * @var Individual $individual 12c532e5bbSGreg Roach * @var array<string> $languages 13c532e5bbSGreg Roach * @var string $story_body 14c532e5bbSGreg Roach * @var string $story_title 15c532e5bbSGreg Roach * @var string $title 16c532e5bbSGreg Roach * @var Tree $tree 17c532e5bbSGreg Roach * @var string $url 18c532e5bbSGreg Roach */ 19dd6b2bfcSGreg Roach 200c0910bfSGreg Roach?> 210c0910bfSGreg Roach 223213013eSGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ModulesAllPage::class) => I18N::translate('Modules'), route('module', ['module' => 'stories', 'action' => 'Admin', 'tree' => $tree->name()]) => I18N::translate('Stories'), $title]]) ?> 23dd6b2bfcSGreg Roach 24dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 25dd6b2bfcSGreg Roach 26d72b284aSGreg Roach<form method="post" action="<?= e(route('module', ['module' => 'stories', 'action' => 'AdminEdit', 'block_id' => $block_id, 'tree' => $tree->name()])) ?>" class="form-horizontal"> 27c532e5bbSGreg Roach <input type="hidden" name="url" value="<?= e($url) ?>"> 28c532e5bbSGreg Roach 299e3c2cf9SGreg Roach <div class="row mb-3"> 30dd6b2bfcSGreg Roach <label for="xref" class="col-sm-3 col-form-label"> 31dd6b2bfcSGreg Roach <?= I18N::translate('Individual') ?> 32dd6b2bfcSGreg Roach </label> 33dd6b2bfcSGreg Roach <div class="col-sm-9"> 34b6c326d8SGreg Roach <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree]) ?> 35dd6b2bfcSGreg Roach </div> 36dd6b2bfcSGreg Roach </div> 37dd6b2bfcSGreg Roach 389e3c2cf9SGreg Roach <div class="row mb-3"> 39dd6b2bfcSGreg Roach <label for="story-title" class="col-sm-3 col-form-label"> 40dd6b2bfcSGreg Roach <?= I18N::translate('Story title') ?> 41dd6b2bfcSGreg Roach </label> 42dd6b2bfcSGreg Roach <div class="col-sm-9"> 43dd6b2bfcSGreg Roach <input type="text" class="form-control" name="story_title" id="story-title" value="<?= e($story_title) ?>"> 44dd6b2bfcSGreg Roach </div> 45dd6b2bfcSGreg Roach </div> 46dd6b2bfcSGreg Roach 479e3c2cf9SGreg Roach <div class="row mb-3"> 48dd6b2bfcSGreg Roach <label for="story-body" class="col-sm-3 col-form-label"> 49dd6b2bfcSGreg Roach <?= I18N::translate('Story') ?> 50dd6b2bfcSGreg Roach </label> 51dd6b2bfcSGreg Roach <div class="col-sm-9"> 52dd6b2bfcSGreg Roach <textarea name="story_body" id="story-body" class="html-edit form-control" rows="10"><?= e($story_body) ?></textarea> 53dd6b2bfcSGreg Roach </div> 54dd6b2bfcSGreg Roach </div> 55dd6b2bfcSGreg Roach 569e3c2cf9SGreg Roach <div class="row mb-3"> 57dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label"> 58dd6b2bfcSGreg Roach <?= I18N::translate('Show this block for which languages') ?> 59dd6b2bfcSGreg Roach </label> 60dd6b2bfcSGreg Roach <div class="col-sm-9"> 61e73fb82fSGreg Roach <?= view('edit/language-checkboxes', ['languages' => $languages]) ?> 62dd6b2bfcSGreg Roach </div> 63dd6b2bfcSGreg Roach </div> 64dd6b2bfcSGreg Roach 659e3c2cf9SGreg Roach <div class="row mb-3"> 66dd6b2bfcSGreg Roach <div class="offset-sm-3 col-sm-9"> 67dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 68dd6b2bfcSGreg Roach <?= view('icons/save') ?> 69dd6b2bfcSGreg Roach <?= I18N::translate('save') ?> 70dd6b2bfcSGreg Roach </button> 71dd6b2bfcSGreg Roach 72c532e5bbSGreg Roach <a href="<?= e($url ?: route('module', ['module' => 'stories', 'action' => 'Admin', 'tree' => $tree->name()])) ?>" class="btn btn-secondary"> 73dd6b2bfcSGreg Roach <?= view('icons/cancel') ?> 74dd6b2bfcSGreg Roach <?= I18N::translate('cancel') ?> 75dd6b2bfcSGreg Roach </a> 76dd6b2bfcSGreg Roach </div> 77dd6b2bfcSGreg Roach </div> 78*81443e3cSGreg Roach 79*81443e3cSGreg Roach <?= csrf_field() ?> 80dd6b2bfcSGreg Roach</form> 81