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