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