1a60f9d1cSGreg Roach<?php 2a60f9d1cSGreg Roach 3*c8d78f19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AbstractTomSelectHandler; 4*c8d78f19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TomSelectPlace; 5a60f9d1cSGreg Roachuse Fisharebest\Webtrees\Place; 6a60f9d1cSGreg Roachuse Fisharebest\Webtrees\Tree; 7a60f9d1cSGreg Roach 8a60f9d1cSGreg Roach/** 9a60f9d1cSGreg Roach * @var Place|null $place 10a60f9d1cSGreg Roach * @var string|null $class 11a60f9d1cSGreg Roach * @var string|null $id 12a60f9d1cSGreg Roach * @var string $name 13a60f9d1cSGreg Roach * @var Tree $tree 14a60f9d1cSGreg Roach */ 15a60f9d1cSGreg Roach 16a60f9d1cSGreg Roach?> 17a60f9d1cSGreg Roach 18a60f9d1cSGreg Roach<select 19a60f9d1cSGreg Roach autocomplete="off" 20*c8d78f19SGreg Roach class="form-select tom-select <?= $class ?? '' ?>" 21*c8d78f19SGreg Roach data-url="<?= e(route(TomSelectPlace::class, ['tree' => $tree->name()])) ?>" 22a60f9d1cSGreg Roach id="<?= e($id ?? $name) ?>" 23a60f9d1cSGreg Roach name="<?= e($name) ?>" 24*c8d78f19SGreg Roach <?= ($disabled ?? false) ? 'disabled="disabled"' : '' ?> 25*c8d78f19SGreg Roach <?= ($required ?? false) ? 'required="required"' : '' ?> 26a60f9d1cSGreg Roach> 27a60f9d1cSGreg Roach <?php if (($place ?? null) instanceof Place) : ?> 28a60f9d1cSGreg Roach <option value="<?= e($place->id()) ?>"> 29a60f9d1cSGreg Roach <?= view('selects/place', ['place' => $place]) ?> 30a60f9d1cSGreg Roach </option> 31a60f9d1cSGreg Roach <?php else : ?> 32027478c2SGreg Roach <option value=""> </option> 33a60f9d1cSGreg Roach <?php endif ?> 34a60f9d1cSGreg Roach</select> 35