1<?php 2 3use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 4use Fisharebest\Webtrees\Http\RequestHandlers\DataFixSelect; 5use Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees; 6use Fisharebest\Webtrees\I18N; 7use Fisharebest\Webtrees\Module\ModuleDataFixInterface; 8use Fisharebest\Webtrees\Tree; 9use Illuminate\Support\Collection; 10 11/** 12 * @var Collection<int,ModuleDataFixInterface> $data_fixes 13 * @var string $latest_version 14 * @var string $title 15 * @var Tree $tree 16 */ 17 18?> 19 20<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?> 21 22<h1><?= $title ?></h1> 23 24<form method="post" action="<?= e(route(DataFixSelect::class, ['tree' => $tree->name()])) ?>"> 25 <div class="row mb-3"> 26 <label class="col-sm-3 col-form-label" for="data_fix"> 27 <?= I18N::translate('Data fix') ?> 28 </label> 29 <div class="col-sm-9"> 30 <select class="form-select" id="data_fix" name="data_fix" type="text" required="required"> 31 <option value=""><?= I18N::translate('<select>') ?></option> 32 <?php foreach ($data_fixes as $data_fix) : ?> 33 <option value="<?= $data_fix->name() ?>"> 34 <?= $data_fix->title() ?> 35 </option> 36 <?php endforeach ?> 37 </select> 38 </div> 39 </div> 40 41 <div class="row mb-3"> 42 <div class="col-sm-3"> 43 </div> 44 45 <div class="col-sm-9"> 46 <button class="btn btn-primary" type="submit"> 47 <?= view('icons/save') ?> 48 <?= I18N::translate('next') ?> 49 </button> 50 </div> 51 </div> 52 53 <?= csrf_field() ?> 54</form> 55