xref: /webtrees/resources/views/search-advanced-field.phtml (revision 0115bc1678cafd957052cd2d256563ad3e242cc1)
1<?php use Fisharebest\Webtrees\Bootstrap4; ?>
2<?php use Fisharebest\Webtrees\GedcomTag; ?>
3
4<div class="row form-group">
5    <label class="col-sm-3 col-form-label wt-page-options-label" for="fields[<?= e($field_name) ?>]">
6        <?= GedcomTag::getLabel($field_name) ?>
7    </label>
8
9    <div class="col-sm-6 wt-page-options-value">
10        <input class="form-control form-control" type="text" id="fields[<?= e($field_name) ?>]" name="fields[<?= e($field_name) ?>]" value="<?= e($field_value) ?>">
11        </div>
12
13    <div class="col-sm-3 wt-page-options-value">
14        <?php if (preg_match('/(GIVN|SURN)$/', $field_name)) : ?>
15            <?= Bootstrap4::select($name_options, $modifier, ['name' => 'modifiers[' . $field_name . ']']) ?>
16        <?php endif ?>
17
18        <?php if (preg_match('/(DATE)$/', $field_name)) : ?>
19            <?= Bootstrap4::select($date_options, $modifier, ['name' => 'modifiers[' . $field_name . ']']) ?>
20        <?php endif ?>
21    </div>
22</div>
23