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