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