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