xref: /webtrees/resources/views/modules/clippings/download.phtml (revision 00b1984e374faddab4698e73088f0c964e529b65)
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                <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                <?= view('icons/download') ?>
61                <?= I18N::translate('download') ?>
62            </button>
63            <a href="<?= e(route('module', ['module' => 'clippings', 'action' => 'Show', 'tree' => $tree->name()])) ?>" class="btn btn-secondary">
64                <?= view('icons/cancel') ?>
65                <?= I18N::translate('cancel') ?>
66            </a>
67        </div>
68    </div>
69</form>
70