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