1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 50c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 63213013eSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage; 70c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N; 8c532e5bbSGreg Roachuse Fisharebest\Webtrees\Individual; 9c532e5bbSGreg Roachuse Fisharebest\Webtrees\Tree; 10c532e5bbSGreg Roach 11c532e5bbSGreg Roach/** 12c532e5bbSGreg Roach * @var int $block_id 13c532e5bbSGreg Roach * @var Individual $individual 14c532e5bbSGreg Roach * @var array<string> $languages 15c532e5bbSGreg Roach * @var string $story_body 16c532e5bbSGreg Roach * @var string $story_title 17c532e5bbSGreg Roach * @var string $title 18c532e5bbSGreg Roach * @var Tree $tree 19c532e5bbSGreg Roach * @var string $url 20c532e5bbSGreg Roach */ 21dd6b2bfcSGreg Roach 220c0910bfSGreg Roach?> 230c0910bfSGreg Roach 243213013eSGreg 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]]) ?> 25dd6b2bfcSGreg Roach 26dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 27dd6b2bfcSGreg Roach 28d72b284aSGreg Roach<form method="post" action="<?= e(route('module', ['module' => 'stories', 'action' => 'AdminEdit', 'block_id' => $block_id, 'tree' => $tree->name()])) ?>" class="form-horizontal"> 29c532e5bbSGreg Roach <input type="hidden" name="url" value="<?= e($url) ?>"> 30c532e5bbSGreg Roach 319e3c2cf9SGreg Roach <div class="row mb-3"> 32dd6b2bfcSGreg Roach <label for="xref" class="col-sm-3 col-form-label"> 33dd6b2bfcSGreg Roach <?= I18N::translate('Individual') ?> 34dd6b2bfcSGreg Roach </label> 35dd6b2bfcSGreg Roach <div class="col-sm-9"> 36b6c326d8SGreg Roach <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree]) ?> 37dd6b2bfcSGreg Roach </div> 38dd6b2bfcSGreg Roach </div> 39dd6b2bfcSGreg Roach 409e3c2cf9SGreg Roach <div class="row mb-3"> 41dd6b2bfcSGreg Roach <label for="story-title" class="col-sm-3 col-form-label"> 42dd6b2bfcSGreg Roach <?= I18N::translate('Story title') ?> 43dd6b2bfcSGreg Roach </label> 44dd6b2bfcSGreg Roach <div class="col-sm-9"> 45dd6b2bfcSGreg Roach <input type="text" class="form-control" name="story_title" id="story-title" value="<?= e($story_title) ?>"> 46dd6b2bfcSGreg Roach </div> 47dd6b2bfcSGreg Roach </div> 48dd6b2bfcSGreg Roach 499e3c2cf9SGreg Roach <div class="row mb-3"> 50dd6b2bfcSGreg Roach <label for="story-body" class="col-sm-3 col-form-label"> 51dd6b2bfcSGreg Roach <?= I18N::translate('Story') ?> 52dd6b2bfcSGreg Roach </label> 53dd6b2bfcSGreg Roach <div class="col-sm-9"> 54dd6b2bfcSGreg Roach <textarea name="story_body" id="story-body" class="html-edit form-control" rows="10"><?= e($story_body) ?></textarea> 55dd6b2bfcSGreg Roach </div> 56dd6b2bfcSGreg Roach </div> 57dd6b2bfcSGreg Roach 589e3c2cf9SGreg Roach <div class="row mb-3"> 59dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label"> 60dd6b2bfcSGreg Roach <?= I18N::translate('Show this block for which languages') ?> 61dd6b2bfcSGreg Roach </label> 62dd6b2bfcSGreg Roach <div class="col-sm-9"> 63e73fb82fSGreg Roach <?= view('edit/language-checkboxes', ['languages' => $languages]) ?> 64dd6b2bfcSGreg Roach </div> 65dd6b2bfcSGreg Roach </div> 66dd6b2bfcSGreg Roach 679e3c2cf9SGreg Roach <div class="row mb-3"> 68dd6b2bfcSGreg Roach <div class="offset-sm-3 col-sm-9"> 69dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 70dd6b2bfcSGreg Roach <?= view('icons/save') ?> 71dd6b2bfcSGreg Roach <?= I18N::translate('save') ?> 72dd6b2bfcSGreg Roach </button> 73dd6b2bfcSGreg Roach 74c532e5bbSGreg Roach <a href="<?= e($url ?: route('module', ['module' => 'stories', 'action' => 'Admin', 'tree' => $tree->name()])) ?>" class="btn btn-secondary"> 75dd6b2bfcSGreg Roach <?= view('icons/cancel') ?> 76dd6b2bfcSGreg Roach <?= I18N::translate('cancel') ?> 77dd6b2bfcSGreg Roach </a> 78dd6b2bfcSGreg Roach </div> 79dd6b2bfcSGreg Roach </div> 8081443e3cSGreg Roach 8181443e3cSGreg Roach <?= csrf_field() ?> 82dd6b2bfcSGreg Roach</form> 83