1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 2dd6b2bfcSGreg Roach 3dd6b2bfcSGreg Roach<h2 class="wt-page-title"><?= $title ?></h2> 4dd6b2bfcSGreg Roach 5dd6b2bfcSGreg Roach<p> 6dd6b2bfcSGreg Roach <?= I18N::translate('The clippings cart allows you to take extracts from this family tree and download them as a GEDCOM file.') ?> 7dd6b2bfcSGreg Roach</p> 8dd6b2bfcSGreg Roach 9dd6b2bfcSGreg Roach<?php if (empty($records)) : ?> 10dd6b2bfcSGreg Roach<p> 11dd6b2bfcSGreg Roach <?= I18N::translate('Your clippings cart is empty.') ?> 12dd6b2bfcSGreg Roach</p> 13dd6b2bfcSGreg Roach<?php else : ?> 14dd6b2bfcSGreg Roach <table class="table wt-facts-table"> 15dd6b2bfcSGreg Roach <thead> 16dd6b2bfcSGreg Roach <tr> 17dd6b2bfcSGreg Roach <th><?= I18N::translate('Record') ?></th> 18dd6b2bfcSGreg Roach <th><?= I18N::translate('Remove') ?></th> 19dd6b2bfcSGreg Roach </tr> 20dd6b2bfcSGreg Roach </thead> 21dd6b2bfcSGreg Roach <tbody> 22dd6b2bfcSGreg Roach <?php foreach ($records as $record) : ?> 23dd6b2bfcSGreg Roach <tr> 24dd6b2bfcSGreg Roach <td> 25dd6b2bfcSGreg Roach <?php if ($record::RECORD_TYPE === 'INDI') : ?> 26dd6b2bfcSGreg Roach <i class="icon-indis"></i> 27dd6b2bfcSGreg Roach <?php elseif ($record::RECORD_TYPE === 'FAM') : ?> 28dd6b2bfcSGreg Roach <i class="icon-sfamily"></i> 29dd6b2bfcSGreg Roach <?php elseif ($record::RECORD_TYPE === 'SOUR') : ?> 30dd6b2bfcSGreg Roach <i class="icon-source"></i> 31dd6b2bfcSGreg Roach <?php elseif ($record::RECORD_TYPE === 'REPO') : ?> 32dd6b2bfcSGreg Roach <i class="icon-repository"></i> 33dd6b2bfcSGreg Roach <?php elseif ($record::RECORD_TYPE === 'NOTE') : ?> 34dd6b2bfcSGreg Roach <i class="icon-note"></i> 35dd6b2bfcSGreg Roach <?php elseif ($record::RECORD_TYPE === 'OBJE') : ?> 36dd6b2bfcSGreg Roach <i class="icon-media"></i> 37dd6b2bfcSGreg Roach <?php else : ?> 38dd6b2bfcSGreg Roach <i class="icon-clippings"></i> 39dd6b2bfcSGreg Roach <?php endif ?> 40dd6b2bfcSGreg Roach 41dd6b2bfcSGreg Roach <a href="<?= e($record->url()) ?>"> 42dd6b2bfcSGreg Roach <?= $record->getFullName() ?> 43dd6b2bfcSGreg Roach </a> 44dd6b2bfcSGreg Roach </td> 45dd6b2bfcSGreg Roach <td> 46*c0935879SGreg Roach <form method="post" action="<?= e(route('module', ['module' => 'clippings', 'action' => 'Remove', 'ged' => $tree->name(), 'xref' => $record->xref()])) ?>"> 47dd6b2bfcSGreg Roach <?= csrf_field() ?> 48dd6b2bfcSGreg Roach <button type="submit" class="btn btn-link" title="<?= I18N::translate('Remove') ?>"> 49dd6b2bfcSGreg Roach <i class="icon-remove"></i> 50dd6b2bfcSGreg Roach </button> 51dd6b2bfcSGreg Roach </form> 52dd6b2bfcSGreg Roach </td> 53dd6b2bfcSGreg Roach </tr> 54dd6b2bfcSGreg Roach <?php endforeach ?> 55dd6b2bfcSGreg Roach </tbody> 56dd6b2bfcSGreg Roach </table> 57dd6b2bfcSGreg Roach<?php endif ?> 58