12917771cSGreg Roach<?php 22917771cSGreg Roach 32917771cSGreg Roachuse Fisharebest\Webtrees\Functions\FunctionsPrintFacts; 42917771cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddNewFact; 52917771cSGreg Roachuse Fisharebest\Webtrees\I18N; 62917771cSGreg Roachuse Fisharebest\Webtrees\View; 72917771cSGreg Roach 82917771cSGreg Roach?> 9dd6b2bfcSGreg Roach 104a2590a5SGreg Roach<div class="wt-tan-notes py-4"> 11dd6b2bfcSGreg Roach <table class="table wt-facts-table"> 12dd6b2bfcSGreg Roach <tr> 13dd6b2bfcSGreg Roach <td colspan="2"> 14dd6b2bfcSGreg Roach <label> 1564490ee2SGreg Roach <input id="show-level-2-notes" type="checkbox" data-toggle="collapse" data-target=".wt-level-two-note"> 16dd6b2bfcSGreg Roach <?= I18N::translate('Show all notes') ?> 17dd6b2bfcSGreg Roach </label> 18dd6b2bfcSGreg Roach </td> 19dd6b2bfcSGreg Roach </tr> 20dd6b2bfcSGreg Roach 21dd6b2bfcSGreg Roach <?php foreach ($facts as $fact) : ?> 22dd6b2bfcSGreg Roach <?php FunctionsPrintFacts::printMainNotes($fact, 1) ?> 23dd6b2bfcSGreg Roach <?php FunctionsPrintFacts::printMainNotes($fact, 2) ?> 24dd6b2bfcSGreg Roach <?php FunctionsPrintFacts::printMainNotes($fact, 3) ?> 25dd6b2bfcSGreg Roach <?php FunctionsPrintFacts::printMainNotes($fact, 4) ?> 26dd6b2bfcSGreg Roach <?php endforeach ?> 27dd6b2bfcSGreg Roach 28*075d1a05SGreg Roach <?php if ($facts->isEmpty()) : ?> 29dd6b2bfcSGreg Roach <tr> 30dd6b2bfcSGreg Roach <td colspan="2"> 31dd6b2bfcSGreg Roach <?= I18N::translate('There are no notes for this individual.') ?> 32dd6b2bfcSGreg Roach </td> 33dd6b2bfcSGreg Roach </tr> 34dd6b2bfcSGreg Roach <?php endif ?> 35dd6b2bfcSGreg Roach 36dd6b2bfcSGreg Roach <?php if ($can_edit) : ?> 372adcbd9aSGreg Roach <?= view('edit/paste-fact-row', ['record' => $individual, 'facts' => $clipboard_facts]) ?> 382adcbd9aSGreg Roach 39dd6b2bfcSGreg Roach <tr> 40dd6b2bfcSGreg Roach <th scope="row"> 41dd6b2bfcSGreg Roach <?= I18N::translate('Note') ?> 42dd6b2bfcSGreg Roach </th> 43dd6b2bfcSGreg Roach <td> 442917771cSGreg Roach <a href="<?= e(route(AddNewFact::class, ['tree' => $individual->tree()->name(), 'xref' => $individual->xref(), 'fact' => 'NOTE'])) ?>"> 45dd6b2bfcSGreg Roach <?= I18N::translate('Add a note') ?> 46dd6b2bfcSGreg Roach </a> 47dd6b2bfcSGreg Roach </td> 48dd6b2bfcSGreg Roach </tr> 49dd6b2bfcSGreg Roach <tr> 50dd6b2bfcSGreg Roach <th scope="row"> 51dd6b2bfcSGreg Roach <?= I18N::translate('Shared note') ?> 52dd6b2bfcSGreg Roach </th> 53dd6b2bfcSGreg Roach <td> 542917771cSGreg Roach <a href="<?= e(route(AddNewFact::class, ['tree' => $individual->tree()->name(), 'xref' => $individual->xref(), 'fact' => 'SHARED_NOTE'])) ?>"> 55dd6b2bfcSGreg Roach <?= I18N::translate('Add a shared note') ?> 56dd6b2bfcSGreg Roach </a> 57dd6b2bfcSGreg Roach </td> 58dd6b2bfcSGreg Roach </tr> 59dd6b2bfcSGreg Roach <?php endif ?> 60dd6b2bfcSGreg Roach </table> 61dd6b2bfcSGreg Roach</div> 62dd6b2bfcSGreg Roach 63dd6b2bfcSGreg Roach<?php View::push('javascript') ?> 64dd6b2bfcSGreg Roach<script> 65dd6b2bfcSGreg Roach 'use strict'; 66dd6b2bfcSGreg Roach 6764490ee2SGreg Roach persistent_toggle("show-level-2-notes"); 68dd6b2bfcSGreg Roach</script> 69dd6b2bfcSGreg Roach<?php View::endpush() ?> 70