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