xref: /webtrees/resources/views/modals/repository-fields.phtml (revision ac71572d8462e396ed5a307f05b29381e49f9e6e)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Contracts\ElementInterface;
6use Fisharebest\Webtrees\Tree;
7
8/**
9 * @var array<string,ElementInterface> $elements
10 * @var Tree                           $tree
11 */
12?>
13
14<?php foreach ($elements as $id => $element) : ?>
15    <div class="mb-3">
16        <label class="col-form-label" for="<?= e($id) ?>">
17            <?= $element->label() ?>
18        </label>
19        <?= $element->edit($id, $id, '', $tree) ?>
20    </div>
21<?php endforeach ?>
22
23<?= view('modals/restriction-fields') ?>
24