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