1<?php 2 3use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 4use Fisharebest\Webtrees\Http\RequestHandlers\CreateTreeAction; 5use Fisharebest\Webtrees\I18N; 6 7?> 8 9<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), $title]]) ?> 10 11<h1><?= $title ?></h1> 12 13 14<form method="post" action="<?= e(route(CreateTreeAction::class)) ?>" class="form-horizontal"> 15 <?= csrf_field() ?> 16 <div class="row form-group"> 17 <label for="title" class="col-sm-2 col-form-label"> 18 <?= I18N::translate('Family tree title') ?> 19 </label> 20 <div class="col-sm-10"> 21 <input class="form-control" id="title" maxlength="255" name="title" required type="text" value="<?= e($tree_title) ?>"> 22 </div> 23 </div> 24 <div class="row form-group"> 25 <label for="name" class="col-sm-2 col-form-label"> 26 <?= I18N::translate('URL') ?> 27 </label> 28 <div class="col-sm-10"> 29 <div class="input-group" dir="ltr"> 30 <div class="input-group-prepend"> 31 <span class="input-group-text" dir="ltr"> 32 <?= e(explode('{tree}', rawurldecode(route('example')))[0]) ?> 33 </span> 34 </div> 35 <input class="form-control" id="name" maxlength="31" name="name" pattern="[^<>"*?{}():/\\$%|]*" required type="text" value="<?= e($tree_name) ?>" dir="ltr"> 36 <div class="input-group-append"> 37 <span class="input-group-text" dir="ltr"> 38 <?= e(explode('{tree}', rawurldecode(route('example')))[1]) ?> 39 </span> 40 </div> 41 </div> 42 <p class="small text-muted"> 43 <?= I18N::translate('Avoid spaces and punctuation. A family name might be a good choice.') ?> 44 </p> 45 </div> 46 </div> 47 <div class="row form-group"> 48 <div class="offset-sm-2 col-sm-10"> 49 <button type="submit" class="btn btn-primary"> 50 <?= view('icons/save') ?> 51 <?= /* I18N: A button label. */ 52 I18N::translate('create') ?> 53 </button> 54 <p class="small text-muted"> 55 <?= I18N::translate('After creating the family tree, you will be able to import data from a GEDCOM file.') ?> 56 </p> 57 </div> 58 </div> 59</form> 60 61 62<?= view('modals/ajax') ?> 63