xref: /webtrees/resources/views/modules/clippings/download.phtml (revision 84586c024c68dbfa3b15df636ed2b74037428442)
1<?php use Fisharebest\Webtrees\FontAwesome; ?>
2<?php use Fisharebest\Webtrees\I18N; ?>
3
4<h2 class="wt-page-title"><?= $title ?></h2>
5
6<form class="wt-page-options wt-page-options-clippings-download hidden-print">
7    <input type="hidden" name="route" value="module">
8    <input type="hidden" name="module" value="clippings">
9    <input type="hidden" name="action" value="Download">
10    <input type="hidden" name="ged" value="<?= e($tree->getName()) ?>">
11
12    <?php if ($is_manager) : ?>
13        <div class="row form-group">
14            <div class="col-sm-3 col-form-label wt-page-options-label">
15                <?= I18N::translate('Apply privacy settings') ?>
16            </div>
17            <div class="col-sm-9 wt-page-options-value">
18                <input type="radio" name="privatize_export" value="none" checked>
19                <?= I18N::translate('None') ?>
20                <br>
21                <input type="radio" name="privatize_export" value="gedadmin">
22                <?= I18N::translate('Manager') ?>
23                <br>
24                <input type="radio" name="privatize_export" value="user">
25                <?= I18N::translate('Member') ?>
26                <br>
27                <input type="radio" name="privatize_export" value="visitor">
28                <?= I18N::translate('Visitor') ?>
29            </div>
30        </div>
31    <?php elseif ($is_member) : ?>
32        <div class="row form-group">
33            <div class="col-sm-3 col-form-label wt-page-options-label">
34                <?= I18N::translate('Apply privacy settings') ?>
35            </div>
36            <div class="col-sm-9 wt-page-options-value">
37                <input type="radio" name="privatize_export" value="user">
38                <?= I18N::translate('Member') ?>
39                <br>
40                <input type="radio" name="privatize_export" value="visitor">
41                <?= I18N::translate('Visitor') ?>
42            </div>
43        </div>
44    <?php endif ?>
45
46    <div class="row form-group">
47        <label class="col-sm-3 col-form-label wt-page-options-label" for="convert">
48            <?= I18N::translate('Convert from UTF-8 to ISO-8859-1') ?>
49        </label>
50        <div class="col-sm-9 wt-page-options-value">
51            <input type="checkbox" name="convert" id="convert">
52        </div>
53    </div>
54
55    <div class="row form-group">
56        <div class="col-sm-3 col-form-label wt-page-options-label">
57        </div>
58        <div class="col-sm-9 wt-page-options-value">
59            <button type="submit" class="btn btn-primary">
60                <?= FontAwesome::decorativeIcon('download') ?>
61                <?= I18N::translate('download') ?>
62            </button>
63            <a href="<?= e(route('module', ['module' => 'clippings', 'action' => 'Show', 'ged' => $tree->getName()])) ?>" class="btn btn-secondary">
64                <?= FontAwesome::decorativeIcon('cancel') ?>
65                <?= I18N::translate('cancel') ?>
66            </a>
67        </div>
68    </div>
69</form>
70