xref: /webtrees/resources/views/admin/trees-export.phtml (revision b6c326d8b8798b83b744c4d4a669df5aa9f3e0c2)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<?= view('components/breadcrumbs', ['links' => [route('admin-control-panel') => I18N::translate('Control panel'), route('admin-trees') => I18N::translate('Manage family trees'), $title]]) ?>
4
5<h1><?= $title ?></h1>
6
7<form class="form form-horizontal" method="post">
8    <?= csrf_field() ?>
9
10    <div class="row form-group">
11        <div for="submit-export" class="col-sm-3 col-form-label">
12            <?= I18N::translate('A file on the server') ?>
13        </div>
14        <div class="col-sm-9">
15            <button type="submit" class="btn btn-primary">
16                <?= /* I18N: A button label. */ I18N::translate('continue') ?>
17            </button>
18        </div>
19    </div>
20</form>
21
22<hr>
23
24<form class="form form-horizontal">
25    <input type="hidden" name="route" value="admin-trees-download">
26    <input type="hidden" name="ged" value="<?= e($tree->name()) ?>">
27
28    <!-- DOWNLOAD OPTIONS -->
29    <fieldset class="form-group">
30        <div class="row">
31            <legend class="col-form-label col-sm-3">
32                <?= I18N::translate('Export preferences') ?>
33            </legend>
34            <div class="col-sm-9">
35                <div class="form-check">
36                    <label class="form-check-label">
37                        <input class="form-check-input" type="checkbox" name="zip">
38                        <?= I18N::translate('Compress the GEDCOM file') ?>
39                    </label>
40                </div>
41                <p class="small muted">
42                    <?= I18N::translate('To reduce the size of the download, you can compress the data into a .ZIP file. You will need to uncompress the .ZIP file before you can use it.') ?>
43                </p>
44
45                <div class="form-check">
46                    <label class="form-check-label">
47                        <input class="form-check-input" type="checkbox" name="media">
48                        <?= I18N::translate('Include media (automatically zips files)') ?>
49                    </label>
50                </div>
51
52                <?php if ($tree->getPreference('GEDCOM_MEDIA_PATH')) : ?>
53                    <label>
54                        <input type="checkbox" name="media-path" value="<?= e($tree->getPreference('GEDCOM_MEDIA_PATH')) ?>">
55                        <?= /* I18N: A media path (e.g. C:\aaa\bbb\ccc\) in a GEDCOM file */ I18N::translate('Add the GEDCOM media path to filenames') ?>
56                    </label>
57                    <p>
58                        <?= /* I18N: %s is the name of a folder. */ I18N::translate('Media filenames will be prefixed by %s.', '<code dir="ltr">' . e($tree->getPreference('GEDCOM_MEDIA_PATH')) . '</code>') ?>
59                    </p>
60                <?php endif ?>
61
62                <div class="form-check">
63                    <label class="form-check-label">
64                        <input class="form-check-input" type="checkbox" name="convert">
65                        <?= I18N::translate('Convert from UTF-8 to ISO-8859-1') ?>
66                    </label>
67                </div>
68                <p class="small muted">
69                    <?= I18N::translate('webtrees uses UTF-8 encoding for accented letters, special characters and non-Latin scripts. If you want to use this GEDCOM file with genealogy software that does not support UTF-8, then you can create it using ISO-8859-1 encoding.') ?>
70                </p>
71            </div>
72        </div>
73    </fieldset>
74
75    <!-- PRIVACY OPTIONS -->
76    <fieldset class="form-group">
77        <div class="row">
78            <legend class="col-form-label col-sm-3">
79                <?= I18N::translate('Apply privacy settings') ?>
80            </legend>
81            <div class="col-sm-9">
82                <div class="form-check form-check-inline">
83                    <label>
84                        <input type="radio" name="privatize_export" value="none" checked>
85                        <?= I18N::translate('None') ?>
86                    </label>
87                </div>
88                <div class="form-check form-check-inline">
89                    <label>
90                        <input type="radio" name="privatize_export" value="gedadmin">
91                        <?= I18N::translate('Manager') ?>
92                    </label>
93                </div>
94                <div class="form-check form-check-inline">
95                    <label>
96                        <input type="radio" name="privatize_export" value="user">
97                        <?= I18N::translate('Member') ?>
98                    </label>
99                </div>
100                <div class="form-check form-check-inline">
101                    <label>
102                        <input type="radio" name="privatize_export" value="visitor">
103                        <?= I18N::translate('Visitor') ?>
104                    </label>
105                </div>
106            </div>
107        </div>
108    </fieldset>
109
110    <div class="row form-group">
111        <div class="col-sm-3 col-form-label">
112            <?= I18N::translate('A file on your computer') ?>
113        </div>
114        <div class="col-sm-9">
115            <button type="submit" class="btn btn-primary">
116                <?= /* I18N: A button label. */ I18N::translate('continue') ?>
117            </button>
118        </div>
119    </div>
120</form>
121