xref: /webtrees/resources/views/modules/clippings/download.phtml (revision 3bd0642964543723af30cd34772e464137543717)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5?>
6
7<h2 class="wt-page-title"><?= $title ?></h2>
8
9<form method="post" action="<?= e(route('module', ['module' => $module, 'action' => 'Download', 'tree' => $tree->name()])) ?>" class="wt-page-options wt-page-options-clippings-download hidden-print">
10    <?= csrf_field() ?>
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                <div class="form-check">
19                    <input class="form-check-input" type="radio" name="privatize_export" value="none" id="priv-none" checked>
20                    <label class="form-check-label" for="priv-none">
21                        <?= I18N::translate('None') ?>
22                    </label>
23                </div>
24                <div class="form-check">
25                    <input class="form-check-input" type="radio" name="privatize_export" value="gedadmin" id="priv-manager">
26                    <label class="form-check-label" for="priv-manager">
27                        <?= I18N::translate('Manager') ?>
28                    </label>
29                </div>
30                <div class="form-check">
31                    <input class="form-check-input" type="radio" name="privatize_export" value="user" id="priv-member">
32                    <label class="form-check-label" for="priv-member">
33                        <?= I18N::translate('Member') ?>
34                    </label>
35                </div>
36                <div class="form-check">
37                    <input class="form-check-input" type="radio" name="privatize_export" value="visitor" id="priv-visitor">
38                    <label class="form-check-label" for="priv-visitor">
39                        <?= I18N::translate('Visitor') ?>
40                    </label>
41                </div>
42            </div>
43        </div>
44    <?php elseif ($is_member) : ?>
45        <div class="row form-group">
46            <div class="col-sm-3 col-form-label wt-page-options-label">
47                <?= I18N::translate('Apply privacy settings') ?>
48            </div>
49            <div class="col-sm-9 wt-page-options-value">
50                <div class="form-check">
51                    <input class="form-check-input" type="radio" name="privatize_export" value="user" id="priv-member" checked>
52                    <label class="form-check-label" for="priv-member">
53                        <?= I18N::translate('Member') ?>
54                    </label>
55                </div>
56                <div class="form-check">
57                    <input class="form-check-input" type="radio" name="privatize_export" value="visitor" id="priv-visitor">
58                    <label class="form-check-label" for="priv-visitor">
59                        <?= I18N::translate('Visitor') ?>
60                    </label>
61                </div>
62            </div>
63        </div>
64    <?php else : ?>
65        <input type="hidden" name="privatize_export" value="visitor">
66    <?php endif ?>
67
68    <div class="row form-group">
69        <label class="col-sm-3 col-form-label wt-page-options-label" for="convert">
70            <?= I18N::translate('Convert from UTF-8 to ISO-8859-1') ?>
71        </label>
72        <div class="col-sm-9 wt-page-options-value">
73            <input type="checkbox" name="convert" id="convert">
74        </div>
75    </div>
76
77    <div class="row form-group">
78        <div class="col-sm-3 col-form-label wt-page-options-label">
79        </div>
80        <div class="col-sm-9 wt-page-options-value">
81            <button type="submit" class="btn btn-primary">
82                <?= view('icons/download') ?>
83                <?= I18N::translate('download') ?>
84            </button>
85            <a href="<?= e(route('module', ['module' => 'clippings', 'action' => 'Show', 'tree' => $tree->name()])) ?>" class="btn btn-secondary">
86                <?= view('icons/cancel') ?>
87                <?= I18N::translate('cancel') ?>
88            </a>
89        </div>
90    </div>
91</form>
92