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