xref: /webtrees/resources/views/admin/trees-preferences.phtml (revision 8fcd0d32e56ee262912bbdb593202cfd1cbc1615)
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->name()) ?>">
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->name()) ?>"
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    <!-- CHART_BOX_TAGS -->
560    <div class="row form-group">
561        <label class="col-sm-3 col-form-label" for="CHART_BOX_TAGS">
562            <?= I18N::translate('Other facts to show in charts') ?>
563        </label>
564        <div class="col-sm-9">
565            <div class="input-group">
566                <?= Bootstrap4::multiSelect($all_indi_facts, explode(',', $tree->getPreference('CHART_BOX_TAGS')), ['id' => 'CHART_BOX_TAGS', 'name' => 'CHART_BOX_TAGS[]', 'class' => 'select2']) ?>
567            </div>
568            <p class="small text-muted">
569                <?= /* 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.') ?>
570            </p>
571        </div>
572    </div>
573
574    <h3><?= I18N::translate('Individual pages') ?></h3>
575
576    <!-- SHOW_RELATIVES_EVENTS -->
577    <fieldset class="form-group">
578        <div class="row">
579            <legend class="col-form-label col-sm-3">
580                <?= I18N::translate('Show the events of close relatives on the individual page') ?>
581            </legend>
582            <div class="col-sm-3">
583                <div class="form-check">
584                    <label for="_BIRT_GCHI">
585                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_GCHI" value="_BIRT_GCHI" <?= in_array('_BIRT_GCHI', $relatives_events) ? 'checked' : '' ?>>
586                        <?= I18N::translate('Birth of a grandchild') ?>
587                    </label>
588                </div>
589                <div class="form-check">
590                    <label for="_BIRT_CHIL">
591                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_CHIL" value="_BIRT_CHIL" <?= in_array('_BIRT_CHIL', $relatives_events) ? 'checked' : '' ?>>
592                        <?= I18N::translate('Birth of a child') ?>
593                    </label>
594                </div>
595                <div class="form-check">
596                    <label for="_BIRT_SIBL">
597                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_SIBL" value="_BIRT_SIBL" <?= in_array('_BIRT_SIBL', $relatives_events) ? 'checked' : '' ?>>
598                        <?= I18N::translate('Birth of a sibling') ?>
599                    </label>
600                </div>
601            </div>
602            <div class="col-sm-3">
603                <div class="form-check">
604                    <label for="_MARR_GCHI">
605                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_GCHI" value="_MARR_GCHI" <?= in_array('_MARR_GCHI', $relatives_events) ? 'checked' : '' ?>>
606                        <?= I18N::translate('Marriage of a grandchild') ?>
607                    </label>
608                </div>
609                <div class="form-check">
610                    <label for="_MARR_CHIL">
611                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_CHIL" value="_MARR_CHIL" <?= in_array('_MARR_CHIL', $relatives_events) ? 'checked' : '' ?>>
612                        <?= I18N::translate('Marriage of a child') ?>
613                    </label>
614                </div>
615                <div class="form-check">
616                    <label for="_MARR_SIBL">
617                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_SIBL" value="_MARR_SIBL" <?= in_array('_MARR_SIBL', $relatives_events) ? 'checked' : '' ?>>
618                        <?= I18N::translate('Marriage of a sibling') ?>
619                    </label>
620                </div>
621                <div class="form-check">
622                    <label for="_MARR_PARE">
623                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_PARE" value="_MARR_PARE" <?= in_array('_MARR_PARE', $relatives_events) ? 'checked' : '' ?>>
624                        <?= I18N::translate('Marriage of a parent') ?>
625                    </label>
626                </div>
627            </div>
628            <div class="col-sm-3">
629                <div class="form-check">
630                    <label for="_DEAT_GCHI">
631                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_GCHI" value="_DEAT_GCHI" <?= in_array('_DEAT_GCHI', $relatives_events) ? 'checked' : '' ?>>
632                        <?= I18N::translate('Death of a grandchild') ?>
633                    </label>
634                </div>
635                <div class="form-check">
636                    <label for="_DEAT_CHIL">
637                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_CHIL" value="_DEAT_CHIL" <?= in_array('_DEAT_CHIL', $relatives_events) ? 'checked' : '' ?>>
638                        <?= I18N::translate('Death of a child') ?>
639                    </label>
640                </div>
641                <div class="form-check">
642                    <label for="_DEAT_SIBL">
643                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_SIBL" value="_DEAT_SIBL" <?= in_array('_DEAT_SIBL', $relatives_events) ? 'checked' : '' ?>>
644                        <?= I18N::translate('Death of a sibling') ?>
645                    </label>
646                </div>
647                <div class="form-check">
648                    <label for="_DEAT_PARE">
649                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_PARE" value="_DEAT_PARE" <?= in_array('_DEAT_PARE', $relatives_events) ? 'checked' : '' ?>>
650                        <?= I18N::translate('Death of a parent') ?>
651                    </label>
652                </div>
653                <div class="form-check">
654                    <label for="_DEAT_SPOU">
655                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_SPOU" value="_DEAT_SPOU" <?= in_array('_DEAT_SPOU', $relatives_events) ? 'checked' : '' ?>>
656                        <?= I18N::translate('Death of a spouse') ?>
657                    </label>
658                </div>
659                <div class="form-check">
660                    <label for="_DEAT_GPAR">
661                        <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_GPAR" value="_DEAT_GPAR" <?= in_array('_DEAT_GPAR', $relatives_events) ? 'checked' : '' ?>>
662                        <?= I18N::translate('Death of a grand-parent') ?>
663                    </label>
664                </div>
665            </div>
666        </div>
667    </fieldset>
668
669    <!-- SHOW_FACT_ICONS -->
670    <fieldset class="form-group">
671        <div class="row">
672            <legend class="col-form-label col-sm-3">
673                <?= /* I18N: A configuration setting */ I18N::translate('Fact icons') ?>
674            </legend>
675            <div class="col-sm-9">
676        <?= view('components/radios-hide-show', ['name' => 'SHOW_FACT_ICONS', 'value' => $tree->getPreference('SHOW_FACT_ICONS')]) ?>
677                <p class="small text-muted">
678                    <?= /* I18N: Help text for the “Fact icons” configuration setting */ I18N::translate('Some themes can display icons on the “Facts and events” tab.') ?>
679                </p>
680            </div>
681        </div>
682    </fieldset>
683
684    <!-- EXPAND_NOTES -->
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('Automatically expand notes') ?>
689            </legend>
690            <div class="col-sm-9">
691        <?= view('components/radios-no-yes', ['name' => 'EXPAND_NOTES', 'value' => $tree->getPreference('EXPAND_NOTES')]) ?>
692                <p class="small text-muted">
693                    <?= /* I18N: Help text for the “Automatically expand notes” configuration setting */
694                    I18N::translate('This option controls whether or not to automatically display content of a <i>Note</i> record on the Individual page.') ?>
695                </p>
696            </div>
697        </div>
698    </fieldset>
699
700    <!-- EXPAND_SOURCES -->
701    <fieldset class="form-group">
702        <div class="row">
703            <legend class="col-form-label col-sm-3">
704                <?= /* I18N: A configuration setting */ I18N::translate('Automatically expand sources') ?>
705            </legend>
706            <div class="col-sm-9">
707        <?= view('components/radios-no-yes', ['name' => 'EXPAND_SOURCES', 'value' => $tree->getPreference('EXPAND_SOURCES')]) ?>
708                <p class="small text-muted">
709                    <?= /* I18N: Help text for the “Automatically expand sources” configuration setting */
710                    I18N::translate('This option controls whether or not to automatically display content of a <i>Source</i> record on the Individual page.') ?>
711                </p>
712            </div>
713        </div>
714    </fieldset>
715
716    <h3><?= I18N::translate('Places') ?></h3>
717
718    <!-- SHOW_PEDIGREE_PLACES -->
719    <fieldset class="form-group">
720        <div class="row">
721            <legend class="col-form-label col-sm-3">
722                <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
723                <label class="sr-only" for="SHOW_PEDIGREE_PLACES_SUFFIX">
724                    <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
725                    <?= I18N::translate('first') ?> / <?= I18N::translate('last') ?>
726                </label>
727                <label class="sr-only" for="SHOW_PEDIGREE_PLACES">
728                    <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
729                </label>
730            </legend>
731            <div class="col-sm-9">
732                <?= /* I18N: The placeholders are edit controls. Show the [first/last] [1/2/3/4/5] parts of a place name */ I18N::translate(
733                    'Show the %1$s %2$s parts of a place name.',
734                    Bootstrap4::select([
735                        '0' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'first'),
736                        '1' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'last'),
737                    ], $tree->getPreference('SHOW_PEDIGREE_PLACES_SUFFIX'), ['name' => 'SHOW_PEDIGREE_PLACES_SUFFIX']),
738                    Bootstrap4::select(FunctionsEdit::numericOptions(range(1, 9)), $tree->getPreference('SHOW_PEDIGREE_PLACES'), ['name' => 'SHOW_PEDIGREE_PLACES'])
739                ) ?>
740                <p class="small text-muted">
741                    <?= /* 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>.') ?>
742                </p>
743            </div>
744        </div>
745    </fieldset>
746
747    <!-- GEONAMES_ACCOUNT -->
748    <div class="row form-group">
749        <label class="col-sm-3 col-form-label" for="GEONAMES_ACCOUNT">
750            <?= I18N::translate('Use the GeoNames database for autocomplete on places') ?>
751        </label>
752        <div class="col-sm-9">
753            <input
754                class="form-control"
755                dir="ltr"
756                id="GEONAMES_ACCOUNT"
757                maxlength="255"
758                name="GEONAMES_ACCOUNT"
759                type="text"
760                value="<?= e($tree->getPreference('GEONAMES_ACCOUNT')) ?>"
761            >
762            <p class="small text-muted">
763                <?= /* 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.') ?>
764            </p>
765        </div>
766    </div>
767
768    <h3><?= I18N::translate('Text') ?></h3>
769
770    <!-- FORMAT_TEXT -->
771    <fieldset class="form-group">
772        <div class="row">
773            <legend class="col-form-label col-sm-3">
774                <?= /* I18N: A configuration setting */ I18N::translate('Format text and notes') ?>
775            </legend>
776            <div class="col-sm-9">
777                <?= Bootstrap4::radioButtons('FORMAT_TEXT', $formats, $tree->getPreference('FORMAT_TEXT'), true) ?>
778                <p class="small text-muted">
779                    <?= /* 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.') ?>
780                </p>
781                <p class="small text-muted">
782                    <?= /* 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.') ?>
783                </p>
784            </div>
785        </div>
786    </fieldset>
787
788    <h3><?= I18N::translate('General') ?></h3>
789
790    <!-- SHOW_GEDCOM_RECORD -->
791    <fieldset class="form-group">
792        <div class="row">
793            <legend class="col-form-label col-sm-3">
794                <?= /* I18N: A configuration setting */ I18N::translate('Allow users to see raw GEDCOM records') ?>
795            </legend>
796            <div class="col-sm-9">
797        <?= view('components/radios-no-yes', ['name' => 'SHOW_GEDCOM_RECORD', 'value' => $tree->getPreference('SHOW_GEDCOM_RECORD')]) ?>
798                <p class="small text-muted">
799                    <?= /* 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.') ?>
800                </p>
801            </div>
802        </div>
803    </fieldset>
804
805    <!-- HIDE_GEDCOM_ERRORS -->
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('GEDCOM errors') ?>
810            </legend>
811            <div class="col-sm-9">
812        <?= view('components/radios-hide-show', ['name' => 'HIDE_GEDCOM_ERRORS', 'value' => $tree->getPreference('HIDE_GEDCOM_ERRORS')]) ?>
813                <p class="small text-muted">
814                    <?= /* 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.') ?>
815                </p>
816            </div>
817        </div>
818    </fieldset>
819
820    <!-- SHOW_COUNTER -->
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('Hit counters') ?>
825            </legend>
826            <div class="col-sm-9">
827        <?= view('components/radios-hide-show', ['name' => 'SHOW_COUNTER', 'value' => $tree->getPreference('SHOW_COUNTER')]) ?>
828                <p class="small text-muted">
829                    <?= /* I18N: Help text for the “Hit counters” configuration setting */ I18N::translate('Some pages can display the number of times that they have been visited.') ?>
830                </p>
831            </div>
832        </div>
833    </fieldset>
834
835    <h3><?= /* I18N: Options for editing */ I18N::translate('Edit preferences') ?></h3>
836
837    <h3><?= I18N::translate('Facts for individual records') ?></h3>
838
839    <!-- INDI_FACTS_ADD -->
840    <div class="row form-group">
841        <label class="col-sm-3 col-form-label" for="INDI_FACTS_ADD">
842            <?= I18N::translate('All individual facts') ?>
843        </label>
844        <div class="col-sm-9">
845            <?= Bootstrap4::multiSelect($all_indi_facts, explode(',', $tree->getPreference('INDI_FACTS_ADD')), ['id' => 'INDI_FACTS_ADD', 'name' => 'INDI_FACTS_ADD[]', 'class' => 'select2']) ?>
846            <p class="small text-muted">
847                <?= /* 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.') ?>
848            </p>
849        </div>
850    </div>
851
852    <!-- INDI_FACTS_UNIQUE -->
853    <div class="row form-group">
854        <label class="col-sm-3 col-form-label" for="INDI_FACTS_UNIQUE">
855            <?= I18N::translate('Unique individual facts') ?>
856        </label>
857        <div class="col-sm-9">
858            <?= Bootstrap4::multiSelect($all_indi_facts, explode(',', $tree->getPreference('INDI_FACTS_UNIQUE')), ['id' => 'INDI_FACTS_UNIQUE', 'name' => 'INDI_FACTS_UNIQUE[]', 'class' => 'select2']) ?>
859            <p class="small text-muted">
860                <?= /* 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.') ?>
861            </p>
862        </div>
863    </div>
864
865    <!-- QUICK_REQUIRED_FACTS -->
866    <div class="row form-group">
867        <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FACTS">
868            <?= I18N::translate('Facts for new individuals') ?>
869        </label>
870        <div class="col-sm-9">
871            <?= Bootstrap4::multiSelect($all_indi_facts, explode(',', $tree->getPreference('QUICK_REQUIRED_FACTS')), ['id' => 'QUICK_REQUIRED_FACTS', 'name' => 'QUICK_REQUIRED_FACTS[]', 'class' => 'select2']) ?>
872            <p class="small text-muted">
873                <?= /* 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.') ?>
874            </p>
875        </div>
876    </div>
877
878    <!-- INDI_FACTS_QUICK -->
879    <div class="row form-group">
880        <label class="col-sm-3 col-form-label" for="INDI_FACTS_QUICK">
881            <?= I18N::translate('Quick individual facts') ?>
882        </label>
883        <div class="col-sm-9">
884            <?= Bootstrap4::multiSelect($all_indi_facts, explode(',', $tree->getPreference('INDI_FACTS_QUICK')), ['id' => 'INDI_FACTS_QUICK', 'name' => 'INDI_FACTS_QUICK[]', 'class' => 'select2']) ?>
885            <p class="small text-muted">
886                <?= /* 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.') ?>
887            </p>
888        </div>
889    </div>
890
891    <h3><?= I18N::translate('Facts for family records') ?></h3>
892
893    <!-- FAM_FACTS_ADD -->
894    <div class="row form-group">
895        <label class="col-sm-3 col-form-label" for="FAM_FACTS_ADD">
896            <?= I18N::translate('All family facts') ?>
897        </label>
898        <div class="col-sm-9">
899            <?= Bootstrap4::multiSelect($all_fam_facts, explode(',', $tree->getPreference('FAM_FACTS_ADD')), ['id' => 'FAM_FACTS_ADD', 'name' => 'FAM_FACTS_ADD[]', 'class' => 'select2']) ?>
900            <p class="small text-muted">
901                <?= /* 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.') ?>
902            </p>
903        </div>
904    </div>
905
906    <!-- FAM_FACTS_UNIQUE -->
907    <div class="row form-group">
908        <label class="col-sm-3 col-form-label" for="FAM_FACTS_UNIQUE">
909            <?= I18N::translate('Unique family facts') ?>
910        </label>
911        <div class="col-sm-9">
912            <?= Bootstrap4::multiSelect($all_fam_facts, explode(',', $tree->getPreference('FAM_FACTS_UNIQUE')), ['id' => 'FAM_FACTS_UNIQUE', 'name' => 'FAM_FACTS_UNIQUE[]', 'class' => 'select2']) ?>
913            <p class="small text-muted">
914                <?= /* 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.') ?>
915            </p>
916        </div>
917    </div>
918
919    <!-- QUICK_REQUIRED_FAMFACTS -->
920    <div class="row form-group">
921        <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FAMFACTS">
922            <?= I18N::translate('Facts for new families') ?>
923        </label>
924        <div class="col-sm-9">
925            <?= Bootstrap4::multiSelect($all_fam_facts, explode(',', $tree->getPreference('QUICK_REQUIRED_FAMFACTS')), ['id' => 'QUICK_REQUIRED_FAMFACTS', 'name' => 'QUICK_REQUIRED_FAMFACTS[]', 'class' => 'select2']) ?>
926            <p class="small text-muted">
927                <?= /* 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.') ?>
928            </p>
929        </div>
930    </div>
931
932    <!-- FAM_FACTS_QUICK -->
933    <div class="row form-group">
934        <label class="col-sm-3 col-form-label" for="FAM_FACTS_QUICK">
935            <?= I18N::translate('Quick family facts') ?>
936        </label>
937        <div class="col-sm-9">
938            <?= Bootstrap4::multiSelect($all_fam_facts, explode(',', $tree->getPreference('FAM_FACTS_QUICK')), ['id' => 'FAM_FACTS_QUICK', 'name' => 'FAM_FACTS_QUICK[]', 'class' => 'select2']) ?>
939            <p class="small text-muted">
940                <?= /* 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.') ?>
941            </p>
942        </div>
943    </div>
944
945    <h3><?= I18N::translate('Facts for source records') ?></h3>
946
947    <!-- SOUR_FACTS_ADD -->
948    <div class="row form-group">
949        <label class="col-sm-3 col-form-label" for="SOUR_FACTS_ADD">
950            <?= I18N::translate('All source facts') ?>
951        </label>
952        <div class="col-sm-9">
953            <?= Bootstrap4::multiSelect($all_sour_facts, explode(',', $tree->getPreference('SOUR_FACTS_ADD')), ['id' => 'SOUR_FACTS_ADD', 'name' => 'SOUR_FACTS_ADD[]', 'class' => 'select2']) ?>
954            <p class="small text-muted">
955                <?= /* 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.') ?>
956            </p>
957        </div>
958    </div>
959
960    <!-- SOUR_FACTS_UNIQUE -->
961    <div class="row form-group">
962        <label class="col-sm-3 col-form-label" for="SOUR_FACTS_UNIQUE">
963            <?= I18N::translate('Unique source facts') ?>
964        </label>
965        <div class="col-sm-9">
966            <?= Bootstrap4::multiSelect($all_sour_facts, explode(',', $tree->getPreference('SOUR_FACTS_UNIQUE')), ['id' => 'SOUR_FACTS_UNIQUE', 'name' => 'SOUR_FACTS_UNIQUE[]', 'class' => 'select2']) ?>
967            <p class="small text-muted">
968                <?= /* 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.') ?>
969            </p>
970        </div>
971    </div>
972
973    <!-- SOUR_FACTS_QUICK -->
974    <div class="row form-group">
975        <label class="col-sm-3 col-form-label" for="SOUR_FACTS_QUICK">
976            <?= I18N::translate('Quick source facts') ?>
977        </label>
978        <div class="col-sm-9">
979            <?= Bootstrap4::multiSelect($all_sour_facts, explode(',', $tree->getPreference('SOUR_FACTS_QUICK')), ['id' => 'SOUR_FACTS_QUICK', 'name' => 'SOUR_FACTS_QUICK[]', 'class' => 'select2']) ?>
980            <p class="small text-muted">
981                <?= /* 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.') ?>
982            </p>
983        </div>
984    </div>
985
986    <h3><?= I18N::translate('Facts for repository records') ?></h3>
987
988    <!-- REPO_FACTS_ADD -->
989    <div class="row form-group">
990        <label class="col-sm-3 col-form-label" for="REPO_FACTS_ADD">
991            <?= I18N::translate('All repository facts') ?>
992        </label>
993        <div class="col-sm-9">
994            <?= Bootstrap4::multiSelect($all_repo_facts, explode(',', $tree->getPreference('REPO_FACTS_ADD')), ['id' => 'REPO_FACTS_ADD', 'name' => 'REPO_FACTS_ADD[]', 'class' => 'select2']) ?>
995            <p class="small text-muted">
996                <?= /* 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.') ?>
997            </p>
998        </div>
999    </div>
1000
1001    <!-- REPO_FACTS_UNIQUE -->
1002    <div class="row form-group">
1003        <label class="col-sm-3 col-form-label" for="REPO_FACTS_UNIQUE">
1004            <?= I18N::translate('Unique repository facts') ?>
1005        </label>
1006        <div class="col-sm-9">
1007            <?= Bootstrap4::multiSelect($all_repo_facts, explode(',', $tree->getPreference('REPO_FACTS_UNIQUE')), ['id' => 'REPO_FACTS_UNIQUE', 'name' => 'REPO_FACTS_UNIQUE[]', 'class' => 'select2']) ?>
1008            <p class="small text-muted">
1009                <?= /* 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.') ?>
1010            </p>
1011        </div>
1012    </div>
1013
1014    <!-- REPO_FACTS_QUICK -->
1015    <div class="row form-group">
1016        <label class="col-sm-3 col-form-label" for="REPO_FACTS_QUICK">
1017            <?= I18N::translate('Quick repository facts') ?>
1018        </label>
1019        <div class="col-sm-9">
1020            <?= Bootstrap4::multiSelect($all_repo_facts, explode(',', $tree->getPreference('REPO_FACTS_QUICK')), ['id' => 'REPO_FACTS_QUICK', 'name' => 'REPO_FACTS_QUICK[]', 'class' => 'select2']) ?>
1021            <p class="small text-muted">
1022                <?= /* 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.') ?>
1023            </p>
1024        </div>
1025    </div>
1026
1027    <h3><?= I18N::translate('Advanced fact preferences') ?></h3>
1028
1029    <!-- ADVANCED_NAME_FACTS -->
1030    <div class="row form-group">
1031        <label class="col-sm-3 col-form-label" for="ADVANCED_NAME_FACTS">
1032            <?= I18N::translate('Advanced name facts') ?>
1033        </label>
1034        <div class="col-sm-9">
1035            <?= Bootstrap4::multiSelect($all_name_facts, explode(',', $tree->getPreference('ADVANCED_NAME_FACTS')), ['id' => 'ADVANCED_NAME_FACTS', 'name' => 'ADVANCED_NAME_FACTS[]', 'class' => 'select2']) ?>
1036            <p class="small text-muted">
1037                <?= /* 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.') ?>
1038            </p>
1039        </div>
1040    </div>
1041
1042    <!-- ADVANCED_PLAC_FACTS -->
1043    <div class="row form-group">
1044        <label class="col-sm-3 col-form-label" for="ADVANCED_PLAC_FACTS">
1045            <?= I18N::translate('Advanced place name facts') ?>
1046        </label>
1047        <div class="col-sm-9">
1048            <?= Bootstrap4::multiSelect($all_plac_facts, explode(',', $tree->getPreference('ADVANCED_PLAC_FACTS')), ['id' => 'ADVANCED_PLAC_FACTS', 'name' => 'ADVANCED_PLAC_FACTS[]', 'class' => 'select2']) ?>
1049            <p class="small text-muted">
1050                <?= /* 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.') ?>
1051            </p>
1052        </div>
1053    </div>
1054
1055    <h3><?= I18N::translate('Other preferences') ?></h3>
1056
1057    <!-- SURNAME_TRADITION -->
1058    <fieldset class="form-group">
1059        <div class="row">
1060            <legend class="col-form-label col-sm-3">
1061                <?= I18N::translate('Surname tradition') ?>
1062            </legend>
1063            <div class="col-sm-9">
1064                <?= Bootstrap4::radioButtons('SURNAME_TRADITION', $all_surname_traditions, $tree->getPreference('SURNAME_TRADITION'), false) ?>
1065                <p class="small text-muted">
1066                    <?= /* 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.') ?>
1067                </p>
1068            </div>
1069        </div>
1070    </fieldset>
1071
1072    <!-- FULL_SOURCES -->
1073    <fieldset class="form-group">
1074        <div class="row">
1075            <legend class="col-form-label col-sm-3">
1076                <?= /* I18N: A configuration setting */ I18N::translate('Use full source citations') ?>
1077            </legend>
1078            <div class="col-sm-9">
1079        <?= view('components/radios-no-yes', ['name' => 'FULL_SOURCES', 'value' => $tree->getPreference('FULL_SOURCES')]) ?>
1080                <p class="small text-muted">
1081                    <?= /* 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.') ?>
1082                </p>
1083            </div>
1084        </div>
1085    </fieldset>
1086
1087    <!-- PREFER_LEVEL2_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('Source type') ?>
1092            </legend>
1093            <div class="col-sm-9">
1094                <?= Bootstrap4::radioButtons('PREFER_LEVEL2_SOURCES', $source_types, $tree->getPreference('PREFER_LEVEL2_SOURCES'), true) ?>
1095                <p class="small text-muted">
1096                    <?= /* 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.') ?>
1097                </p>
1098            </div>
1099        </div>
1100    </fieldset>
1101
1102    <!-- NO_UPDATE_CHAN -->
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('Keep the existing “last change” information') ?>
1107            </legend>
1108            <div class="col-sm-9">
1109        <?= view('components/radios-no-yes', ['name' => 'NO_UPDATE_CHAN', 'value' => $tree->getPreference('NO_UPDATE_CHAN')]) ?>
1110                <p class="small text-muted">
1111                    <?= /* 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.') ?>
1112                </p>
1113            </div>
1114        </div>
1115    </fieldset>
1116
1117    <div class="row form-group">
1118        <div class="offset-sm-3 col-sm-9">
1119            <button type="submit" class="btn btn-primary">
1120                <?= view('icons/save') ?>
1121                <?= I18N::translate('save') ?>
1122            </button>
1123            <a class="btn btn-secondary" href="<?= e(route('admin-trees', ['ged' => $tree->name()])) ?>">
1124        <?= view('icons/cancel') ?>
1125                <?= I18N::translate('cancel') ?>
1126            </a>
1127            <!-- Coming soon
1128            <div class="form-check">
1129                <?php if ($tree_count > 1) : ?>
1130                <label>
1131                    <input type="checkbox" name="all_trees">
1132                    <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to all family trees') ?>
1133                </label>
1134                <?php endif ?>
1135            </div>
1136            <div class="form-check">
1137                <label>
1138                    <input type="checkbox" name="new_trees">
1139                    <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to new family trees') ?>
1140                </label>
1141            </div>
1142        </div>
1143        -->
1144        </div>
1145</form>
1146