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