xref: /webtrees/resources/views/admin/trees-preferences.phtml (revision b62a8ecaef02a45d7e018fdb0f702d4575d8d0de)
1<?php
2
3use Fisharebest\Webtrees\Auth;
4use Fisharebest\Webtrees\Date;
5use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
6use Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees;
7use Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesAction;
8use Fisharebest\Webtrees\I18N;
9
10?>
11
12<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?>
13
14<h1><?= $title ?></h1>
15
16<form method="post" action="<?= e(route(TreePreferencesAction::class, ['tree' => $tree->name()])) ?>" class="form-horizontal">
17    <?= csrf_field() ?>
18
19    <h3><?= I18N::translate('General') ?></h3>
20
21    <!-- TREE TITLE -->
22    <div class="row form-group">
23        <label class="col-sm-3 col-form-label" for="title">
24            <?= I18N::translate('Family tree title') ?>
25        </label>
26        <div class="col-sm-9">
27            <input
28                class="form-control"
29                dir="auto"
30                id="title"
31                maxlength="255"
32                name="title"
33                required
34                type="text"
35                value="<?= e($tree->getPreference('title')) ?>"
36            >
37        </div>
38    </div>
39
40    <!-- TREE URL / FILENAME -->
41    <div class="row form-group">
42        <label class="col-sm-3 col-form-label" for="gedcom">
43            <?= I18N::translate('URL') ?>
44        </label>
45        <div class="col-sm-9">
46            <div class="input-group" dir="ltr">
47                <div class="input-group-prepend">
48                    <span class="input-group-text" dir="ltr">
49                        <?= e(explode('{tree}', rawurldecode(route('example')))[0]) ?>
50                    </span>
51                </div>
52                <input class="form-control" dir="ltr" id="gedcom" maxlength="255" name="gedcom" required type="text" value="<?= e($tree->name()) ?>">
53                <div class="input-group-append">
54                    <span class="input-group-text" dir="ltr">
55                        <?= e(explode('{tree}', rawurldecode(route('example')))[1]) ?>
56                    </span>
57                </div>
58            </div>
59            <p class="small text-muted">
60                <?= /* I18N: help text for family tree / GEDCOM file names */ I18N::translate('Avoid spaces and punctuation. A family name might be a good choice.') ?>
61            </p>
62        </div>
63    </div>
64
65    <!-- PEDIGREE_ROOT_ID -->
66    <div class="row form-group">
67        <label class="col-sm-3 col-form-label" for="PEDIGREE_ROOT_ID">
68            <?= /* I18N: A configuration setting */ I18N::translate('Default individual') ?>
69        </label>
70        <div class="col-sm-9">
71            <?= view('components/select-individual', ['name' => 'PEDIGREE_ROOT_ID', 'individual' => $pedigree_individual, 'tree' => $tree]) ?>
72            <p class="small text-muted">
73                <?= /* I18N: Help text for the “Default individual” configuration setting */ I18N::translate('This individual will be selected by default when viewing charts and reports.') ?>
74            </p>
75        </div>
76    </div>
77
78    <!-- CALENDAR_FORMAT -->
79    <fieldset class="form-group">
80        <div class="row">
81            <legend class="col-form-label col-sm-3">
82                <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?>
83                <label class="sr-only" for="CALENDAR_FORMAT0">
84                    <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 1
85                </label>
86                <label class="sr-only" for="CALENDAR_FORMAT1">
87                    <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 2
88                </label>
89            </legend>
90            <div class="col-sm-9">
91                <div class="row">
92                    <div class="col-sm-6" style="padding-left: 0;">
93                        <?= view('components/select', ['name' => 'CALENDAR_FORMAT0', 'selected' => $calendar_formats[0], 'options' => ['none' => I18N::translate('No calendar conversion')] + Date::calendarNames()]) ?>
94                    </div>
95                    <div class="col-sm-6" style="padding-right: 0;">
96                        <?= view('components/select', ['name' => 'CALENDAR_FORMAT1', 'selected' => $calendar_formats[1], 'options' => ['none' => I18N::translate('No calendar conversion')] + Date::calendarNames()]) ?>
97                    </div>
98                </div>
99                <p class="small text-muted">
100                    <?= /* 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.') ?>
101                </p>
102                <p class="small text-muted">
103                    <?= /* 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)) ?>
104                </p>
105                <p class="small text-muted">
106                    <?= /* 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.') ?>
107                </p>
108            </div>
109        </div>
110    </fieldset>
111
112    <!-- GENERATE_UIDS -->
113    <fieldset class="form-group">
114        <div class="row">
115            <legend class="col-form-label col-sm-3">
116                <?= /* I18N: A configuration setting */ I18N::translate('Add unique identifiers') ?>
117            </legend>
118            <div class="col-sm-9">
119                <?= view('components/radios-inline', ['name' => 'GENERATE_UIDS', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('GENERATE_UIDS')]) ?>
120                <p class="small text-muted">
121                    <?= /* 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.') ?>
122                </p>
123            </div>
124        </div>
125    </fieldset>
126
127    <h3><?= I18N::translate('Contact information') ?></h3>
128
129    <!-- CONTACT_USER_ID -->
130    <div class="row form-group">
131        <label class="col-sm-3 col-form-label" for="CONTACT_USER_ID">
132            <?= /* I18N: A configuration setting */ I18N::translate('Genealogy contact') ?>
133        </label>
134        <div class="col-sm-9">
135            <select id="CONTACT_USER_ID" name="CONTACT_USER_ID" class="form-control">
136                <option value="">&nbsp;</option>
137                <?php foreach ($members as $member) : ?>
138                    <option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('CONTACT_USER_ID') === $member->id() ? 'selected' : '' ?>>
139                        <?= e($member->realName()) ?> - <?= e($member->userName()) ?>
140                    </option>
141                <?php endforeach ?>
142            </select>
143            <p class="small text-muted">
144                <?= /* I18N: Help text for the “Genealogy contact” configuration setting */ I18N::translate('The individual to contact about the genealogy data on this website.') ?>
145            </p>
146        </div>
147    </div>
148
149    <!-- WEBMASTER_USER_ID -->
150    <div class="row form-group">
151        <label class="col-sm-3 col-form-label" for="WEBMASTER_USER_ID">
152            <?= /* I18N: A configuration setting */ I18N::translate('Technical help contact') ?>
153        </label>
154        <div class="col-sm-9">
155            <select id="WEBMASTER_USER_ID" name="WEBMASTER_USER_ID" class="form-control">
156                <option value="">&nbsp;</option>
157                <?php foreach ($members as $member) : ?>
158                    <option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('WEBMASTER_USER_ID') === $member->id() ? 'selected' : '' ?>>
159                        <?= e($member->realName()) ?> - <?= e($member->userName()) ?>
160                    </option>
161                <?php endforeach ?>
162            </select>
163            <p class="small text-muted">
164                <?= /* 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.') ?>
165            </p>
166        </div>
167    </div>
168
169    <h3><?= I18N::translate('Website') ?></h3>
170
171    <!-- META_TITLE -->
172    <div class="row form-group">
173        <label class="col-sm-3 col-form-label" for="META_TITLE">
174            <?= /* I18N: A configuration setting */ I18N::translate('Add to TITLE header tag') ?>
175        </label>
176        <div class="col-sm-9">
177            <input
178                class="form-control"
179                id="META_TITLE"
180                maxlength="255"
181                name="META_TITLE"
182                type="text"
183                value="<?= e($tree->getPreference('META_TITLE')) ?>"
184            >
185            <p class="small text-muted">
186                <?= /* 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.') ?>
187            </p>
188        </div>
189    </div>
190
191    <!-- META_DESCRIPTION -->
192    <div class="row form-group">
193        <label class="col-sm-3 col-form-label" for="META_DESCRIPTION">
194            <?= /* I18N: A configuration setting */ I18N::translate('Description META tag') ?>
195        </label>
196        <div class="col-sm-9">
197            <input
198                class="form-control"
199                id="META_DESCRIPTION"
200                maxlength="255"
201                name="META_DESCRIPTION"
202                type="text"
203                value="<?= e($tree->getPreference('META_DESCRIPTION')) ?>"
204            >
205            <p class="small text-muted">
206                <?= /* 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.') ?>
207            </p>
208        </div>
209    </div>
210
211    <h3><?= I18N::translate('Media folders') ?></h3>
212
213    <!-- MEDIA_DIRECTORY -->
214    <div class="row form-group">
215        <label class="col-sm-3 col-form-label" for="MEDIA_DIRECTORY">
216            <?= /* I18N: A configuration setting */ I18N::translate('Media folder') ?>
217        </label>
218        <div class="col-sm-9">
219            <div class="input-group" dir="ltr">
220                <div class="input-group-prepend">
221                    <span class="input-group-text" dir="ltr">
222                        <?= e($data_folder) ?>
223                    </span>
224                </div>
225                <input class="form-control" dir="ltr" id="MEDIA_DIRECTORY" maxlength="255" name="MEDIA_DIRECTORY" type="text" value="<?= e($tree->getPreference('MEDIA_DIRECTORY')) ?>">
226            </div>
227            <p class="small text-muted">
228                <?= /* 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.') ?>
229                <?= /* 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.') ?>
230                <?= /* 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.') ?>
231            </p>
232        </div>
233    </div>
234
235    <h3><?= I18N::translate('Media files') ?></h3>
236
237    <!-- MEDIA_UPLOAD -->
238    <div class="row form-group">
239        <label class="col-sm-3 col-form-label" for="MEDIA_UPLOAD">
240            <?= /* I18N: A configuration setting */ I18N::translate('Who can upload new media files') ?>
241        </label>
242        <div class="col-sm-9">
243            <?= view('components/select', ['name' => 'MEDIA_UPLOAD', 'selected' => $tree->getPreference('MEDIA_UPLOAD'), 'options' => $privacy_options]) ?>
244            <p class="small text-muted">
245                <?= /* 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.') ?>
246            </p>
247        </div>
248    </div>
249
250    <!-- SHOW_MEDIA_DOWNLOAD -->
251    <fieldset class="form-group">
252        <div class="row">
253            <legend class="col-form-label col-sm-3">
254                <?= /* I18N: A configuration setting */ I18N::translate('Show a download link in the media viewer') ?>
255            </legend>
256            <div class="col-sm-9">
257                <?= view('components/select', ['name' => 'SHOW_MEDIA_DOWNLOAD', 'selected' => $tree->getPreference('SHOW_MEDIA_DOWNLOAD'), 'options' => Auth::accessLevelNames()]) ?>
258                <p class="small text-muted">
259                    <?= /* 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.') ?>
260                </p>
261            </div>
262        </div>
263    </fieldset>
264
265    <h3><?= I18N::translate('Thumbnail images') ?></h3>
266
267    <!-- SHOW_HIGHLIGHT_IMAGES -->
268    <fieldset class="form-group">
269        <div class="row">
270            <legend class="col-form-label col-sm-3">
271                <?= I18N::translate('Thumbnail images') ?>
272            </legend>
273            <div class="col-sm-9">
274                <?= view('components/radios-inline', ['name' => 'SHOW_HIGHLIGHT_IMAGES', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_HIGHLIGHT_IMAGES')]) ?>
275                <p class="small text-muted">
276                    <?= I18N::translate('Show thumbnail images in charts and family groups.') ?>
277                </p>
278            </div>
279        </div>
280    </fieldset>
281
282    <!-- USE_SILHOUETTE -->
283    <fieldset class="form-group">
284        <div class="row">
285            <legend class="col-form-label col-sm-3">
286                <?= /* I18N: A configuration setting */ I18N::translate('Use silhouettes') ?>
287            </legend>
288            <div class="col-sm-9">
289                <?= view('components/radios-inline', ['name' => 'USE_SILHOUETTE', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('USE_SILHOUETTE')]) ?>
290                <p class="small text-muted">
291                    <?= /* 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.') ?>
292                </p>
293            </div>
294        </div>
295    </fieldset>
296
297    <h3><?= I18N::translate('Watermarks') ?></h3>
298
299    <!-- SHOW_NO_WATERMARK -->
300    <div class="row form-group">
301        <label class="col-sm-3 col-form-label" for="SHOW_NO_WATERMARK">
302            <?= I18N::translate('Images without watermarks') ?>
303        </label>
304        <div class="col-sm-9">
305            <?= view('components/select', ['name' => 'SHOW_NO_WATERMARK', 'selected' => $tree->getPreference('SHOW_NO_WATERMARK'), 'options' => Auth::accessLevelNames()]) ?>
306            <p class="small text-muted">
307                <?= /* I18N: Help text for the “Images without watermarks” configuration setting */ I18N::translate('Watermarks are optional and normally shown just to visitors.') ?>
308            </p>
309        </div>
310    </div>
311
312    <h3><?= I18N::translate('Lists') ?></h3>
313
314    <!-- SURNAME_LIST_STYLE -->
315    <div class="row form-group">
316        <label class="col-sm-3 col-form-label" for="SURNAME_LIST_STYLE">
317            <?= I18N::translate('Surname list style') ?>
318        </label>
319        <div class="col-sm-9">
320            <?= view('components/select', ['name' => 'SURNAME_LIST_STYLE', 'selected' => $tree->getPreference('SURNAME_LIST_STYLE'), 'options' => $surname_list_styles]) ?>
321            <p class="small text-muted">
322            </p>
323        </div>
324    </div>
325
326    <!-- SUBLIST_TRIGGER_I -->
327    <div class="row form-group">
328        <label class="col-sm-3 col-form-label" for="SUBLIST_TRIGGER_I">
329            <?= /* I18N: A configuration setting */ I18N::translate('Maximum number of surnames on individual list') ?>
330        </label>
331        <div class="col-sm-9">
332            <input
333                class="form-control"
334                id="SUBLIST_TRIGGER_I"
335                maxlength="5"
336                name="SUBLIST_TRIGGER_I"
337                required
338                type="text"
339                value="<?= e($tree->getPreference('SUBLIST_TRIGGER_I')) ?>"
340            >
341            <p class="small text-muted">
342                <?= /* 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.') ?>
343            </p>
344        </div>
345    </div>
346
347    <!-- SHOW_EST_LIST_DATES -->
348    <fieldset class="form-group">
349        <div class="row">
350            <legend class="col-form-label col-sm-3">
351                <?= /* I18N: A configuration setting */ I18N::translate('Estimated dates for birth and death') ?>
352            </legend>
353            <div class="col-sm-9">
354                <?= view('components/radios-inline', ['name' => 'SHOW_EST_LIST_DATES', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_EST_LIST_DATES')]) ?>
355                <p class="small text-muted">
356                    <?= /* 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.') ?>
357                </p>
358            </div>
359        </div>
360    </fieldset>
361
362    <!-- SHOW_LAST_CHANGE -->
363    <fieldset class="form-group">
364        <div class="row">
365            <legend class="col-form-label col-sm-3">
366                <?= I18N::translate('The date and time of the last update') ?>
367            </legend>
368            <div class="col-sm-9">
369                <?= view('components/radios-inline', ['name' => 'SHOW_LAST_CHANGE', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_LAST_CHANGE')]) ?>
370                <p class="small text-muted">
371                </p>
372            </div>
373        </div>
374    </fieldset>
375
376    <h3><?= I18N::translate('Charts') ?></h3>
377
378    <!-- SHOW_PARENTS_AGE -->
379    <fieldset class="form-group">
380        <div class="row">
381            <legend class="col-form-label col-sm-3">
382                <?= /* I18N: A configuration setting */ I18N::translate('Age of parents next to child’s birthdate') ?>
383            </legend>
384            <div class="col-sm-9">
385                <?= view('components/radios-inline', ['name' => 'SHOW_PARENTS_AGE', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_PARENTS_AGE')]) ?>
386                <p class="small text-muted">
387                    <?= /* 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.') ?>
388                </p>
389            </div>
390        </div>
391    </fieldset>
392
393    <!-- CHART_BOX_TAGS -->
394    <div class="row form-group">
395        <label class="col-sm-3 col-form-label" for="CHART_BOX_TAGS">
396            <?= I18N::translate('Other facts to show in charts') ?>
397        </label>
398        <div class="col-sm-9">
399            <div class="input-group">
400                <?= view('components/select', ['name' => 'CHART_BOX_TAGS[]', 'id' => 'CHART_BOX_TAGS', 'selected' => explode(',', $tree->getPreference('CHART_BOX_TAGS')), 'options' => $all_indi_facts, 'class' => 'select2']) ?>
401            </div>
402            <p class="small text-muted">
403                <?= /* 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.') ?>
404            </p>
405        </div>
406    </div>
407
408    <h3><?= I18N::translate('Individual pages') ?></h3>
409
410    <!-- SHOW_RELATIVES_EVENTS -->
411    <fieldset class="form-group">
412        <div class="row">
413            <legend class="col-form-label col-sm-3">
414                <?= I18N::translate('Show the events of close relatives on the individual page') ?>
415            </legend>
416            <div class="col-sm-3">
417                <div class="form-check">
418                    <label for="_BIRT_GCHI">
419                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_GCHI" value="_BIRT_GCHI" <?= in_array('_BIRT_GCHI', $relatives_events, true) ? 'checked' : '' ?>>
420                        <?= I18N::translate('Birth of a grandchild') ?>
421                    </label>
422                </div>
423                <div class="form-check">
424                    <label for="_BIRT_CHIL">
425                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_CHIL" value="_BIRT_CHIL" <?= in_array('_BIRT_CHIL', $relatives_events, true) ? 'checked' : '' ?>>
426                        <?= I18N::translate('Birth of a child') ?>
427                    </label>
428                </div>
429                <div class="form-check">
430                    <label for="_BIRT_SIBL">
431                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_SIBL" value="_BIRT_SIBL" <?= in_array('_BIRT_SIBL', $relatives_events, true) ? 'checked' : '' ?>>
432                        <?= I18N::translate('Birth of a sibling') ?>
433                    </label>
434                </div>
435            </div>
436            <div class="col-sm-3">
437                <div class="form-check">
438                    <label for="_MARR_GCHI">
439                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_GCHI" value="_MARR_GCHI" <?= in_array('_MARR_GCHI', $relatives_events, true) ? 'checked' : '' ?>>
440                        <?= I18N::translate('Marriage of a grandchild') ?>
441                    </label>
442                </div>
443                <div class="form-check">
444                    <label for="_MARR_CHIL">
445                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_CHIL" value="_MARR_CHIL" <?= in_array('_MARR_CHIL', $relatives_events, true) ? 'checked' : '' ?>>
446                        <?= I18N::translate('Marriage of a child') ?>
447                    </label>
448                </div>
449                <div class="form-check">
450                    <label for="_MARR_SIBL">
451                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_SIBL" value="_MARR_SIBL" <?= in_array('_MARR_SIBL', $relatives_events, true) ? 'checked' : '' ?>>
452                        <?= I18N::translate('Marriage of a sibling') ?>
453                    </label>
454                </div>
455                <div class="form-check">
456                    <label for="_MARR_PARE">
457                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_PARE" value="_MARR_PARE" <?= in_array('_MARR_PARE', $relatives_events, true) ? 'checked' : '' ?>>
458                        <?= I18N::translate('Marriage of a parent') ?>
459                    </label>
460                </div>
461            </div>
462            <div class="col-sm-3">
463                <div class="form-check">
464                    <label for="_DEAT_GCHI">
465                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_GCHI" value="_DEAT_GCHI" <?= in_array('_DEAT_GCHI', $relatives_events, true) ? 'checked' : '' ?>>
466                        <?= I18N::translate('Death of a grandchild') ?>
467                    </label>
468                </div>
469                <div class="form-check">
470                    <label for="_DEAT_CHIL">
471                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_CHIL" value="_DEAT_CHIL" <?= in_array('_DEAT_CHIL', $relatives_events, true) ? 'checked' : '' ?>>
472                        <?= I18N::translate('Death of a child') ?>
473                    </label>
474                </div>
475                <div class="form-check">
476                    <label for="_DEAT_SIBL">
477                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_SIBL" value="_DEAT_SIBL" <?= in_array('_DEAT_SIBL', $relatives_events, true) ? 'checked' : '' ?>>
478                        <?= I18N::translate('Death of a sibling') ?>
479                    </label>
480                </div>
481                <div class="form-check">
482                    <label for="_DEAT_PARE">
483                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_PARE" value="_DEAT_PARE" <?= in_array('_DEAT_PARE', $relatives_events, true) ? 'checked' : '' ?>>
484                        <?= I18N::translate('Death of a parent') ?>
485                    </label>
486                </div>
487                <div class="form-check">
488                    <label for="_DEAT_SPOU">
489                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_SPOU" value="_DEAT_SPOU" <?= in_array('_DEAT_SPOU', $relatives_events, true) ? 'checked' : '' ?>>
490                        <?= I18N::translate('Death of a spouse') ?>
491                    </label>
492                </div>
493                <div class="form-check">
494                    <label for="_DEAT_GPAR">
495                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_GPAR" value="_DEAT_GPAR" <?= in_array('_DEAT_GPAR', $relatives_events, true) ? 'checked' : '' ?>>
496                        <?= I18N::translate('Death of a grandparent') ?>
497                    </label>
498                </div>
499            </div>
500        </div>
501    </fieldset>
502
503    <!-- SHOW_FACT_ICONS -->
504    <fieldset class="form-group">
505        <div class="row">
506            <legend class="col-form-label col-sm-3">
507                <?= /* I18N: A configuration setting */ I18N::translate('Fact icons') ?>
508            </legend>
509            <div class="col-sm-9">
510                <?= view('components/radios-inline', ['name' => 'SHOW_FACT_ICONS', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_FACT_ICONS')]) ?>
511                <p class="small text-muted">
512                    <?= /* I18N: Help text for the “Fact icons” configuration setting */ I18N::translate('Some themes can display icons on the “Facts and events” tab.') ?>
513                </p>
514            </div>
515        </div>
516    </fieldset>
517
518    <!-- EXPAND_NOTES -->
519    <fieldset class="form-group">
520        <div class="row">
521            <legend class="col-form-label col-sm-3">
522                <?= /* I18N: A configuration setting */ I18N::translate('Automatically expand notes') ?>
523            </legend>
524            <div class="col-sm-9">
525                <?= view('components/radios-inline', ['name' => 'EXPAND_NOTES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('EXPAND_NOTES')]) ?>
526                <p class="small text-muted">
527                    <?= /* I18N: Help text for the “Automatically expand notes” configuration setting */
528                    I18N::translate('This option controls whether or not to automatically display content of a <i>Note</i> record on the Individual page.') ?>
529                </p>
530            </div>
531        </div>
532    </fieldset>
533
534    <!-- EXPAND_SOURCES -->
535    <fieldset class="form-group">
536        <div class="row">
537            <legend class="col-form-label col-sm-3">
538                <?= /* I18N: A configuration setting */ I18N::translate('Automatically expand sources') ?>
539            </legend>
540            <div class="col-sm-9">
541                <?= view('components/radios-inline', ['name' => 'EXPAND_SOURCES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('EXPAND_SOURCES')]) ?>
542                <p class="small text-muted">
543                    <?= /* I18N: Help text for the “Automatically expand sources” configuration setting */
544                    I18N::translate('This option controls whether or not to automatically display content of a <i>Source</i> record on the Individual page.') ?>
545                </p>
546            </div>
547        </div>
548    </fieldset>
549
550    <h3><?= I18N::translate('Places') ?></h3>
551
552    <!-- SHOW_PEDIGREE_PLACES -->
553    <fieldset class="form-group">
554        <div class="row">
555            <legend class="col-form-label col-sm-3">
556                <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
557                <label class="sr-only" for="SHOW_PEDIGREE_PLACES_SUFFIX">
558                    <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
559                    <?= I18N::translate('first') ?> / <?= I18N::translate('last') ?>
560                </label>
561                <label class="sr-only" for="SHOW_PEDIGREE_PLACES">
562                    <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
563                </label>
564            </legend>
565            <div class="col-sm-9">
566                <?= /* I18N: The placeholders are edit controls. Show the [first/last] [1/2/3/4/5] parts of a place name */ I18N::translate(
567                    'Show the %1$s %2$s parts of a place name.',
568                    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')]]),
569                    view('components/select-number', ['name' => 'SHOW_PEDIGREE_PLACES', 'selected' => $tree->getPreference('SHOW_PEDIGREE_PLACES'), 'options' => range(1, 9)])
570                ) ?>
571                <p class="small text-muted">
572                    <?= /* 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>.') ?>
573                </p>
574            </div>
575        </div>
576    </fieldset>
577
578    <h3><?= I18N::translate('Text') ?></h3>
579
580    <!-- FORMAT_TEXT -->
581    <fieldset class="form-group">
582        <div class="row">
583            <legend class="col-form-label col-sm-3">
584                <?= /* I18N: A configuration setting */ I18N::translate('Format text and notes') ?>
585            </legend>
586            <div class="col-sm-9">
587                <?= view('components/radios-inline', ['name' => 'FORMAT_TEXT', 'options' => $formats, 'selected' =>  $tree->getPreference('FORMAT_TEXT')]) ?>
588                <p class="small text-muted">
589                    <?= /* 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.') ?>
590                </p>
591                <p class="small text-muted">
592                    <?= /* 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.') ?>
593                </p>
594            </div>
595        </div>
596    </fieldset>
597
598    <h3><?= I18N::translate('General') ?></h3>
599
600    <!-- SHOW_GEDCOM_RECORD -->
601    <fieldset class="form-group">
602        <div class="row">
603            <legend class="col-form-label col-sm-3">
604                <?= /* I18N: A configuration setting */ I18N::translate('Allow users to see raw GEDCOM records') ?>
605            </legend>
606            <div class="col-sm-9">
607                <?= view('components/radios-inline', ['name' => 'SHOW_GEDCOM_RECORD', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('SHOW_GEDCOM_RECORD')]) ?>
608                <p class="small text-muted">
609                    <?= /* 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.') ?>
610                </p>
611            </div>
612        </div>
613    </fieldset>
614
615    <!-- HIDE_GEDCOM_ERRORS -->
616    <fieldset class="form-group">
617        <div class="row">
618            <legend class="col-form-label col-sm-3">
619                <?= /* I18N: A configuration setting */ I18N::translate('GEDCOM errors') ?>
620            </legend>
621            <div class="col-sm-9">
622                <?= view('components/radios-inline', ['name' => 'HIDE_GEDCOM_ERRORS', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('HIDE_GEDCOM_ERRORS')]) ?>
623                <p class="small text-muted">
624                    <?= /* 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.') ?>
625                </p>
626            </div>
627        </div>
628    </fieldset>
629
630    <!-- SHOW_COUNTER -->
631    <fieldset class="form-group">
632        <div class="row">
633            <legend class="col-form-label col-sm-3">
634                <?= /* I18N: A configuration setting */ I18N::translate('Hit counters') ?>
635            </legend>
636            <div class="col-sm-9">
637                <?= view('components/radios-inline', ['name' => 'SHOW_COUNTER', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_COUNTER')]) ?>
638                <p class="small text-muted">
639                    <?= /* I18N: Help text for the “Hit counters” configuration setting */ I18N::translate('Some pages can display the number of times that they have been visited.') ?>
640                </p>
641            </div>
642        </div>
643    </fieldset>
644
645    <h3><?= /* I18N: Options for editing */ I18N::translate('Edit preferences') ?></h3>
646
647    <h3><?= I18N::translate('Facts for individual records') ?></h3>
648
649    <!-- INDI_FACTS_ADD -->
650    <div class="row form-group">
651        <label class="col-sm-3 col-form-label" for="INDI_FACTS_ADD">
652            <?= I18N::translate('All individual facts') ?>
653        </label>
654        <div class="col-sm-9">
655            <?= view('components/select', ['name' => 'INDI_FACTS_ADD[]', 'id' => 'INDI_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_ADD')), 'options' => $all_indi_facts, 'class' => 'select2']) ?>
656            <p class="small text-muted">
657                <?= /* 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.') ?>
658            </p>
659        </div>
660    </div>
661
662    <!-- INDI_FACTS_UNIQUE -->
663    <div class="row form-group">
664        <label class="col-sm-3 col-form-label" for="INDI_FACTS_UNIQUE">
665            <?= I18N::translate('Unique individual facts') ?>
666        </label>
667        <div class="col-sm-9">
668            <?= view('components/select', ['name' => 'INDI_FACTS_UNIQUE[]', 'id' => 'INDI_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_UNIQUE')), 'options' => $all_indi_facts, 'class' => 'select2']) ?>
669            <p class="small text-muted">
670                <?= /* 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.') ?>
671            </p>
672        </div>
673    </div>
674
675    <!-- QUICK_REQUIRED_FACTS -->
676    <div class="row form-group">
677        <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FACTS">
678            <?= I18N::translate('Facts for new individuals') ?>
679        </label>
680        <div class="col-sm-9">
681            <?= view('components/select', ['name' => 'QUICK_REQUIRED_FACTS[]', 'id' => 'QUICK_REQUIRED_FACTS', 'selected' => explode(',', $tree->getPreference('QUICK_REQUIRED_FACTS')), 'options' => $all_indi_facts, 'class' => 'select2']) ?>
682            <p class="small text-muted">
683                <?= /* 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.') ?>
684            </p>
685        </div>
686    </div>
687
688    <!-- INDI_FACTS_QUICK -->
689    <div class="row form-group">
690        <label class="col-sm-3 col-form-label" for="INDI_FACTS_QUICK">
691            <?= I18N::translate('Quick individual facts') ?>
692        </label>
693        <div class="col-sm-9">
694            <?= view('components/select', ['name' => 'INDI_FACTS_QUICK[]', 'id' => 'INDI_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_QUICK')), 'options' => $all_indi_facts, 'class' => 'select2']) ?>
695            <p class="small text-muted">
696                <?= /* 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.') ?>
697            </p>
698        </div>
699    </div>
700
701    <h3><?= I18N::translate('Facts for family records') ?></h3>
702
703    <!-- FAM_FACTS_ADD -->
704    <div class="row form-group">
705        <label class="col-sm-3 col-form-label" for="FAM_FACTS_ADD">
706            <?= I18N::translate('All family facts') ?>
707        </label>
708        <div class="col-sm-9">
709            <?= view('components/select', ['name' => 'FAM_FACTS_ADD[]', 'id' => 'FAM_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_ADD')), 'options' => $all_fam_facts, 'class' => 'select2']) ?>
710            <p class="small text-muted">
711                <?= /* 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.') ?>
712            </p>
713        </div>
714    </div>
715
716    <!-- FAM_FACTS_UNIQUE -->
717    <div class="row form-group">
718        <label class="col-sm-3 col-form-label" for="FAM_FACTS_UNIQUE">
719            <?= I18N::translate('Unique family facts') ?>
720        </label>
721        <div class="col-sm-9">
722            <?= view('components/select', ['name' => 'FAM_FACTS_UNIQUE[]', 'id' => 'FAM_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_UNIQUE')), 'options' => $all_fam_facts, 'class' => 'select2']) ?>
723            <p class="small text-muted">
724                <?= /* 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.') ?>
725            </p>
726        </div>
727    </div>
728
729    <!-- QUICK_REQUIRED_FAMFACTS -->
730    <div class="row form-group">
731        <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FAMFACTS">
732            <?= I18N::translate('Facts for new families') ?>
733        </label>
734        <div class="col-sm-9">
735            <?= view('components/select', ['name' => 'QUICK_REQUIRED_FAMFACTS[]', 'id' => 'QUICK_REQUIRED_FAMFACTS', 'selected' => explode(',', $tree->getPreference('QUICK_REQUIRED_FAMFACTS')), 'options' => $all_fam_facts, 'class' => 'select2']) ?>
736            <p class="small text-muted">
737                <?= /* 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.') ?>
738            </p>
739        </div>
740    </div>
741
742    <!-- FAM_FACTS_QUICK -->
743    <div class="row form-group">
744        <label class="col-sm-3 col-form-label" for="FAM_FACTS_QUICK">
745            <?= I18N::translate('Quick family facts') ?>
746        </label>
747        <div class="col-sm-9">
748            <?= view('components/select', ['name' => 'FAM_FACTS_QUICK[]', 'id' => 'FAM_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_QUICK')), 'options' => $all_fam_facts, 'class' => 'select2']) ?>
749            <p class="small text-muted">
750                <?= /* 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.') ?>
751            </p>
752        </div>
753    </div>
754
755    <h3><?= I18N::translate('Facts for source records') ?></h3>
756
757    <!-- SOUR_FACTS_ADD -->
758    <div class="row form-group">
759        <label class="col-sm-3 col-form-label" for="SOUR_FACTS_ADD">
760            <?= I18N::translate('All source facts') ?>
761        </label>
762        <div class="col-sm-9">
763            <?= view('components/select', ['name' => 'SOUR_FACTS_ADD[]', 'id' => 'SOUR_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('SOUR_FACTS_ADD')), 'options' => $all_sour_facts, 'class' => 'select2']) ?>
764            <p class="small text-muted">
765                <?= /* 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.') ?>
766            </p>
767        </div>
768    </div>
769
770    <!-- SOUR_FACTS_UNIQUE -->
771    <div class="row form-group">
772        <label class="col-sm-3 col-form-label" for="SOUR_FACTS_UNIQUE">
773            <?= I18N::translate('Unique source facts') ?>
774        </label>
775        <div class="col-sm-9">
776            <?= view('components/select', ['name' => 'SOUR_FACTS_UNIQUE[]', 'id' => 'SOUR_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('SOUR_FACTS_UNIQUE')), 'options' => $all_sour_facts, 'class' => 'select2']) ?>
777            <p class="small text-muted">
778                <?= /* 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.') ?>
779            </p>
780        </div>
781    </div>
782
783    <!-- SOUR_FACTS_QUICK -->
784    <div class="row form-group">
785        <label class="col-sm-3 col-form-label" for="SOUR_FACTS_QUICK">
786            <?= I18N::translate('Quick source facts') ?>
787        </label>
788        <div class="col-sm-9">
789            <?= view('components/select', ['name' => 'SOUR_FACTS_QUICK[]', 'id' => 'SOUR_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('SOUR_FACTS_QUICK')), 'options' => $all_sour_facts, 'class' => 'select2']) ?>
790            <p class="small text-muted">
791                <?= /* 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.') ?>
792            </p>
793        </div>
794    </div>
795
796    <h3><?= I18N::translate('Facts for repository records') ?></h3>
797
798    <!-- REPO_FACTS_ADD -->
799    <div class="row form-group">
800        <label class="col-sm-3 col-form-label" for="REPO_FACTS_ADD">
801            <?= I18N::translate('All repository facts') ?>
802        </label>
803        <div class="col-sm-9">
804            <?= view('components/select', ['name' => 'REPO_FACTS_ADD[]', 'id' => 'REPO_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('REPO_FACTS_ADD')), 'options' => $all_repo_facts, 'class' => 'select2']) ?>
805            <p class="small text-muted">
806                <?= /* 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.') ?>
807            </p>
808        </div>
809    </div>
810
811    <!-- REPO_FACTS_UNIQUE -->
812    <div class="row form-group">
813        <label class="col-sm-3 col-form-label" for="REPO_FACTS_UNIQUE">
814            <?= I18N::translate('Unique repository facts') ?>
815        </label>
816        <div class="col-sm-9">
817            <?= view('components/select', ['name' => 'REPO_FACTS_UNIQUE[]', 'id' => 'REPO_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('REPO_FACTS_UNIQUE')), 'options' => $all_repo_facts, 'class' => 'select2']) ?>
818            <p class="small text-muted">
819                <?= /* 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.') ?>
820            </p>
821        </div>
822    </div>
823
824    <!-- REPO_FACTS_QUICK -->
825    <div class="row form-group">
826        <label class="col-sm-3 col-form-label" for="REPO_FACTS_QUICK">
827            <?= I18N::translate('Quick repository facts') ?>
828        </label>
829        <div class="col-sm-9">
830            <?= view('components/select', ['name' => 'REPO_FACTS_QUICK[]', 'id' => 'REPO_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('REPO_FACTS_QUICK')), 'options' => $all_repo_facts, 'class' => 'select2']) ?>
831            <p class="small text-muted">
832                <?= /* 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.') ?>
833            </p>
834        </div>
835    </div>
836
837    <h3><?= I18N::translate('Advanced fact preferences') ?></h3>
838
839    <!-- ADVANCED_NAME_FACTS -->
840    <div class="row form-group">
841        <label class="col-sm-3 col-form-label" for="ADVANCED_NAME_FACTS">
842            <?= I18N::translate('Advanced name facts') ?>
843        </label>
844        <div class="col-sm-9">
845            <?= view('components/select', ['name' => 'ADVANCED_NAME_FACTS[]', 'id' => 'ADVANCED_NAME_FACTS', 'selected' => explode(',', $tree->getPreference('ADVANCED_NAME_FACTS')), 'options' => $all_name_facts, 'class' => 'select2']) ?>
846            <p class="small text-muted">
847                <?= /* 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.') ?>
848            </p>
849        </div>
850    </div>
851
852    <!-- ADVANCED_PLAC_FACTS -->
853    <div class="row form-group">
854        <label class="col-sm-3 col-form-label" for="ADVANCED_PLAC_FACTS">
855            <?= I18N::translate('Advanced place name facts') ?>
856        </label>
857        <div class="col-sm-9">
858            <?= view('components/select', ['name' => 'ADVANCED_PLAC_FACTS[]', 'id' => 'ADVANCED_PLAC_FACTS', 'selected' => explode(',', $tree->getPreference('ADVANCED_PLAC_FACTS')), 'options' => $all_plac_facts, 'class' => 'select2']) ?>
859            <p class="small text-muted">
860                <?= /* 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.') ?>
861            </p>
862        </div>
863    </div>
864
865    <h3><?= I18N::translate('Other preferences') ?></h3>
866
867    <!-- SURNAME_TRADITION -->
868    <fieldset class="form-group">
869        <div class="row">
870            <legend class="col-form-label col-sm-3">
871                <?= I18N::translate('Surname tradition') ?>
872            </legend>
873            <div class="col-sm-9">
874                <?= view('components/radios', ['name' => 'SURNAME_TRADITION', 'options' => $all_surname_traditions, 'selected' => $tree->getPreference('SURNAME_TRADITION')]) ?>
875                <p class="small text-muted">
876                    <?= /* 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.') ?>
877                </p>
878            </div>
879        </div>
880    </fieldset>
881
882    <!-- FULL_SOURCES -->
883    <fieldset class="form-group">
884        <div class="row">
885            <legend class="col-form-label col-sm-3">
886                <?= /* I18N: A configuration setting */ I18N::translate('Use full source citations') ?>
887            </legend>
888            <div class="col-sm-9">
889                <?= view('components/radios-inline', ['name' => 'FULL_SOURCES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('FULL_SOURCES')]) ?>
890                <p class="small text-muted">
891                    <?= /* 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.') ?>
892                </p>
893            </div>
894        </div>
895    </fieldset>
896
897    <!-- PREFER_LEVEL2_SOURCES -->
898    <fieldset class="form-group">
899        <div class="row">
900            <legend class="col-form-label col-sm-3">
901                <?= /* I18N: A configuration setting */ I18N::translate('Source type') ?>
902            </legend>
903            <div class="col-sm-9">
904                <?= view('components/radios-inline', ['name' => 'PREFER_LEVEL2_SOURCES', 'options' => $source_types, 'selected' => (int) $tree->getPreference('PREFER_LEVEL2_SOURCES')]) ?>
905                <p class="small text-muted">
906                    <?= /* 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.') ?>
907                </p>
908            </div>
909        </div>
910    </fieldset>
911
912    <!-- NO_UPDATE_CHAN -->
913    <fieldset class="form-group">
914        <div class="row">
915            <legend class="col-form-label col-sm-3">
916                <?= /* I18N: A configuration setting */ I18N::translate('Keep the existing “last change” information') ?>
917            </legend>
918            <div class="col-sm-9">
919                <?= view('components/radios-inline', ['name' => 'NO_UPDATE_CHAN', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('NO_UPDATE_CHAN')]) ?>
920                <p class="small text-muted">
921                    <?= /* 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.') ?>
922                </p>
923            </div>
924        </div>
925    </fieldset>
926
927    <div class="row form-group">
928        <div class="offset-sm-3 col-sm-9">
929            <button type="submit" class="btn btn-primary">
930                <?= view('icons/save') ?>
931                <?= I18N::translate('save') ?>
932            </button>
933            <a class="btn btn-secondary" href="<?= e(route(ManageTrees::class, ['tree' => $tree->name()])) ?>">
934        <?= view('icons/cancel') ?>
935                <?= I18N::translate('cancel') ?>
936            </a>
937            <!-- Coming soon
938            <div class="form-check">
939                <?php if ($tree_count > 1) : ?>
940                <label>
941                    <input type="checkbox" name="all_trees">
942                    <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to all family trees') ?>
943                </label>
944                <?php endif ?>
945            </div>
946            <div class="form-check">
947                <label>
948                    <input type="checkbox" name="new_trees">
949                    <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to new family trees') ?>
950                </label>
951            </div>
952        </div>
953        -->
954        </div>
955</form>
956