diff options
Diffstat (limited to 'resources/views/edit/paste-fact-row.phtml')
| -rw-r--r-- | resources/views/edit/paste-fact-row.phtml | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/resources/views/edit/paste-fact-row.phtml b/resources/views/edit/paste-fact-row.phtml deleted file mode 100644 index 6cf3007856..0000000000 --- a/resources/views/edit/paste-fact-row.phtml +++ /dev/null @@ -1,55 +0,0 @@ -<?php - -use Fisharebest\Webtrees\Fact; -use Fisharebest\Webtrees\GedcomRecord; -use Fisharebest\Webtrees\Http\RequestHandlers\PasteFact; -use Fisharebest\Webtrees\I18N; -use Illuminate\Support\Collection; - -/** - * @var Collection<Fact> $facts - * @var GedcomRecord $record - */ - -?> - -<?php if ($facts->isNotEmpty()) : ?> -<tr> - <th scope="row"> - <label for="paste-fact"> - <?= I18N::translate('Add from clipboard') ?> - </label> - </th> - <td> - <form method="post" action="<?= route(PasteFact::class, ['tree' => $record->tree()->name(), 'xref' => $record->xref()]) ?>"> - <?= csrf_field() ?> - - <div class="input-group"> - <select class="custom-select" id="paste-fact" name="fact_id"> - <?php foreach ($facts as $fact) : ?> - <option value="<?= e($fact->id()) ?>"> - <?= $fact->label() ?> - <?php if ($fact->target() !== null) : ?> - – <?= strip_tags($fact->target()->fullName()) ?> - <?php elseif ($fact->value() !== '') : ?> - – <?= e($fact->value()) ?> - <?php endif ?> - <?php if ($fact->date()->isOK()) : ?> - – <?= $fact->date()->minimumDate()->format('%Y') ?> - <?php endif ?> - <?php if ($fact->place()->gedcomName() !== '') : ?> - – <?= $fact->place()->shortName() ?> - <?php endif ?> - </option> - <?php endforeach ?> - </select> - <div class="input-group-append"> - <button class="btn btn-light" type="submit"> - <?= /* I18N: A button label. */ I18N::translate('add') ?> - </button> - </div> - </div> - </form> - </td> -</tr> -<?php endif ?> |
