1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3d70512abSGreg Roachuse Fisharebest\Webtrees\Functions\FunctionsEdit; 4d70512abSGreg Roach 5d70512abSGreg Roach?> 63cfcc809SGreg Roach<?php 73cfcc809SGreg Roach 80c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 9*3213013eSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage; 100c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N; 11dd6b2bfcSGreg Roach 120c0910bfSGreg Roach?> 130c0910bfSGreg Roach 14*3213013eSGreg 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]]) ?> 15dd6b2bfcSGreg Roach 16dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 17dd6b2bfcSGreg Roach 18d72b284aSGreg Roach<form method="post" action="<?= e(route('module', ['module' => 'stories', 'action' => 'AdminEdit', 'block_id' => $block_id, 'tree' => $tree->name()])) ?>" class="form-horizontal"> 19dd6b2bfcSGreg Roach <?= csrf_field() ?> 20dd6b2bfcSGreg Roach 21dd6b2bfcSGreg Roach <div class="row form-group"> 22dd6b2bfcSGreg Roach <label for="xref" class="col-sm-3 col-form-label"> 23dd6b2bfcSGreg Roach <?= I18N::translate('Individual') ?> 24dd6b2bfcSGreg Roach </label> 25dd6b2bfcSGreg Roach <div class="col-sm-9"> 26b6c326d8SGreg Roach <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree]) ?> 27dd6b2bfcSGreg Roach </div> 28dd6b2bfcSGreg Roach </div> 29dd6b2bfcSGreg Roach 30dd6b2bfcSGreg Roach <div class="row form-group"> 31dd6b2bfcSGreg Roach <label for="story-title" class="col-sm-3 col-form-label"> 32dd6b2bfcSGreg Roach <?= I18N::translate('Story title') ?> 33dd6b2bfcSGreg Roach </label> 34dd6b2bfcSGreg Roach <div class="col-sm-9"> 35dd6b2bfcSGreg Roach <input type="text" class="form-control" name="story_title" id="story-title" value="<?= e($story_title) ?>"> 36dd6b2bfcSGreg Roach </div> 37dd6b2bfcSGreg Roach </div> 38dd6b2bfcSGreg Roach 39dd6b2bfcSGreg Roach <div class="row form-group"> 40dd6b2bfcSGreg Roach <label for="story-body" class="col-sm-3 col-form-label"> 41dd6b2bfcSGreg Roach <?= I18N::translate('Story') ?> 42dd6b2bfcSGreg Roach </label> 43dd6b2bfcSGreg Roach <div class="col-sm-9"> 44dd6b2bfcSGreg Roach <textarea name="story_body" id="story-body" class="html-edit form-control" rows="10"><?= e($story_body) ?></textarea> 45dd6b2bfcSGreg Roach </div> 46dd6b2bfcSGreg Roach </div> 47dd6b2bfcSGreg Roach 48dd6b2bfcSGreg Roach <div class="row form-group"> 49dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label"> 50dd6b2bfcSGreg Roach <?= I18N::translate('Show this block for which languages') ?> 51dd6b2bfcSGreg Roach </label> 52dd6b2bfcSGreg Roach <div class="col-sm-9"> 53e73fb82fSGreg Roach <?= view('edit/language-checkboxes', ['languages' => $languages]) ?> 54dd6b2bfcSGreg Roach </div> 55dd6b2bfcSGreg Roach </div> 56dd6b2bfcSGreg Roach 57dd6b2bfcSGreg Roach <div class="row form-group"> 58dd6b2bfcSGreg Roach <div class="offset-sm-3 col-sm-9"> 59dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 60dd6b2bfcSGreg Roach <?= view('icons/save') ?> 61dd6b2bfcSGreg Roach <?= I18N::translate('save') ?> 62dd6b2bfcSGreg Roach </button> 63dd6b2bfcSGreg Roach 64d72b284aSGreg Roach <a href="<?= e(route('module', ['module' => 'stories', 'action' => 'Admin', 'tree' => $tree->name()])) ?>" class="btn btn-secondary"> 65dd6b2bfcSGreg Roach <?= view('icons/cancel') ?> 66dd6b2bfcSGreg Roach <?= I18N::translate('cancel') ?> 67dd6b2bfcSGreg Roach </a> 68dd6b2bfcSGreg Roach </div> 69dd6b2bfcSGreg Roach </div> 70dd6b2bfcSGreg Roach</form> 71