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