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