1*53e12c6bSGreg Roach<?php 2*53e12c6bSGreg Roach 3*53e12c6bSGreg Roachuse Fisharebest\Webtrees\Bootstrap4; 4*53e12c6bSGreg Roachuse Fisharebest\Webtrees\GedcomTag; 5*53e12c6bSGreg Roach 6*53e12c6bSGreg Roach/** 7*53e12c6bSGreg Roach * @var string[] $date_options 8*53e12c6bSGreg Roach * @var string $field_name 9*53e12c6bSGreg Roach * @var string $field_value 10*53e12c6bSGreg Roach * @var string $modifier 11*53e12c6bSGreg Roach * @var string[] $name_options 12*53e12c6bSGreg Roach */ 13*53e12c6bSGreg Roach 14*53e12c6bSGreg Roach?> 15dd6b2bfcSGreg Roach 16dd6b2bfcSGreg Roach<div class="row form-group"> 17dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="fields[<?= e($field_name) ?>]"> 18dd6b2bfcSGreg Roach <?= GedcomTag::getLabel($field_name) ?> 19dd6b2bfcSGreg Roach </label> 20dd6b2bfcSGreg Roach 21dd6b2bfcSGreg Roach <div class="col-sm-6 wt-page-options-value"> 22*53e12c6bSGreg Roach <input class="form-control form-control" type="text" id="fields[<?= e($field_name) ?>]" name="fields[<?= e($field_name) ?>]" value="<?= e($field_value) ?>" <?php if (substr($field_name, -5) === ':DATE'): ?>onchange="valid_date(this, 'dmy')" <?php endif ?>> 23dd6b2bfcSGreg Roach </div> 24dd6b2bfcSGreg Roach 25dd6b2bfcSGreg Roach <div class="col-sm-3 wt-page-options-value"> 26dd6b2bfcSGreg Roach <?php if (preg_match('/(GIVN|SURN)$/', $field_name)) : ?> 27dd6b2bfcSGreg Roach <?= Bootstrap4::select($name_options, $modifier, ['name' => 'modifiers[' . $field_name . ']']) ?> 28dd6b2bfcSGreg Roach <?php endif ?> 29dd6b2bfcSGreg Roach 30dd6b2bfcSGreg Roach <?php if (preg_match('/(DATE)$/', $field_name)) : ?> 31dd6b2bfcSGreg Roach <?= Bootstrap4::select($date_options, $modifier, ['name' => 'modifiers[' . $field_name . ']']) ?> 32dd6b2bfcSGreg Roach <?php endif ?> 33dd6b2bfcSGreg Roach </div> 34dd6b2bfcSGreg Roach</div> 35