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