xref: /webtrees/resources/views/modals/repository-fields.phtml (revision 06fbdc2e642c2c12944f86e456d956ced5d5a6d9)
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