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