xref: /webtrees/resources/views/admin/trees-preferences.phtml (revision 824ca0731ffdf5f5126eaf16d9852649f81ae6fa)
1b6c326d8SGreg Roach<?php
2b6c326d8SGreg Roach
3b6c326d8SGreg Roachuse Fisharebest\Webtrees\Functions\FunctionsEdit;
40c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
5b6c326d8SGreg Roachuse Fisharebest\Webtrees\I18N;
6b6c326d8SGreg Roach
7b6c326d8SGreg Roach?>
8dd6b2bfcSGreg Roach
90c0910bfSGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route('manage-trees', ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?>
10dd6b2bfcSGreg Roach
11dd6b2bfcSGreg Roach<h1><?= $title ?></h1>
12dd6b2bfcSGreg Roach
13b1a54200SGreg Roach<form method="post" action="<?= e(route('admin-trees-preferences-update', ['tree' => $tree->name()])) ?>" class="form-horizontal">
14dd6b2bfcSGreg Roach    <?= csrf_field() ?>
15dd6b2bfcSGreg Roach
16dd6b2bfcSGreg Roach    <h3><?= I18N::translate('General') ?></h3>
17dd6b2bfcSGreg Roach
18dd6b2bfcSGreg Roach    <!-- TREE TITLE -->
19dd6b2bfcSGreg Roach    <div class="row form-group">
20dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="title">
21dd6b2bfcSGreg Roach            <?= I18N::translate('Family tree title') ?>
22dd6b2bfcSGreg Roach        </label>
23dd6b2bfcSGreg Roach        <div class="col-sm-9">
24dd6b2bfcSGreg Roach            <input
25dd6b2bfcSGreg Roach                class="form-control"
26dd6b2bfcSGreg Roach                dir="auto"
27dd6b2bfcSGreg Roach                id="title"
28dd6b2bfcSGreg Roach                maxlength="255"
29dd6b2bfcSGreg Roach                name="title"
30dd6b2bfcSGreg Roach                required
31dd6b2bfcSGreg Roach                type="text"
32dd6b2bfcSGreg Roach                value="<?= e($tree->getPreference('title')) ?>"
33dd6b2bfcSGreg Roach            >
34dd6b2bfcSGreg Roach        </div>
35dd6b2bfcSGreg Roach    </div>
36dd6b2bfcSGreg Roach
37dd6b2bfcSGreg Roach    <!-- TREE URL / FILENAME -->
38dd6b2bfcSGreg Roach    <div class="row form-group">
39dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="gedcom">
40dd6b2bfcSGreg Roach            <?= I18N::translate('URL') ?>
41dd6b2bfcSGreg Roach        </label>
42dd6b2bfcSGreg Roach        <div class="col-sm-9">
43dd6b2bfcSGreg Roach            <div class="input-group" dir="ltr">
44e252129fSGreg Roach                <div class="input-group-prepend">
45a3c95e78SGreg Roach                    <span class="input-group-text" dir="ltr">
46e252129fSGreg Roach                        <?= e(explode('{tree}', rawurldecode(route('example')))[0]) ?>
47dd6b2bfcSGreg Roach                    </span>
48dd6b2bfcSGreg Roach                </div>
49a3c95e78SGreg Roach                <input class="form-control" dir="ltr" id="gedcom" maxlength="255" name="gedcom" required type="text" value="<?= e($tree->name()) ?>">
50e252129fSGreg Roach                <div class="input-group-append">
51e252129fSGreg Roach                    <span class="input-group-text" dir="ltr">
52e252129fSGreg Roach                        <?= e(explode('{tree}', rawurldecode(route('example')))[1]) ?>
53e252129fSGreg Roach                    </span>
54e252129fSGreg Roach                </div>
55dd6b2bfcSGreg Roach            </div>
56dd6b2bfcSGreg Roach            <p class="small text-muted">
57dd6b2bfcSGreg Roach                <?= /* I18N: help text for family tree / GEDCOM file names */ I18N::translate('Avoid spaces and punctuation. A family name might be a good choice.') ?>
58dd6b2bfcSGreg Roach            </p>
59dd6b2bfcSGreg Roach        </div>
60dd6b2bfcSGreg Roach    </div>
61dd6b2bfcSGreg Roach
62dd6b2bfcSGreg Roach    <!-- PEDIGREE_ROOT_ID -->
63dd6b2bfcSGreg Roach    <div class="row form-group">
64dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="PEDIGREE_ROOT_ID">
65dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Default individual') ?>
66dd6b2bfcSGreg Roach        </label>
67dd6b2bfcSGreg Roach        <div class="col-sm-9">
68b6c326d8SGreg Roach            <?= view('components/select-individual', ['name' => 'PEDIGREE_ROOT_ID', 'individual' => $pedigree_individual, 'tree' => $tree]) ?>
69dd6b2bfcSGreg Roach            <p class="small text-muted">
70dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Default individual” configuration setting */ I18N::translate('This individual will be selected by default when viewing charts and reports.') ?>
71dd6b2bfcSGreg Roach            </p>
72dd6b2bfcSGreg Roach        </div>
73dd6b2bfcSGreg Roach    </div>
74dd6b2bfcSGreg Roach
75dd6b2bfcSGreg Roach    <!-- CALENDAR_FORMAT -->
76dd6b2bfcSGreg Roach    <fieldset class="form-group">
77dd6b2bfcSGreg Roach        <div class="row">
78dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
79dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?>
80dd6b2bfcSGreg Roach                <label class="sr-only" for="CALENDAR_FORMAT0">
81dd6b2bfcSGreg Roach                    <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 1
82dd6b2bfcSGreg Roach                </label>
83dd6b2bfcSGreg Roach                <label class="sr-only" for="CALENDAR_FORMAT1">
84dd6b2bfcSGreg Roach                    <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 2
85dd6b2bfcSGreg Roach                </label>
86dd6b2bfcSGreg Roach            </legend>
87dd6b2bfcSGreg Roach            <div class="col-sm-9">
88b6c326d8SGreg Roach                <div class="row">
89dd6b2bfcSGreg Roach                    <div class="col-sm-6" style="padding-left: 0;">
90c9e11c2aSGreg Roach                        <?= view('components/select', ['name' => 'CALENDAR_FORMAT0', 'selected' => $calendar_formats[0], 'options' => FunctionsEdit::optionsCalendarConversions()]) ?>
91dd6b2bfcSGreg Roach                    </div>
92dd6b2bfcSGreg Roach                    <div class="col-sm-6" style="padding-right: 0;">
93c9e11c2aSGreg Roach                        <?= view('components/select', ['name' => 'CALENDAR_FORMAT1', 'selected' => $calendar_formats[1], 'options' => FunctionsEdit::optionsCalendarConversions()]) ?>
94dd6b2bfcSGreg Roach                    </div>
95dd6b2bfcSGreg Roach                </div>
96dd6b2bfcSGreg Roach                <p class="small text-muted">
97dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Calendar conversion” configuration setting */ I18N::translate('Different calendar systems are used in different parts of the world, and many other calendar systems have been used in the past. Where possible, you should enter dates using the calendar in which the event was originally recorded. You can then specify a conversion, to show these dates in a more familiar calendar. If you regularly use two calendars, you can specify two conversions and dates will be converted to both the selected calendars.') ?>
98dd6b2bfcSGreg Roach                </p>
99dd6b2bfcSGreg Roach                <p class="small text-muted">
100dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Calendar conversion” configuration setting */ I18N::translate('Dates are only converted if they are valid for the calendar. For example, only dates between %1$s and %2$s will be converted to the French calendar and only dates after %3$s will be converted to the Gregorian calendar.', $french_calendar_start->display(false, null, false), $french_calendar_end->display(false, null, false), $gregorian_calendar_start->display(false, null, false)) ?>
101dd6b2bfcSGreg Roach                </p>
102dd6b2bfcSGreg Roach                <p class="small text-muted">
103dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Calendar conversion” configuration setting */ I18N::translate('In some calendars, days start at midnight. In other calendars, days start at sunset. The conversion process does not take account of the time, so for any event that occurs between sunset and midnight, the conversion between these types of calendar will be one day out.') ?>
104dd6b2bfcSGreg Roach                </p>
105dd6b2bfcSGreg Roach            </div>
106dd6b2bfcSGreg Roach        </div>
107dd6b2bfcSGreg Roach    </fieldset>
108dd6b2bfcSGreg Roach
109dd6b2bfcSGreg Roach    <!-- GENERATE_UIDS -->
110dd6b2bfcSGreg Roach    <fieldset class="form-group">
111dd6b2bfcSGreg Roach        <div class="row">
112dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
113dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Add unique identifiers') ?>
114dd6b2bfcSGreg Roach            </legend>
115dd6b2bfcSGreg Roach            <div class="col-sm-9">
116b6c326d8SGreg Roach                <?= view('components/radios-inline', ['name' => 'GENERATE_UIDS', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('GENERATE_UIDS')]) ?>
117dd6b2bfcSGreg Roach                <p class="small text-muted">
118dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Add unique identifiers” configuration setting */ I18N::translate('Unique identifiers allow the same record to be found in different family trees and in different systems. They will be added whenever records are created or updated. If you do not want unique identifiers to be displayed, you can hide them using the privacy rules.') ?>
119dd6b2bfcSGreg Roach                </p>
120dd6b2bfcSGreg Roach            </div>
121dd6b2bfcSGreg Roach        </div>
122dd6b2bfcSGreg Roach    </fieldset>
123dd6b2bfcSGreg Roach
124dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Contact information') ?></h3>
125dd6b2bfcSGreg Roach
126dd6b2bfcSGreg Roach    <!-- CONTACT_USER_ID -->
127dd6b2bfcSGreg Roach    <div class="row form-group">
128dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="CONTACT_USER_ID">
129dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Genealogy contact') ?>
130dd6b2bfcSGreg Roach        </label>
131dd6b2bfcSGreg Roach        <div class="col-sm-9">
132dd6b2bfcSGreg Roach            <select id="CONTACT_USER_ID" name="CONTACT_USER_ID" class="form-control">
133027478c2SGreg Roach                <option value="">&nbsp;</option>
134dd6b2bfcSGreg Roach                <?php foreach ($members as $member) : ?>
135895230eeSGreg Roach                    <option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('CONTACT_USER_ID') === $member->id() ? 'selected' : '' ?>>
136c65e00b4SGreg Roach                        <?= e($member->realName()) ?> - <?= e($member->userName()) ?>
137dd6b2bfcSGreg Roach                    </option>
138dd6b2bfcSGreg Roach                <?php endforeach ?>
139dd6b2bfcSGreg Roach            </select>
140dd6b2bfcSGreg Roach            <p class="small text-muted">
141dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Genealogy contact” configuration setting */ I18N::translate('The individual to contact about the genealogy data on this website.') ?>
142dd6b2bfcSGreg Roach            </p>
143dd6b2bfcSGreg Roach        </div>
144dd6b2bfcSGreg Roach    </div>
145dd6b2bfcSGreg Roach
146dd6b2bfcSGreg Roach    <!-- WEBMASTER_USER_ID -->
147dd6b2bfcSGreg Roach    <div class="row form-group">
148dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="WEBMASTER_USER_ID">
149dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Technical help contact') ?>
150dd6b2bfcSGreg Roach        </label>
151dd6b2bfcSGreg Roach        <div class="col-sm-9">
152dd6b2bfcSGreg Roach            <select id="WEBMASTER_USER_ID" name="WEBMASTER_USER_ID" class="form-control">
153027478c2SGreg Roach                <option value="">&nbsp;</option>
154dd6b2bfcSGreg Roach                <?php foreach ($members as $member) : ?>
155895230eeSGreg Roach                    <option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('WEBMASTER_USER_ID') === $member->id() ? 'selected' : '' ?>>
156c65e00b4SGreg Roach                        <?= e($member->realName()) ?> - <?= e($member->userName()) ?>
157dd6b2bfcSGreg Roach                    </option>
158dd6b2bfcSGreg Roach                <?php endforeach ?>
159dd6b2bfcSGreg Roach            </select>
160dd6b2bfcSGreg Roach            <p class="small text-muted">
161dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Technical help contact” configuration setting */ I18N::translate('The individual to be contacted about technical questions or errors encountered on your website.') ?>
162dd6b2bfcSGreg Roach            </p>
163dd6b2bfcSGreg Roach        </div>
164dd6b2bfcSGreg Roach    </div>
165dd6b2bfcSGreg Roach
166dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Website') ?></h3>
167dd6b2bfcSGreg Roach
168dd6b2bfcSGreg Roach    <!-- META_TITLE -->
169dd6b2bfcSGreg Roach    <div class="row form-group">
170dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="META_TITLE">
171dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Add to TITLE header tag') ?>
172dd6b2bfcSGreg Roach        </label>
173dd6b2bfcSGreg Roach        <div class="col-sm-9">
174dd6b2bfcSGreg Roach            <input
175dd6b2bfcSGreg Roach                class="form-control"
176dd6b2bfcSGreg Roach                id="META_TITLE"
177dd6b2bfcSGreg Roach                maxlength="255"
178dd6b2bfcSGreg Roach                name="META_TITLE"
179dd6b2bfcSGreg Roach                type="text"
180dd6b2bfcSGreg Roach                value="<?= e($tree->getPreference('META_TITLE')) ?>"
181dd6b2bfcSGreg Roach            >
182dd6b2bfcSGreg Roach            <p class="small text-muted">
183dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Add to TITLE header tag” configuration setting */ I18N::translate('This text will be appended to each page title. It will be shown in the browser’s title bar, bookmarks, etc.') ?>
184dd6b2bfcSGreg Roach            </p>
185dd6b2bfcSGreg Roach        </div>
186dd6b2bfcSGreg Roach    </div>
187dd6b2bfcSGreg Roach
188dd6b2bfcSGreg Roach    <!-- META_DESCRIPTION -->
189dd6b2bfcSGreg Roach    <div class="row form-group">
190dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="META_DESCRIPTION">
191dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Description META tag') ?>
192dd6b2bfcSGreg Roach        </label>
193dd6b2bfcSGreg Roach        <div class="col-sm-9">
194dd6b2bfcSGreg Roach            <input
195dd6b2bfcSGreg Roach                class="form-control"
196dd6b2bfcSGreg Roach                id="META_DESCRIPTION"
197dd6b2bfcSGreg Roach                maxlength="255"
198dd6b2bfcSGreg Roach                name="META_DESCRIPTION"
199dd6b2bfcSGreg Roach                type="text"
200dd6b2bfcSGreg Roach                value="<?= e($tree->getPreference('META_DESCRIPTION')) ?>"
201dd6b2bfcSGreg Roach            >
202dd6b2bfcSGreg Roach            <p class="small text-muted">
2032406e0e0SGreg Roach                <?= /* I18N: Help text for the “Description META tag” configuration setting */ I18N::translate('Search engines may use this description of your site in their search results.') ?>
204dd6b2bfcSGreg Roach            </p>
205dd6b2bfcSGreg Roach        </div>
206dd6b2bfcSGreg Roach    </div>
207dd6b2bfcSGreg Roach
208dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Media folders') ?></h3>
209dd6b2bfcSGreg Roach
210dd6b2bfcSGreg Roach    <!-- MEDIA_DIRECTORY -->
211dd6b2bfcSGreg Roach    <div class="row form-group">
212dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="MEDIA_DIRECTORY">
213dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Media folder') ?>
214dd6b2bfcSGreg Roach        </label>
215dd6b2bfcSGreg Roach        <div class="col-sm-9">
216dd6b2bfcSGreg Roach            <div class="input-group" dir="ltr">
217dd6b2bfcSGreg Roach                <div class="input-group-prepend">
218a3c95e78SGreg Roach                    <span class="input-group-text" dir="ltr">
21908af4a8cSGreg Roach                        <?= e($data_folder) ?>
220dd6b2bfcSGreg Roach                    </span>
221dd6b2bfcSGreg Roach                </div>
222a3c95e78SGreg Roach                <input class="form-control" dir="ltr" id="MEDIA_DIRECTORY" maxlength="255" name="MEDIA_DIRECTORY" type="text" value="<?= e($tree->getPreference('MEDIA_DIRECTORY')) ?>">
223dd6b2bfcSGreg Roach            </div>
224dd6b2bfcSGreg Roach            <p class="small text-muted">
225dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Media folder” configuration setting */ I18N::translate('This folder will be used to store the media files for this family tree.') ?>
226dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Media folder” configuration setting */ I18N::translate('If you select a different folder, you must also move any media files from the existing folder to the new one.') ?>
227dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Media folder” configuration setting */ I18N::translate('If two family trees use the same media folder, then they will be able to share media files. If they use different media folders, then their media files will be kept separate.') ?>
228dd6b2bfcSGreg Roach            </p>
229dd6b2bfcSGreg Roach        </div>
230dd6b2bfcSGreg Roach    </div>
231dd6b2bfcSGreg Roach
232dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Media files') ?></h3>
233dd6b2bfcSGreg Roach
234dd6b2bfcSGreg Roach    <!-- MEDIA_UPLOAD -->
235dd6b2bfcSGreg Roach    <div class="row form-group">
236dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="MEDIA_UPLOAD">
237dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Who can upload new media files') ?>
238dd6b2bfcSGreg Roach        </label>
239dd6b2bfcSGreg Roach        <div class="col-sm-9">
240c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'MEDIA_UPLOAD', 'selected' => $tree->getPreference('MEDIA_UPLOAD'), 'options' => $privacy_options]) ?>
241dd6b2bfcSGreg Roach            <p class="small text-muted">
242dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Who can upload new media files” configuration setting */ I18N::translate('If you are concerned that users might upload inappropriate images, you can restrict media uploads to managers only.') ?>
243dd6b2bfcSGreg Roach            </p>
244dd6b2bfcSGreg Roach        </div>
245dd6b2bfcSGreg Roach    </div>
246dd6b2bfcSGreg Roach
247dd6b2bfcSGreg Roach    <!-- SHOW_MEDIA_DOWNLOAD -->
248dd6b2bfcSGreg Roach    <fieldset class="form-group">
249dd6b2bfcSGreg Roach        <div class="row">
250dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
251dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Show a download link in the media viewer') ?>
252dd6b2bfcSGreg Roach            </legend>
253dd6b2bfcSGreg Roach            <div class="col-sm-9">
254c9e11c2aSGreg Roach                <?= view('components/select', ['name' => 'SHOW_MEDIA_DOWNLOAD', 'selected' => $tree->getPreference('SHOW_MEDIA_DOWNLOAD'), 'options' => FunctionsEdit::optionsAccessLevels()]) ?>
255dd6b2bfcSGreg Roach                <p class="small text-muted">
256dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Show a download link in the media viewer” configuration setting */ I18N::translate('This option will make it easier for users to download images.') ?>
257dd6b2bfcSGreg Roach                </p>
258dd6b2bfcSGreg Roach            </div>
259dd6b2bfcSGreg Roach        </div>
260dd6b2bfcSGreg Roach    </fieldset>
261dd6b2bfcSGreg Roach
262dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Thumbnail images') ?></h3>
263dd6b2bfcSGreg Roach
264dd6b2bfcSGreg Roach    <!-- SHOW_HIGHLIGHT_IMAGES -->
265dd6b2bfcSGreg Roach    <fieldset class="form-group">
266dd6b2bfcSGreg Roach        <div class="row">
267dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
268dd6b2bfcSGreg Roach                <?= I18N::translate('Thumbnail images') ?>
269dd6b2bfcSGreg Roach            </legend>
270dd6b2bfcSGreg Roach            <div class="col-sm-9">
271b6c326d8SGreg Roach                <?= view('components/radios-inline', ['name' => 'SHOW_HIGHLIGHT_IMAGES', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_HIGHLIGHT_IMAGES')]) ?>
272dd6b2bfcSGreg Roach                <p class="small text-muted">
273dd6b2bfcSGreg Roach                    <?= I18N::translate('Show thumbnail images in charts and family groups.') ?>
274dd6b2bfcSGreg Roach                </p>
275dd6b2bfcSGreg Roach            </div>
276dd6b2bfcSGreg Roach        </div>
277dd6b2bfcSGreg Roach    </fieldset>
278dd6b2bfcSGreg Roach
279dd6b2bfcSGreg Roach    <!-- USE_SILHOUETTE -->
280dd6b2bfcSGreg Roach    <fieldset class="form-group">
281dd6b2bfcSGreg Roach        <div class="row">
282dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
283dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Use silhouettes') ?>
284dd6b2bfcSGreg Roach            </legend>
285dd6b2bfcSGreg Roach            <div class="col-sm-9">
286b6c326d8SGreg Roach                <?= view('components/radios-inline', ['name' => 'USE_SILHOUETTE', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('USE_SILHOUETTE')]) ?>
287dd6b2bfcSGreg Roach                <p class="small text-muted">
288dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Use silhouettes” configuration setting */ I18N::translate('Use silhouette images when no highlighted image for that individual has been specified. The images used are specific to the gender of the individual in question.') ?>
289dd6b2bfcSGreg Roach                </p>
290dd6b2bfcSGreg Roach            </div>
291dd6b2bfcSGreg Roach        </div>
292dd6b2bfcSGreg Roach    </fieldset>
293dd6b2bfcSGreg Roach
294dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Watermarks') ?></h3>
295dd6b2bfcSGreg Roach
296dd6b2bfcSGreg Roach    <!-- SHOW_NO_WATERMARK -->
297dd6b2bfcSGreg Roach    <div class="row form-group">
298dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="SHOW_NO_WATERMARK">
299dd6b2bfcSGreg Roach            <?= I18N::translate('Images without watermarks') ?>
300dd6b2bfcSGreg Roach        </label>
301dd6b2bfcSGreg Roach        <div class="col-sm-9">
302c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'SHOW_NO_WATERMARK', 'selected' => $tree->getPreference('SHOW_NO_WATERMARK'), 'options' => FunctionsEdit::optionsAccessLevels()]) ?>
303dd6b2bfcSGreg Roach            <p class="small text-muted">
304dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Images without watermarks” configuration setting */ I18N::translate('Watermarks are optional and normally shown just to visitors.') ?>
305dd6b2bfcSGreg Roach            </p>
306dd6b2bfcSGreg Roach        </div>
307dd6b2bfcSGreg Roach    </div>
308dd6b2bfcSGreg Roach
309dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Lists') ?></h3>
310dd6b2bfcSGreg Roach
311dd6b2bfcSGreg Roach    <!-- SURNAME_LIST_STYLE -->
312dd6b2bfcSGreg Roach    <div class="row form-group">
313dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="SURNAME_LIST_STYLE">
314dd6b2bfcSGreg Roach            <?= I18N::translate('Surname list style') ?>
315dd6b2bfcSGreg Roach        </label>
316dd6b2bfcSGreg Roach        <div class="col-sm-9">
317c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'SURNAME_LIST_STYLE', 'selected' => $tree->getPreference('SURNAME_LIST_STYLE'), 'options' => $surname_list_styles]) ?>
318dd6b2bfcSGreg Roach            <p class="small text-muted">
319dd6b2bfcSGreg Roach            </p>
320dd6b2bfcSGreg Roach        </div>
321dd6b2bfcSGreg Roach    </div>
322dd6b2bfcSGreg Roach
323dd6b2bfcSGreg Roach    <!-- SUBLIST_TRIGGER_I -->
324dd6b2bfcSGreg Roach    <div class="row form-group">
325dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="SUBLIST_TRIGGER_I">
326dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Maximum number of surnames on individual list') ?>
327dd6b2bfcSGreg Roach        </label>
328dd6b2bfcSGreg Roach        <div class="col-sm-9">
329dd6b2bfcSGreg Roach            <input
330dd6b2bfcSGreg Roach                class="form-control"
331dd6b2bfcSGreg Roach                id="SUBLIST_TRIGGER_I"
332dd6b2bfcSGreg Roach                maxlength="5"
333dd6b2bfcSGreg Roach                name="SUBLIST_TRIGGER_I"
334dd6b2bfcSGreg Roach                required
335dd6b2bfcSGreg Roach                type="text"
336dd6b2bfcSGreg Roach                value="<?= e($tree->getPreference('SUBLIST_TRIGGER_I')) ?>"
337dd6b2bfcSGreg Roach            >
338dd6b2bfcSGreg Roach            <p class="small text-muted">
339dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Maximum number of surnames on individual list” configuration setting */ I18N::translate('Long lists of individuals with the same surname can be broken into smaller sub-lists according to the first letter of the individual’s given name.<br><br>This option determines when sub-listing of surnames will occur. To disable sub-listing completely, set this option to zero.') ?>
340dd6b2bfcSGreg Roach            </p>
341dd6b2bfcSGreg Roach        </div>
342dd6b2bfcSGreg Roach    </div>
343dd6b2bfcSGreg Roach
344dd6b2bfcSGreg Roach    <!-- SHOW_EST_LIST_DATES -->
345dd6b2bfcSGreg Roach    <fieldset class="form-group">
346dd6b2bfcSGreg Roach        <div class="row">
347dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
348dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Estimated dates for birth and death') ?>
349dd6b2bfcSGreg Roach            </legend>
350dd6b2bfcSGreg Roach            <div class="col-sm-9">
351b6c326d8SGreg Roach                <?= view('components/radios-inline', ['name' => 'SHOW_EST_LIST_DATES', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_EST_LIST_DATES')]) ?>
352dd6b2bfcSGreg Roach                <p class="small text-muted">
353dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Estimated dates for birth and death” configuration setting */ I18N::translate('This option controls whether or not to show estimated dates for birth and death instead of leaving blanks on individual lists and charts for individuals whose dates are not known.') ?>
354dd6b2bfcSGreg Roach                </p>
355dd6b2bfcSGreg Roach            </div>
356dd6b2bfcSGreg Roach        </div>
357dd6b2bfcSGreg Roach    </fieldset>
358dd6b2bfcSGreg Roach
359dd6b2bfcSGreg Roach    <!-- SHOW_LAST_CHANGE -->
360dd6b2bfcSGreg Roach    <fieldset class="form-group">
361dd6b2bfcSGreg Roach        <div class="row">
362dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
363dd6b2bfcSGreg Roach                <?= I18N::translate('The date and time of the last update') ?>
364dd6b2bfcSGreg Roach            </legend>
365dd6b2bfcSGreg Roach            <div class="col-sm-9">
366b6c326d8SGreg Roach                <?= view('components/radios-inline', ['name' => 'SHOW_LAST_CHANGE', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_LAST_CHANGE')]) ?>
367dd6b2bfcSGreg Roach                <p class="small text-muted">
368dd6b2bfcSGreg Roach                </p>
369dd6b2bfcSGreg Roach            </div>
370dd6b2bfcSGreg Roach        </div>
371dd6b2bfcSGreg Roach    </fieldset>
372dd6b2bfcSGreg Roach
373dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Charts') ?></h3>
374dd6b2bfcSGreg Roach
375dd6b2bfcSGreg Roach    <!-- SHOW_PARENTS_AGE -->
376dd6b2bfcSGreg Roach    <fieldset class="form-group">
377dd6b2bfcSGreg Roach        <div class="row">
378dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
379dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Age of parents next to child’s birthdate') ?>
380dd6b2bfcSGreg Roach            </legend>
381dd6b2bfcSGreg Roach            <div class="col-sm-9">
382b6c326d8SGreg Roach                <?= view('components/radios-inline', ['name' => 'SHOW_PARENTS_AGE', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_PARENTS_AGE')]) ?>
383dd6b2bfcSGreg Roach                <p class="small text-muted">
384dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Age of parents next to child’s birthdate” configuration setting */ I18N::translate('This option controls whether or not to show age of father and mother next to child’s birthdate on charts.') ?>
385dd6b2bfcSGreg Roach                </p>
386dd6b2bfcSGreg Roach            </div>
387dd6b2bfcSGreg Roach        </div>
388dd6b2bfcSGreg Roach    </fieldset>
389dd6b2bfcSGreg Roach
390dd6b2bfcSGreg Roach    <!-- CHART_BOX_TAGS -->
391dd6b2bfcSGreg Roach    <div class="row form-group">
392dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="CHART_BOX_TAGS">
393dd6b2bfcSGreg Roach            <?= I18N::translate('Other facts to show in charts') ?>
394dd6b2bfcSGreg Roach        </label>
395dd6b2bfcSGreg Roach        <div class="col-sm-9">
396dd6b2bfcSGreg Roach            <div class="input-group">
397c9e11c2aSGreg Roach                <?= view('components/select', ['name' => 'CHART_BOX_TAGS[]', 'id' => 'CHART_BOX_TAGS', 'selected' => explode(',', $tree->getPreference('CHART_BOX_TAGS')), 'options' => $all_indi_facts, 'class' => 'select2']) ?>
398dd6b2bfcSGreg Roach            </div>
399dd6b2bfcSGreg Roach            <p class="small text-muted">
400dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Other facts to show in charts” configuration setting */ I18N::translate('This should be a comma or space separated list of facts, in addition to birth and death, that you want to appear in chart boxes such as the pedigree chart. This list requires you to use fact tags as defined in the GEDCOM 5.5.1 standard. For example, if you wanted the occupation to show up in the box, you would add “OCCU” to this field.') ?>
401dd6b2bfcSGreg Roach            </p>
402dd6b2bfcSGreg Roach        </div>
403dd6b2bfcSGreg Roach    </div>
404dd6b2bfcSGreg Roach
405dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Individual pages') ?></h3>
406dd6b2bfcSGreg Roach
407dd6b2bfcSGreg Roach    <!-- SHOW_RELATIVES_EVENTS -->
408dd6b2bfcSGreg Roach    <fieldset class="form-group">
409dd6b2bfcSGreg Roach        <div class="row">
410dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
411dd6b2bfcSGreg Roach                <?= I18N::translate('Show the events of close relatives on the individual page') ?>
412dd6b2bfcSGreg Roach            </legend>
413dd6b2bfcSGreg Roach            <div class="col-sm-3">
414dd6b2bfcSGreg Roach                <div class="form-check">
415dd6b2bfcSGreg Roach                    <label for="_BIRT_GCHI">
41622d65e5aSGreg Roach                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_GCHI" value="_BIRT_GCHI" <?= in_array('_BIRT_GCHI', $relatives_events, true) ? 'checked' : '' ?>>
417dd6b2bfcSGreg Roach                        <?= I18N::translate('Birth of a grandchild') ?>
418dd6b2bfcSGreg Roach                    </label>
419dd6b2bfcSGreg Roach                </div>
420dd6b2bfcSGreg Roach                <div class="form-check">
421dd6b2bfcSGreg Roach                    <label for="_BIRT_CHIL">
42222d65e5aSGreg Roach                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_CHIL" value="_BIRT_CHIL" <?= in_array('_BIRT_CHIL', $relatives_events, true) ? 'checked' : '' ?>>
423dd6b2bfcSGreg Roach                        <?= I18N::translate('Birth of a child') ?>
424dd6b2bfcSGreg Roach                    </label>
425dd6b2bfcSGreg Roach                </div>
426dd6b2bfcSGreg Roach                <div class="form-check">
427dd6b2bfcSGreg Roach                    <label for="_BIRT_SIBL">
42822d65e5aSGreg Roach                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_SIBL" value="_BIRT_SIBL" <?= in_array('_BIRT_SIBL', $relatives_events, true) ? 'checked' : '' ?>>
429dd6b2bfcSGreg Roach                        <?= I18N::translate('Birth of a sibling') ?>
430dd6b2bfcSGreg Roach                    </label>
431dd6b2bfcSGreg Roach                </div>
432dd6b2bfcSGreg Roach            </div>
433dd6b2bfcSGreg Roach            <div class="col-sm-3">
434dd6b2bfcSGreg Roach                <div class="form-check">
435dd6b2bfcSGreg Roach                    <label for="_MARR_GCHI">
43622d65e5aSGreg Roach                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_GCHI" value="_MARR_GCHI" <?= in_array('_MARR_GCHI', $relatives_events, true) ? 'checked' : '' ?>>
437dd6b2bfcSGreg Roach                        <?= I18N::translate('Marriage of a grandchild') ?>
438dd6b2bfcSGreg Roach                    </label>
439dd6b2bfcSGreg Roach                </div>
440dd6b2bfcSGreg Roach                <div class="form-check">
441dd6b2bfcSGreg Roach                    <label for="_MARR_CHIL">
44222d65e5aSGreg Roach                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_CHIL" value="_MARR_CHIL" <?= in_array('_MARR_CHIL', $relatives_events, true) ? 'checked' : '' ?>>
443dd6b2bfcSGreg Roach                        <?= I18N::translate('Marriage of a child') ?>
444dd6b2bfcSGreg Roach                    </label>
445dd6b2bfcSGreg Roach                </div>
446dd6b2bfcSGreg Roach                <div class="form-check">
447dd6b2bfcSGreg Roach                    <label for="_MARR_SIBL">
44822d65e5aSGreg Roach                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_SIBL" value="_MARR_SIBL" <?= in_array('_MARR_SIBL', $relatives_events, true) ? 'checked' : '' ?>>
449dd6b2bfcSGreg Roach                        <?= I18N::translate('Marriage of a sibling') ?>
450dd6b2bfcSGreg Roach                    </label>
451dd6b2bfcSGreg Roach                </div>
452dd6b2bfcSGreg Roach                <div class="form-check">
453dd6b2bfcSGreg Roach                    <label for="_MARR_PARE">
45422d65e5aSGreg Roach                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_PARE" value="_MARR_PARE" <?= in_array('_MARR_PARE', $relatives_events, true) ? 'checked' : '' ?>>
455dd6b2bfcSGreg Roach                        <?= I18N::translate('Marriage of a parent') ?>
456dd6b2bfcSGreg Roach                    </label>
457dd6b2bfcSGreg Roach                </div>
458dd6b2bfcSGreg Roach            </div>
459dd6b2bfcSGreg Roach            <div class="col-sm-3">
460dd6b2bfcSGreg Roach                <div class="form-check">
461dd6b2bfcSGreg Roach                    <label for="_DEAT_GCHI">
46222d65e5aSGreg Roach                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_GCHI" value="_DEAT_GCHI" <?= in_array('_DEAT_GCHI', $relatives_events, true) ? 'checked' : '' ?>>
463dd6b2bfcSGreg Roach                        <?= I18N::translate('Death of a grandchild') ?>
464dd6b2bfcSGreg Roach                    </label>
465dd6b2bfcSGreg Roach                </div>
466dd6b2bfcSGreg Roach                <div class="form-check">
467dd6b2bfcSGreg Roach                    <label for="_DEAT_CHIL">
46822d65e5aSGreg Roach                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_CHIL" value="_DEAT_CHIL" <?= in_array('_DEAT_CHIL', $relatives_events, true) ? 'checked' : '' ?>>
469dd6b2bfcSGreg Roach                        <?= I18N::translate('Death of a child') ?>
470dd6b2bfcSGreg Roach                    </label>
471dd6b2bfcSGreg Roach                </div>
472dd6b2bfcSGreg Roach                <div class="form-check">
473dd6b2bfcSGreg Roach                    <label for="_DEAT_SIBL">
47422d65e5aSGreg Roach                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_SIBL" value="_DEAT_SIBL" <?= in_array('_DEAT_SIBL', $relatives_events, true) ? 'checked' : '' ?>>
475dd6b2bfcSGreg Roach                        <?= I18N::translate('Death of a sibling') ?>
476dd6b2bfcSGreg Roach                    </label>
477dd6b2bfcSGreg Roach                </div>
478dd6b2bfcSGreg Roach                <div class="form-check">
479dd6b2bfcSGreg Roach                    <label for="_DEAT_PARE">
48022d65e5aSGreg Roach                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_PARE" value="_DEAT_PARE" <?= in_array('_DEAT_PARE', $relatives_events, true) ? 'checked' : '' ?>>
481dd6b2bfcSGreg Roach                        <?= I18N::translate('Death of a parent') ?>
482dd6b2bfcSGreg Roach                    </label>
483dd6b2bfcSGreg Roach                </div>
484dd6b2bfcSGreg Roach                <div class="form-check">
485dd6b2bfcSGreg Roach                    <label for="_DEAT_SPOU">
48622d65e5aSGreg Roach                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_SPOU" value="_DEAT_SPOU" <?= in_array('_DEAT_SPOU', $relatives_events, true) ? 'checked' : '' ?>>
487dd6b2bfcSGreg Roach                        <?= I18N::translate('Death of a spouse') ?>
488dd6b2bfcSGreg Roach                    </label>
489dd6b2bfcSGreg Roach                </div>
490dd6b2bfcSGreg Roach                <div class="form-check">
491dd6b2bfcSGreg Roach                    <label for="_DEAT_GPAR">
49222d65e5aSGreg Roach                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_GPAR" value="_DEAT_GPAR" <?= in_array('_DEAT_GPAR', $relatives_events, true) ? 'checked' : '' ?>>
493dd6b2bfcSGreg Roach                        <?= I18N::translate('Death of a grand-parent') ?>
494dd6b2bfcSGreg Roach                    </label>
495dd6b2bfcSGreg Roach                </div>
496dd6b2bfcSGreg Roach            </div>
497dd6b2bfcSGreg Roach        </div>
498dd6b2bfcSGreg Roach    </fieldset>
499dd6b2bfcSGreg Roach
500dd6b2bfcSGreg Roach    <!-- SHOW_FACT_ICONS -->
501dd6b2bfcSGreg Roach    <fieldset class="form-group">
502dd6b2bfcSGreg Roach        <div class="row">
503dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
504dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Fact icons') ?>
505dd6b2bfcSGreg Roach            </legend>
506dd6b2bfcSGreg Roach            <div class="col-sm-9">
507b6c326d8SGreg Roach                <?= view('components/radios-inline', ['name' => 'SHOW_FACT_ICONS', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_FACT_ICONS')]) ?>
508dd6b2bfcSGreg Roach                <p class="small text-muted">
509dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Fact icons” configuration setting */ I18N::translate('Some themes can display icons on the “Facts and events” tab.') ?>
510dd6b2bfcSGreg Roach                </p>
511dd6b2bfcSGreg Roach            </div>
512dd6b2bfcSGreg Roach        </div>
513dd6b2bfcSGreg Roach    </fieldset>
514dd6b2bfcSGreg Roach
515dd6b2bfcSGreg Roach    <!-- EXPAND_NOTES -->
516dd6b2bfcSGreg Roach    <fieldset class="form-group">
517dd6b2bfcSGreg Roach        <div class="row">
518dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
519dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Automatically expand notes') ?>
520dd6b2bfcSGreg Roach            </legend>
521dd6b2bfcSGreg Roach            <div class="col-sm-9">
522b6c326d8SGreg Roach                <?= view('components/radios-inline', ['name' => 'EXPAND_NOTES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('EXPAND_NOTES')]) ?>
523dd6b2bfcSGreg Roach                <p class="small text-muted">
524dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Automatically expand notes” configuration setting */
525dd6b2bfcSGreg Roach                    I18N::translate('This option controls whether or not to automatically display content of a <i>Note</i> record on the Individual page.') ?>
526dd6b2bfcSGreg Roach                </p>
527dd6b2bfcSGreg Roach            </div>
528dd6b2bfcSGreg Roach        </div>
529dd6b2bfcSGreg Roach    </fieldset>
530dd6b2bfcSGreg Roach
531dd6b2bfcSGreg Roach    <!-- EXPAND_SOURCES -->
532dd6b2bfcSGreg Roach    <fieldset class="form-group">
533dd6b2bfcSGreg Roach        <div class="row">
534dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
535dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Automatically expand sources') ?>
536dd6b2bfcSGreg Roach            </legend>
537dd6b2bfcSGreg Roach            <div class="col-sm-9">
538b6c326d8SGreg Roach                <?= view('components/radios-inline', ['name' => 'EXPAND_SOURCES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('EXPAND_SOURCES')]) ?>
539dd6b2bfcSGreg Roach                <p class="small text-muted">
540dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Automatically expand sources” configuration setting */
541dd6b2bfcSGreg Roach                    I18N::translate('This option controls whether or not to automatically display content of a <i>Source</i> record on the Individual page.') ?>
542dd6b2bfcSGreg Roach                </p>
543dd6b2bfcSGreg Roach            </div>
544dd6b2bfcSGreg Roach        </div>
545dd6b2bfcSGreg Roach    </fieldset>
546dd6b2bfcSGreg Roach
547dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Places') ?></h3>
548dd6b2bfcSGreg Roach
549dd6b2bfcSGreg Roach    <!-- SHOW_PEDIGREE_PLACES -->
550dd6b2bfcSGreg Roach    <fieldset class="form-group">
551dd6b2bfcSGreg Roach        <div class="row">
552dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
553dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
554dd6b2bfcSGreg Roach                <label class="sr-only" for="SHOW_PEDIGREE_PLACES_SUFFIX">
555dd6b2bfcSGreg Roach                    <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
556dd6b2bfcSGreg Roach                    <?= I18N::translate('first') ?> / <?= I18N::translate('last') ?>
557dd6b2bfcSGreg Roach                </label>
558dd6b2bfcSGreg Roach                <label class="sr-only" for="SHOW_PEDIGREE_PLACES">
559dd6b2bfcSGreg Roach                    <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
560dd6b2bfcSGreg Roach                </label>
561dd6b2bfcSGreg Roach            </legend>
562dd6b2bfcSGreg Roach            <div class="col-sm-9">
563d70512abSGreg Roach                <?= /* I18N: The placeholders are edit controls. Show the [first/last] [1/2/3/4/5] parts of a place name */ I18N::translate(
564d70512abSGreg Roach                    'Show the %1$s %2$s parts of a place name.',
565*824ca073SGreg Roach                    view('components/select', ['name' => 'SHOW_PEDIGREE_PLACES_SUFFIX', 'selected' => $tree->getPreference('SHOW_PEDIGREE_PLACES_SUFFIX'), 'options' => ['0' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'first'), '1' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'last')]]),
566c9e11c2aSGreg Roach                    view('components/select', ['name' => 'SHOW_PEDIGREE_PLACES', 'selected' => $tree->getPreference('SHOW_PEDIGREE_PLACES'), 'options' => FunctionsEdit::numericOptions(range(1, 9))])
567dd6b2bfcSGreg Roach                ) ?>
568dd6b2bfcSGreg Roach                <p class="small text-muted">
569dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Abbreviate place names” configuration setting */ I18N::translate('Place names are frequently too long to fit on charts, lists, etc. They can be abbreviated by showing just the first few parts of the name, such as <i>village, county</i>, or the last few part of it, such as <i>region, country</i>.') ?>
570dd6b2bfcSGreg Roach                </p>
571dd6b2bfcSGreg Roach            </div>
572dd6b2bfcSGreg Roach        </div>
573dd6b2bfcSGreg Roach    </fieldset>
574dd6b2bfcSGreg Roach
575dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Text') ?></h3>
576dd6b2bfcSGreg Roach
577dd6b2bfcSGreg Roach    <!-- FORMAT_TEXT -->
578dd6b2bfcSGreg Roach    <fieldset class="form-group">
579dd6b2bfcSGreg Roach        <div class="row">
580dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
581dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Format text and notes') ?>
582dd6b2bfcSGreg Roach            </legend>
583dd6b2bfcSGreg Roach            <div class="col-sm-9">
5845d9fc484SGreg Roach                <?= view('components/radios-inline', ['name' => 'FORMAT_TEXT', 'options' => $formats, 'selected' =>  $tree->getPreference('FORMAT_TEXT')]) ?>
585dd6b2bfcSGreg Roach                <p class="small text-muted">
586dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Format text and notes” configuration setting */ I18N::translate('To ensure compatibility with other genealogy applications, notes, text, and transcripts should be recorded in simple, unformatted text. However, formatting is often desirable to aid presentation, comprehension, etc.') ?>
587dd6b2bfcSGreg Roach                </p>
588dd6b2bfcSGreg Roach                <p class="small text-muted">
589dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Format text and notes” configuration setting */ I18N::translate('Markdown is a simple system of formatting, used on websites such as Wikipedia. It uses unobtrusive punctuation characters to create headings and sub-headings, bold and italic text, lists, tables, etc.') ?>
590dd6b2bfcSGreg Roach                </p>
591dd6b2bfcSGreg Roach            </div>
592dd6b2bfcSGreg Roach        </div>
593dd6b2bfcSGreg Roach    </fieldset>
594dd6b2bfcSGreg Roach
595dd6b2bfcSGreg Roach    <h3><?= I18N::translate('General') ?></h3>
596dd6b2bfcSGreg Roach
597dd6b2bfcSGreg Roach    <!-- SHOW_GEDCOM_RECORD -->
598dd6b2bfcSGreg Roach    <fieldset class="form-group">
599dd6b2bfcSGreg Roach        <div class="row">
600dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
601dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Allow users to see raw GEDCOM records') ?>
602dd6b2bfcSGreg Roach            </legend>
603dd6b2bfcSGreg Roach            <div class="col-sm-9">
604b6c326d8SGreg Roach                <?= view('components/radios-inline', ['name' => 'SHOW_GEDCOM_RECORD', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('SHOW_GEDCOM_RECORD')]) ?>
605dd6b2bfcSGreg Roach                <p class="small text-muted">
606dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Allow users to see raw GEDCOM records” configuration setting */ I18N::translate('Setting this to <b>Yes</b> will place links on individuals, sources, and families to let users bring up another window containing the raw data taken right out of the GEDCOM file.') ?>
607dd6b2bfcSGreg Roach                </p>
608dd6b2bfcSGreg Roach            </div>
609dd6b2bfcSGreg Roach        </div>
610dd6b2bfcSGreg Roach    </fieldset>
611dd6b2bfcSGreg Roach
612dd6b2bfcSGreg Roach    <!-- HIDE_GEDCOM_ERRORS -->
613dd6b2bfcSGreg Roach    <fieldset class="form-group">
614dd6b2bfcSGreg Roach        <div class="row">
615dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
616dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('GEDCOM errors') ?>
617dd6b2bfcSGreg Roach            </legend>
618dd6b2bfcSGreg Roach            <div class="col-sm-9">
619b6c326d8SGreg Roach                <?= view('components/radios-inline', ['name' => 'HIDE_GEDCOM_ERRORS', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('HIDE_GEDCOM_ERRORS')]) ?>
620dd6b2bfcSGreg Roach                <p class="small text-muted">
621dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “GEDCOM errors” configuration setting */ I18N::translate('Many genealogy programs create GEDCOM files with custom tags, and webtrees understands most of them. When unrecognized tags are found, this option lets you choose whether to ignore them or display a warning message.') ?>
622dd6b2bfcSGreg Roach                </p>
623dd6b2bfcSGreg Roach            </div>
624dd6b2bfcSGreg Roach        </div>
625dd6b2bfcSGreg Roach    </fieldset>
626dd6b2bfcSGreg Roach
627dd6b2bfcSGreg Roach    <!-- SHOW_COUNTER -->
628dd6b2bfcSGreg Roach    <fieldset class="form-group">
629dd6b2bfcSGreg Roach        <div class="row">
630dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
631dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Hit counters') ?>
632dd6b2bfcSGreg Roach            </legend>
633dd6b2bfcSGreg Roach            <div class="col-sm-9">
634b6c326d8SGreg Roach                <?= view('components/radios-inline', ['name' => 'SHOW_COUNTER', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_COUNTER')]) ?>
635dd6b2bfcSGreg Roach                <p class="small text-muted">
636dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Hit counters” configuration setting */ I18N::translate('Some pages can display the number of times that they have been visited.') ?>
637dd6b2bfcSGreg Roach                </p>
638dd6b2bfcSGreg Roach            </div>
639dd6b2bfcSGreg Roach        </div>
640dd6b2bfcSGreg Roach    </fieldset>
641dd6b2bfcSGreg Roach
642dd6b2bfcSGreg Roach    <h3><?= /* I18N: Options for editing */ I18N::translate('Edit preferences') ?></h3>
643dd6b2bfcSGreg Roach
644dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Facts for individual records') ?></h3>
645dd6b2bfcSGreg Roach
646dd6b2bfcSGreg Roach    <!-- INDI_FACTS_ADD -->
647dd6b2bfcSGreg Roach    <div class="row form-group">
648dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="INDI_FACTS_ADD">
649dd6b2bfcSGreg Roach            <?= I18N::translate('All individual facts') ?>
650dd6b2bfcSGreg Roach        </label>
651dd6b2bfcSGreg Roach        <div class="col-sm-9">
652c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'INDI_FACTS_ADD[]', 'id' => 'INDI_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_ADD')), 'options' => $all_indi_facts, 'class' => 'select2']) ?>
653dd6b2bfcSGreg Roach            <p class="small text-muted">
654dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “All individual facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can add to individuals. You can modify this list by removing or adding fact names, even custom ones, as necessary. Fact names that appear in this list must not also appear in the “Unique individual facts” list.') ?>
655dd6b2bfcSGreg Roach            </p>
656dd6b2bfcSGreg Roach        </div>
657dd6b2bfcSGreg Roach    </div>
658dd6b2bfcSGreg Roach
659dd6b2bfcSGreg Roach    <!-- INDI_FACTS_UNIQUE -->
660dd6b2bfcSGreg Roach    <div class="row form-group">
661dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="INDI_FACTS_UNIQUE">
662dd6b2bfcSGreg Roach            <?= I18N::translate('Unique individual facts') ?>
663dd6b2bfcSGreg Roach        </label>
664dd6b2bfcSGreg Roach        <div class="col-sm-9">
665c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'INDI_FACTS_UNIQUE[]', 'id' => 'INDI_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_UNIQUE')), 'options' => $all_indi_facts, 'class' => 'select2']) ?>
666dd6b2bfcSGreg Roach            <p class="small text-muted">
667dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Unique individual facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can only add once to individuals. For example, if BIRT is in this list, users will not be able to add more than one BIRT record to an individual. Fact names that appear in this list must not also appear in the “All individual facts” list.') ?>
668dd6b2bfcSGreg Roach            </p>
669dd6b2bfcSGreg Roach        </div>
670dd6b2bfcSGreg Roach    </div>
671dd6b2bfcSGreg Roach
672dd6b2bfcSGreg Roach    <!-- QUICK_REQUIRED_FACTS -->
673dd6b2bfcSGreg Roach    <div class="row form-group">
674dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FACTS">
675dd6b2bfcSGreg Roach            <?= I18N::translate('Facts for new individuals') ?>
676dd6b2bfcSGreg Roach        </label>
677dd6b2bfcSGreg Roach        <div class="col-sm-9">
678c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'QUICK_REQUIRED_FACTS[]', 'id' => 'QUICK_REQUIRED_FACTS', 'selected' => explode(',', $tree->getPreference('QUICK_REQUIRED_FACTS')), 'options' => $all_indi_facts, 'class' => 'select2']) ?>
679dd6b2bfcSGreg Roach            <p class="small text-muted">
680dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Facts for new individuals” configuration setting */ I18N::translate('This is a comma separated list of GEDCOM fact tags that will be shown when adding a new individual. For example, if BIRT is in the list, fields for birth date and birth place will be shown on the form.') ?>
681dd6b2bfcSGreg Roach            </p>
682dd6b2bfcSGreg Roach        </div>
683dd6b2bfcSGreg Roach    </div>
684dd6b2bfcSGreg Roach
685dd6b2bfcSGreg Roach    <!-- INDI_FACTS_QUICK -->
686dd6b2bfcSGreg Roach    <div class="row form-group">
687dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="INDI_FACTS_QUICK">
688dd6b2bfcSGreg Roach            <?= I18N::translate('Quick individual facts') ?>
689dd6b2bfcSGreg Roach        </label>
690dd6b2bfcSGreg Roach        <div class="col-sm-9">
691c4d4515fSGreg Roach            <?= view('components/select', ['name' => 'INDI_FACTS_QUICK[]', 'id' => 'INDI_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_QUICK')), 'options' => $all_indi_facts, 'class' => 'select2']) ?>
692dd6b2bfcSGreg Roach            <p class="small text-muted">
693dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Quick individual facts” configuration setting */ I18N::translate('The most common individual facts and events are listed separately, so that they can be added more easily.') ?>
694dd6b2bfcSGreg Roach            </p>
695dd6b2bfcSGreg Roach        </div>
696dd6b2bfcSGreg Roach    </div>
697dd6b2bfcSGreg Roach
698dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Facts for family records') ?></h3>
699dd6b2bfcSGreg Roach
700dd6b2bfcSGreg Roach    <!-- FAM_FACTS_ADD -->
701dd6b2bfcSGreg Roach    <div class="row form-group">
702dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="FAM_FACTS_ADD">
703dd6b2bfcSGreg Roach            <?= I18N::translate('All family facts') ?>
704dd6b2bfcSGreg Roach        </label>
705dd6b2bfcSGreg Roach        <div class="col-sm-9">
706c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'FAM_FACTS_ADD[]', 'id' => 'FAM_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_ADD')), 'options' => $all_fam_facts, 'class' => 'select2']) ?>
707dd6b2bfcSGreg Roach            <p class="small text-muted">
708dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “All family facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can add to families. You can modify this list by removing or adding fact names, even custom ones, as necessary. Fact names that appear in this list must not also appear in the “Unique family facts” list.') ?>
709dd6b2bfcSGreg Roach            </p>
710dd6b2bfcSGreg Roach        </div>
711dd6b2bfcSGreg Roach    </div>
712dd6b2bfcSGreg Roach
713dd6b2bfcSGreg Roach    <!-- FAM_FACTS_UNIQUE -->
714dd6b2bfcSGreg Roach    <div class="row form-group">
715dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="FAM_FACTS_UNIQUE">
716dd6b2bfcSGreg Roach            <?= I18N::translate('Unique family facts') ?>
717dd6b2bfcSGreg Roach        </label>
718dd6b2bfcSGreg Roach        <div class="col-sm-9">
719c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'FAM_FACTS_UNIQUE[]', 'id' => 'FAM_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_UNIQUE')), 'options' => $all_fam_facts, 'class' => 'select2']) ?>
720dd6b2bfcSGreg Roach            <p class="small text-muted">
721dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Unique family facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can only add once to families. For example, if MARR is in this list, users will not be able to add more than one MARR record to a family. Fact names that appear in this list must not also appear in the “All family facts” list.') ?>
722dd6b2bfcSGreg Roach            </p>
723dd6b2bfcSGreg Roach        </div>
724dd6b2bfcSGreg Roach    </div>
725dd6b2bfcSGreg Roach
726dd6b2bfcSGreg Roach    <!-- QUICK_REQUIRED_FAMFACTS -->
727dd6b2bfcSGreg Roach    <div class="row form-group">
728dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FAMFACTS">
729dd6b2bfcSGreg Roach            <?= I18N::translate('Facts for new families') ?>
730dd6b2bfcSGreg Roach        </label>
731dd6b2bfcSGreg Roach        <div class="col-sm-9">
732c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'QUICK_REQUIRED_FAMFACTS[]', 'id' => 'QUICK_REQUIRED_FAMFACTS', 'selected' => explode(',', $tree->getPreference('QUICK_REQUIRED_FAMFACTS')), 'options' => $all_fam_facts, 'class' => 'select2']) ?>
733dd6b2bfcSGreg Roach            <p class="small text-muted">
734dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Facts for new families” configuration setting */ I18N::translate('This is a comma separated list of GEDCOM fact tags that will be shown when adding a new family. For example, if MARR is in the list, then fields for marriage date and marriage place will be shown on the form.') ?>
735dd6b2bfcSGreg Roach            </p>
736dd6b2bfcSGreg Roach        </div>
737dd6b2bfcSGreg Roach    </div>
738dd6b2bfcSGreg Roach
739dd6b2bfcSGreg Roach    <!-- FAM_FACTS_QUICK -->
740dd6b2bfcSGreg Roach    <div class="row form-group">
741dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="FAM_FACTS_QUICK">
742dd6b2bfcSGreg Roach            <?= I18N::translate('Quick family facts') ?>
743dd6b2bfcSGreg Roach        </label>
744dd6b2bfcSGreg Roach        <div class="col-sm-9">
745c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'FAM_FACTS_QUICK[]', 'id' => 'FAM_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_QUICK')), 'options' => $all_fam_facts, 'class' => 'select2']) ?>
746dd6b2bfcSGreg Roach            <p class="small text-muted">
747dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Quick family facts” configuration setting */ I18N::translate('The most common family facts and events are listed separately, so that they can be added more easily.') ?>
748dd6b2bfcSGreg Roach            </p>
749dd6b2bfcSGreg Roach        </div>
750dd6b2bfcSGreg Roach    </div>
751dd6b2bfcSGreg Roach
752dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Facts for source records') ?></h3>
753dd6b2bfcSGreg Roach
754dd6b2bfcSGreg Roach    <!-- SOUR_FACTS_ADD -->
755dd6b2bfcSGreg Roach    <div class="row form-group">
756dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="SOUR_FACTS_ADD">
757dd6b2bfcSGreg Roach            <?= I18N::translate('All source facts') ?>
758dd6b2bfcSGreg Roach        </label>
759dd6b2bfcSGreg Roach        <div class="col-sm-9">
760c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'SOUR_FACTS_ADD[]', 'id' => 'SOUR_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('SOUR_FACTS_ADD')), 'options' => $all_sour_facts, 'class' => 'select2']) ?>
761dd6b2bfcSGreg Roach            <p class="small text-muted">
762dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “All source facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can add to sources. You can modify this list by removing or adding fact names, even custom ones, as necessary. Fact names that appear in this list must not also appear in the “Unique source facts” list.') ?>
763dd6b2bfcSGreg Roach            </p>
764dd6b2bfcSGreg Roach        </div>
765dd6b2bfcSGreg Roach    </div>
766dd6b2bfcSGreg Roach
767dd6b2bfcSGreg Roach    <!-- SOUR_FACTS_UNIQUE -->
768dd6b2bfcSGreg Roach    <div class="row form-group">
769dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="SOUR_FACTS_UNIQUE">
770dd6b2bfcSGreg Roach            <?= I18N::translate('Unique source facts') ?>
771dd6b2bfcSGreg Roach        </label>
772dd6b2bfcSGreg Roach        <div class="col-sm-9">
773c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'SOUR_FACTS_UNIQUE[]', 'id' => 'SOUR_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('SOUR_FACTS_UNIQUE')), 'options' => $all_sour_facts, 'class' => 'select2']) ?>
774dd6b2bfcSGreg Roach            <p class="small text-muted">
775dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Unique source facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can only add once to sources. For example, if TITL is in this list, users will not be able to add more than one TITL record to a source. Fact names that appear in this list must not also appear in the “All source facts” list.') ?>
776dd6b2bfcSGreg Roach            </p>
777dd6b2bfcSGreg Roach        </div>
778dd6b2bfcSGreg Roach    </div>
779dd6b2bfcSGreg Roach
780dd6b2bfcSGreg Roach    <!-- SOUR_FACTS_QUICK -->
781dd6b2bfcSGreg Roach    <div class="row form-group">
782dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="SOUR_FACTS_QUICK">
783dd6b2bfcSGreg Roach            <?= I18N::translate('Quick source facts') ?>
784dd6b2bfcSGreg Roach        </label>
785dd6b2bfcSGreg Roach        <div class="col-sm-9">
786c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'SOUR_FACTS_QUICK[]', 'id' => 'SOUR_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('SOUR_FACTS_QUICK')), 'options' => $all_sour_facts, 'class' => 'select2']) ?>
787dd6b2bfcSGreg Roach            <p class="small text-muted">
788dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Quick source facts” configuration setting */ I18N::translate('The most common source facts are listed separately, so that they can be added more easily.') ?>
789dd6b2bfcSGreg Roach            </p>
790dd6b2bfcSGreg Roach        </div>
791dd6b2bfcSGreg Roach    </div>
792dd6b2bfcSGreg Roach
793dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Facts for repository records') ?></h3>
794dd6b2bfcSGreg Roach
795dd6b2bfcSGreg Roach    <!-- REPO_FACTS_ADD -->
796dd6b2bfcSGreg Roach    <div class="row form-group">
797dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="REPO_FACTS_ADD">
798dd6b2bfcSGreg Roach            <?= I18N::translate('All repository facts') ?>
799dd6b2bfcSGreg Roach        </label>
800dd6b2bfcSGreg Roach        <div class="col-sm-9">
801c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'REPO_FACTS_ADD[]', 'id' => 'REPO_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('REPO_FACTS_ADD')), 'options' => $all_repo_facts, 'class' => 'select2']) ?>
802dd6b2bfcSGreg Roach            <p class="small text-muted">
803dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “All repository facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can add to repositories. You can modify this list by removing or adding fact names, even custom ones, as necessary. Fact names that appear in this list must not also appear in the “Unique repository facts” list.') ?>
804dd6b2bfcSGreg Roach            </p>
805dd6b2bfcSGreg Roach        </div>
806dd6b2bfcSGreg Roach    </div>
807dd6b2bfcSGreg Roach
808dd6b2bfcSGreg Roach    <!-- REPO_FACTS_UNIQUE -->
809dd6b2bfcSGreg Roach    <div class="row form-group">
810dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="REPO_FACTS_UNIQUE">
811dd6b2bfcSGreg Roach            <?= I18N::translate('Unique repository facts') ?>
812dd6b2bfcSGreg Roach        </label>
813dd6b2bfcSGreg Roach        <div class="col-sm-9">
814c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'REPO_FACTS_UNIQUE[]', 'id' => 'REPO_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('REPO_FACTS_UNIQUE')), 'options' => $all_repo_facts, 'class' => 'select2']) ?>
815dd6b2bfcSGreg Roach            <p class="small text-muted">
816dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Unique repository facts” configuration setting */ I18N::translate('This is the list of GEDCOM facts that your users can only add once to repositories. For example, if NAME is in this list, users will not be able to add more than one NAME record to a repository. Fact names that appear in this list must not also appear in the “All repository facts” list.') ?>
817dd6b2bfcSGreg Roach            </p>
818dd6b2bfcSGreg Roach        </div>
819dd6b2bfcSGreg Roach    </div>
820dd6b2bfcSGreg Roach
821dd6b2bfcSGreg Roach    <!-- REPO_FACTS_QUICK -->
822dd6b2bfcSGreg Roach    <div class="row form-group">
823dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="REPO_FACTS_QUICK">
824dd6b2bfcSGreg Roach            <?= I18N::translate('Quick repository facts') ?>
825dd6b2bfcSGreg Roach        </label>
826dd6b2bfcSGreg Roach        <div class="col-sm-9">
827c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'REPO_FACTS_QUICK[]', 'id' => 'REPO_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('REPO_FACTS_QUICK')), 'options' => $all_repo_facts, 'class' => 'select2']) ?>
828dd6b2bfcSGreg Roach            <p class="small text-muted">
829dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Quick repository facts” configuration setting */ I18N::translate('The most common repository facts are listed separately, so that they can be added more easily.') ?>
830dd6b2bfcSGreg Roach            </p>
831dd6b2bfcSGreg Roach        </div>
832dd6b2bfcSGreg Roach    </div>
833dd6b2bfcSGreg Roach
834dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Advanced fact preferences') ?></h3>
835dd6b2bfcSGreg Roach
836dd6b2bfcSGreg Roach    <!-- ADVANCED_NAME_FACTS -->
837dd6b2bfcSGreg Roach    <div class="row form-group">
838dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="ADVANCED_NAME_FACTS">
839dd6b2bfcSGreg Roach            <?= I18N::translate('Advanced name facts') ?>
840dd6b2bfcSGreg Roach        </label>
841dd6b2bfcSGreg Roach        <div class="col-sm-9">
842c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'ADVANCED_NAME_FACTS[]', 'id' => 'ADVANCED_NAME_FACTS', 'selected' => explode(',', $tree->getPreference('ADVANCED_NAME_FACTS')), 'options' => $all_name_facts, 'class' => 'select2']) ?>
843dd6b2bfcSGreg Roach            <p class="small text-muted">
844dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Advanced name facts” configuration setting */ I18N::translate('This is a comma separated list of GEDCOM fact tags that will be shown on the add/edit name form. If you use non-Latin alphabets such as Hebrew, Greek, Cyrillic, or Arabic, you may want to add tags such as _HEB, ROMN, FONE, etc. to allow you to store names in several different alphabets.') ?>
845dd6b2bfcSGreg Roach            </p>
846dd6b2bfcSGreg Roach        </div>
847dd6b2bfcSGreg Roach    </div>
848dd6b2bfcSGreg Roach
849dd6b2bfcSGreg Roach    <!-- ADVANCED_PLAC_FACTS -->
850dd6b2bfcSGreg Roach    <div class="row form-group">
851dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="ADVANCED_PLAC_FACTS">
852dd6b2bfcSGreg Roach            <?= I18N::translate('Advanced place name facts') ?>
853dd6b2bfcSGreg Roach        </label>
854dd6b2bfcSGreg Roach        <div class="col-sm-9">
855c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'ADVANCED_PLAC_FACTS[]', 'id' => 'ADVANCED_PLAC_FACTS', 'selected' => explode(',', $tree->getPreference('ADVANCED_PLAC_FACTS')), 'options' => $all_plac_facts, 'class' => 'select2']) ?>
856dd6b2bfcSGreg Roach            <p class="small text-muted">
857dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Advanced place name facts” configuration setting */ I18N::translate('This is a comma separated list of GEDCOM fact tags that will be shown when you add or edit place names. If you use non-Latin alphabets such as Hebrew, Greek, Cyrillic, or Arabic, you may want to add tags such as _HEB, ROMN, FONE, etc. to allow you to store place names in several different alphabets.') ?>
858dd6b2bfcSGreg Roach            </p>
859dd6b2bfcSGreg Roach        </div>
860dd6b2bfcSGreg Roach    </div>
861dd6b2bfcSGreg Roach
862dd6b2bfcSGreg Roach    <h3><?= I18N::translate('Other preferences') ?></h3>
863dd6b2bfcSGreg Roach
864dd6b2bfcSGreg Roach    <!-- SURNAME_TRADITION -->
865dd6b2bfcSGreg Roach    <fieldset class="form-group">
866dd6b2bfcSGreg Roach        <div class="row">
867dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
868dd6b2bfcSGreg Roach                <?= I18N::translate('Surname tradition') ?>
869dd6b2bfcSGreg Roach            </legend>
870dd6b2bfcSGreg Roach            <div class="col-sm-9">
871b6c326d8SGreg Roach                <?= view('components/radios', ['name' => 'SURNAME_TRADITION', 'options' => $all_surname_traditions, 'selected' => $tree->getPreference('SURNAME_TRADITION')]) ?>
872dd6b2bfcSGreg Roach                <p class="small text-muted">
873dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Surname tradition” configuration setting */ I18N::translate('When you add a new family member, a default surname can be provided. This surname will depend on the local tradition.') ?>
874dd6b2bfcSGreg Roach                </p>
875dd6b2bfcSGreg Roach            </div>
876dd6b2bfcSGreg Roach        </div>
877dd6b2bfcSGreg Roach    </fieldset>
878dd6b2bfcSGreg Roach
879dd6b2bfcSGreg Roach    <!-- FULL_SOURCES -->
880dd6b2bfcSGreg Roach    <fieldset class="form-group">
881dd6b2bfcSGreg Roach        <div class="row">
882dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
883dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Use full source citations') ?>
884dd6b2bfcSGreg Roach            </legend>
885dd6b2bfcSGreg Roach            <div class="col-sm-9">
886b6c326d8SGreg Roach                <?= view('components/radios-inline', ['name' => 'FULL_SOURCES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('FULL_SOURCES')]) ?>
887dd6b2bfcSGreg Roach                <p class="small text-muted">
888dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Use full source citations” configuration setting */ I18N::translate('Source citations can include fields to record the quality of the data (primary, secondary, etc.) and the date the event was recorded in the source. If you don’t use these fields, you can disable them when creating new source citations.') ?>
889dd6b2bfcSGreg Roach                </p>
890dd6b2bfcSGreg Roach            </div>
891dd6b2bfcSGreg Roach        </div>
892dd6b2bfcSGreg Roach    </fieldset>
893dd6b2bfcSGreg Roach
894dd6b2bfcSGreg Roach    <!-- PREFER_LEVEL2_SOURCES -->
895dd6b2bfcSGreg Roach    <fieldset class="form-group">
896dd6b2bfcSGreg Roach        <div class="row">
897dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
898dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Source type') ?>
899dd6b2bfcSGreg Roach            </legend>
900dd6b2bfcSGreg Roach            <div class="col-sm-9">
9015d9fc484SGreg Roach                <?= view('components/radios-inline', ['name' => 'PREFER_LEVEL2_SOURCES', 'options' => $source_types, 'selected' => (int) $tree->getPreference('PREFER_LEVEL2_SOURCES')]) ?>
902dd6b2bfcSGreg Roach                <p class="small text-muted">
903dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Source type” configuration setting */ I18N::translate('When adding new close relatives, you can add source citations to the records (individual and family) or to the facts and events (birth, marriage, and death). This option controls whether records or facts will be selected by default.') ?>
904dd6b2bfcSGreg Roach                </p>
905dd6b2bfcSGreg Roach            </div>
906dd6b2bfcSGreg Roach        </div>
907dd6b2bfcSGreg Roach    </fieldset>
908dd6b2bfcSGreg Roach
909dd6b2bfcSGreg Roach    <!-- NO_UPDATE_CHAN -->
910dd6b2bfcSGreg Roach    <fieldset class="form-group">
911dd6b2bfcSGreg Roach        <div class="row">
912dd6b2bfcSGreg Roach            <legend class="col-form-label col-sm-3">
913dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Keep the existing “last change” information') ?>
914dd6b2bfcSGreg Roach            </legend>
915dd6b2bfcSGreg Roach            <div class="col-sm-9">
916b6c326d8SGreg Roach                <?= view('components/radios-inline', ['name' => 'NO_UPDATE_CHAN', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('NO_UPDATE_CHAN')]) ?>
917dd6b2bfcSGreg Roach                <p class="small text-muted">
918dd6b2bfcSGreg Roach                    <?= /* I18N: Help text for the “Keep the existing ‘last change’ information” configuration setting */ I18N::translate('When a record is edited, the user and timestamp are recorded. Sometimes it is desirable to keep the existing “last change” information, for example when making minor corrections to someone else’s data. This option controls whether this feature is selected by default.') ?>
919dd6b2bfcSGreg Roach                </p>
920dd6b2bfcSGreg Roach            </div>
921dd6b2bfcSGreg Roach        </div>
922dd6b2bfcSGreg Roach    </fieldset>
923dd6b2bfcSGreg Roach
924dd6b2bfcSGreg Roach    <div class="row form-group">
925dd6b2bfcSGreg Roach        <div class="offset-sm-3 col-sm-9">
926dd6b2bfcSGreg Roach            <button type="submit" class="btn btn-primary">
927dd6b2bfcSGreg Roach                <?= view('icons/save') ?>
928dd6b2bfcSGreg Roach                <?= I18N::translate('save') ?>
929dd6b2bfcSGreg Roach            </button>
9300c0910bfSGreg Roach            <a class="btn btn-secondary" href="<?= e(route('manage-trees', ['tree' => $tree->name()])) ?>">
931dd6b2bfcSGreg Roach        <?= view('icons/cancel') ?>
932dd6b2bfcSGreg Roach                <?= I18N::translate('cancel') ?>
933dd6b2bfcSGreg Roach            </a>
934dd6b2bfcSGreg Roach            <!-- Coming soon
935dd6b2bfcSGreg Roach            <div class="form-check">
936dd6b2bfcSGreg Roach                <?php if ($tree_count > 1) : ?>
937dd6b2bfcSGreg Roach                <label>
938dd6b2bfcSGreg Roach                    <input type="checkbox" name="all_trees">
939dd6b2bfcSGreg Roach                    <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to all family trees') ?>
940dd6b2bfcSGreg Roach                </label>
941dd6b2bfcSGreg Roach                <?php endif ?>
942dd6b2bfcSGreg Roach            </div>
943dd6b2bfcSGreg Roach            <div class="form-check">
944dd6b2bfcSGreg Roach                <label>
945dd6b2bfcSGreg Roach                    <input type="checkbox" name="new_trees">
946dd6b2bfcSGreg Roach                    <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to new family trees') ?>
947dd6b2bfcSGreg Roach                </label>
948dd6b2bfcSGreg Roach            </div>
949dd6b2bfcSGreg Roach        </div>
950dd6b2bfcSGreg Roach        -->
951dd6b2bfcSGreg Roach        </div>
952dd6b2bfcSGreg Roach</form>
953