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