1<?php use Fisharebest\Webtrees\Bootstrap4; ?> 2<?php use Fisharebest\Webtrees\I18N; ?> 3 4<h2 class="wt-page-title"> 5 <?= $title ?> 6</h2> 7 8<div id="advanced-search-page"> 9 <form class="wt-page-options wt-page-options-search-advanced hidden-print mb-4"> 10 <input type="hidden" name="route" value="search-advanced"> 11 <input type="hidden" name="ged" value="<?= e($tree->name()) ?>"> 12 13 <div class="row form-group wt-page-options-label mt-4"> 14 <div class="form-row mx-auto"> 15 <?= I18N::translate('Individual') ?> 16 </div> 17 </div> 18 19 <?php foreach ($fields as $field_name => $field_value) : ?> 20 <?php if (substr($field_name, 0, 5) !== 'FAMC:') : ?> 21 <?= view('search-advanced-field', ['field_name' => $field_name, 'field_value' => $field_value, 'modifier' => $modifiers[$field_name] ?? '', 'date_options' => $date_options, 'name_options' => $name_options]) ?> 22 <?php endif ?> 23 <?php endforeach ?> 24 25 <div class="row form-group"> 26 <div class="col-sm-3 col-form-label wt-page-options-label"> 27 <?= I18N::translate('Add more fields') ?> 28 </div> 29 30 <div class="col-sm-3 wt-page-options-value"> 31 <?= Bootstrap4::select(['' => ''] + $other_fields, '', ['name' => 'other_field']) ?> 32 </div> 33 34 <div class="col-sm-3 wt-page-options-value"> 35 <input type="text" class="form-control" name="other_value"> 36 </div> 37 38 <div class="col-sm-3 wt-page-options-value"> 39 </div> 40 </div> 41 42 <div class="row form-group wt-page-options-label mt-4"> 43 <div class="form-row mx-auto"> 44 <?= I18N::translate('Father') ?> 45 </div> 46 </div> 47 48 <?php foreach ($fields as $field_name => $field_value) : ?> 49 <?php if (substr($field_name, 0, 10) === 'FAMC:HUSB:') : ?> 50 <?= view('search-advanced-field', ['field_name' => $field_name, 'field_value' => $field_value, 'modifier' => $modifiers[$field_name] ?? '', 'date_options' => $date_options, 'name_options' => $name_options]) ?> 51 <?php endif ?> 52 <?php endforeach ?> 53 54 <div class="row form-group wt-page-options-label mt-4"> 55 <div class="form-row mx-auto"> 56 <?= I18N::translate('Mother') ?> 57 </div> 58 </div> 59 60 <?php foreach ($fields as $field_name => $field_value) : ?> 61 <?php if (substr($field_name, 0, 10) === 'FAMC:WIFE:') : ?> 62 <?= view('search-advanced-field', ['field_name' => $field_name, 'field_value' => $field_value, 'modifier' => $modifiers[$field_name] ?? '', 'date_options' => $date_options, 'name_options' => $name_options]) ?> 63 <?php endif ?> 64 <?php endforeach ?> 65 66 <div class="row form-group my-3"> 67 <div class="form-row mx-auto"> 68 <input type="submit" class="btn btn-primary" value="<?= /* I18N: A button label. */ 69 I18N::translate('search') ?>"> 70 </div> 71 </div> 72 </form> 73</div> 74 75<?php if (true) : ?> 76 <?php if (empty($individuals)) : ?> 77 <div class="alert alert-info row"> 78 <?= I18N::translate('No results found.') ?> 79 </div> 80 <?php else : ?> 81 <?= view('search-results', ['individuals' => $individuals, 'search_families' => false, 'search_individuals' => true, 'search_notes' => false, 'search_sources' => false, 'search_repositories' => false]) ?> 82 <?php endif ?> 83<?php endif ?> 84 85