xref: /webtrees/resources/views/admin/trees-preferences.phtml (revision 9b93b7c342a543e7bd55b5a09d97ba0c39fc32b0)
1<?php
2
3use Fisharebest\Webtrees\Functions\FunctionsEdit;
4use Fisharebest\Webtrees\I18N;
5
6?>
7
8<?= view('components/breadcrumbs', ['links' => [route('admin-control-panel') => I18N::translate('Control panel'), route('admin-trees') => I18N::translate('Manage family trees'), $title]]) ?>
9
10<h1><?= $title ?></h1>
11
12<form class="form-horizontal" method="post">
13    <?= csrf_field() ?>
14    <input type="hidden" name="ged" value="<?= e($tree->name()) ?>">
15
16    <input type="hidden" name="action" value="general">
17
18    <h3><?= I18N::translate('General') ?></h3>
19
20    <!-- TREE TITLE -->
21    <div class="row form-group">
22        <label class="col-sm-3 col-form-label" for="title">
23            <?= I18N::translate('Family tree title') ?>
24        </label>
25        <div class="col-sm-9">
26            <input
27                class="form-control"
28                dir="auto"
29                id="title"
30                maxlength="255"
31                name="title"
32                required
33                type="text"
34                value="<?= e($tree->getPreference('title')) ?>"
35            >
36        </div>
37    </div>
38
39    <!-- TREE URL / FILENAME -->
40    <div class="row form-group">
41        <label class="col-sm-3 col-form-label" for="gedcom">
42            <?= I18N::translate('URL') ?>
43        </label>
44        <div class="col-sm-9">
45            <div class="input-group" dir="ltr">
46                <div class="input-group-append">
47                    <span class="input-group-text" dir="ltr">
48                        <?= e($base_url) ?>?ged=
49                    </span>
50                </div>
51                <input class="form-control" dir="ltr" id="gedcom" maxlength="255" name="gedcom" required type="text" value="<?= e($tree->name()) ?>">
52            </div>
53            <p class="small text-muted">
54                <?= /* I18N: help text for family tree / GEDCOM file names */ I18N::translate('Avoid spaces and punctuation. A family name might be a good choice.') ?>
55            </p>
56        </div>
57    </div>
58
59    <!-- LANGUAGE -->
60    <div class="row form-group">
61        <label class="col-sm-3 col-form-label" for="LANGUAGE">
62            <?= /* I18N: A configuration setting */ I18N::translate('Language') ?>
63        </label>
64        <div class="col-sm-9">
65            <select id="LANGUAGE" name="LANGUAGE" class="form-control">
66                <?php foreach (I18N::activeLocales() as $active_locale) : ?>
67                    <option value="<?= $active_locale->languageTag() ?>" <?= $tree->getPreference('LANGUAGE') === $active_locale->languageTag() ? 'selected' : '' ?>>
68                        <?= $active_locale->endonym() ?>
69                    </option>
70                <?php endforeach ?>
71            </select>
72            <p class="small text-muted">
73                <?= /* I18N: Help text for the “Language” configuration setting */ I18N::translate('If a visitor to the website has not selected a preferred language in their browser preferences, or they have selected an unsupported language, then this language will be used. Typically this applies to search engines.') ?>
74            </p>
75        </div>
76    </div>
77
78    <!-- PEDIGREE_ROOT_ID -->
79    <div class="row form-group">
80        <label class="col-sm-3 col-form-label" for="PEDIGREE_ROOT_ID">
81            <?= /* I18N: A configuration setting */ I18N::translate('Default individual') ?>
82        </label>
83        <div class="col-sm-9">
84            <?= view('components/select-individual', ['name' => 'PEDIGREE_ROOT_ID', 'individual' => $pedigree_individual, 'tree' => $tree]) ?>
85            <p class="small text-muted">
86                <?= /* I18N: Help text for the “Default individual” configuration setting */ I18N::translate('This individual will be selected by default when viewing charts and reports.') ?>
87            </p>
88        </div>
89    </div>
90
91    <!-- CALENDAR_FORMAT -->
92    <fieldset class="form-group">
93        <div class="row">
94            <legend class="col-form-label col-sm-3">
95                <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?>
96                <label class="sr-only" for="CALENDAR_FORMAT0">
97                    <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 1
98                </label>
99                <label class="sr-only" for="CALENDAR_FORMAT1">
100                    <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 2
101                </label>
102            </legend>
103            <div class="col-sm-9">
104                <div class="row">
105                    <div class="col-sm-6" style="padding-left: 0;">
106                        <?= view('components/select', ['name' => 'CALENDAR_FORMAT0', 'selected' => $calendar_formats[0], 'options' => FunctionsEdit::optionsCalendarConversions()]) ?>
107                    </div>
108                    <div class="col-sm-6" style="padding-right: 0;">
109                        <?= view('components/select', ['name' => 'CALENDAR_FORMAT1', 'selected' => $calendar_formats[1], 'options' => FunctionsEdit::optionsCalendarConversions()]) ?>
110                    </div>
111                </div>
112                <p class="small text-muted">
113                    <?= /* I18N: Help text for the “Calendar conversion” configuration setting */ I18N::translate('Different calendar systems are used in different parts of the world, and many other calendar systems have been used in the past. Where possible, you should enter dates using the calendar in which the event was originally recorded. You can then specify a conversion, to show these dates in a more familiar calendar. If you regularly use two calendars, you can specify two conversions and dates will be converted to both the selected calendars.') ?>
114                </p>
115                <p class="small text-muted">
116                    <?= /* I18N: Help text for the “Calendar conversion” configuration setting */ I18N::translate('Dates are only converted if they are valid for the calendar. For example, only dates between %1$s and %2$s will be converted to the French calendar and only dates after %3$s will be converted to the Gregorian calendar.', $french_calendar_start->display(false, null, false), $french_calendar_end->display(false, null, false), $gregorian_calendar_start->display(false, null, false)) ?>
117                </p>
118                <p class="small text-muted">
119                    <?= /* I18N: Help text for the “Calendar conversion” configuration setting */ I18N::translate('In some calendars, days start at midnight. In other calendars, days start at sunset. The conversion process does not take account of the time, so for any event that occurs between sunset and midnight, the conversion between these types of calendar will be one day out.') ?>
120                </p>
121            </div>
122        </div>
123    </fieldset>
124
125    <!-- GENERATE_UIDS -->
126    <fieldset class="form-group">
127        <div class="row">
128            <legend class="col-form-label col-sm-3">
129                <?= /* I18N: A configuration setting */ I18N::translate('Add unique identifiers') ?>
130            </legend>
131            <div class="col-sm-9">
132                <?= view('components/radios-inline', ['name' => 'GENERATE_UIDS', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('GENERATE_UIDS')]) ?>
133                <p class="small text-muted">
134                    <?= /* I18N: Help text for the “Add unique identifiers” configuration setting */ I18N::translate('Unique identifiers allow the same record to be found in different family trees and in different systems. They will be added whenever records are created or updated. If you do not want unique identifiers to be displayed, you can hide them using the privacy rules.') ?>
135                </p>
136            </div>
137        </div>
138    </fieldset>
139
140    <h3><?= I18N::translate('Contact information') ?></h3>
141
142    <!-- WEBTREES_EMAIL -->
143    <div class="row form-group">
144        <label class="col-sm-3 col-form-label" for="WEBTREES_EMAIL">
145            <?= /* I18N: A configuration setting */ I18N::translate('webtrees reply address') ?>
146        </label>
147        <div class="col-sm-9">
148            <input
149                class="form-control"
150                id="WEBTREES_EMAIL"
151                maxlength="255"
152                name="WEBTREES_EMAIL"
153                required
154                type="email"
155                value="<?= e($tree->getPreference('WEBTREES_EMAIL')) ?>"
156            >
157            <p class="small text-muted">
158                <?= /* I18N: Help text for the “webtrees reply address” configuration setting */ I18N::translate('Email address to be used in the “From:” field of emails that webtrees creates automatically.<br><br>webtrees can automatically create emails to notify administrators of changes that need to be reviewed. webtrees also sends notification emails to users who have requested an account.<br><br>Usually, the “From:” field of these automatically created emails is something like <i>From: webtrees-noreply@yoursite</i> to show that no response to the email is required. To guard against spam or other email abuse, some email systems require each message’s “From:” field to reflect a valid email account and will not accept messages that are apparently from account <i>webtrees-noreply</i>.') ?>
159            </p>
160        </div>
161    </div>
162
163    <!-- CONTACT_USER_ID -->
164    <div class="row form-group">
165        <label class="col-sm-3 col-form-label" for="CONTACT_USER_ID">
166            <?= /* I18N: A configuration setting */ I18N::translate('Genealogy contact') ?>
167        </label>
168        <div class="col-sm-9">
169            <select id="CONTACT_USER_ID" name="CONTACT_USER_ID" class="form-control">
170                <option value=""></option>
171                <?php foreach ($members as $member) : ?>
172                    <option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('CONTACT_USER_ID') === $member->id() ? 'selected' : '' ?>>
173                        <?= e($member->realName()) ?> - <?= e($member->userName()) ?>
174                    </option>
175                <?php endforeach ?>
176            </select>
177            <p class="small text-muted">
178                <?= /* I18N: Help text for the “Genealogy contact” configuration setting */ I18N::translate('The individual to contact about the genealogy data on this website.') ?>
179            </p>
180        </div>
181    </div>
182
183    <!-- WEBMASTER_USER_ID -->
184    <div class="row form-group">
185        <label class="col-sm-3 col-form-label" for="WEBMASTER_USER_ID">
186            <?= /* I18N: A configuration setting */ I18N::translate('Technical help contact') ?>
187        </label>
188        <div class="col-sm-9">
189            <select id="WEBMASTER_USER_ID" name="WEBMASTER_USER_ID" class="form-control">
190                <option value=""></option>
191                <?php foreach ($members as $member) : ?>
192                    <option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('WEBMASTER_USER_ID') === $member->id() ? 'selected' : '' ?>>
193                        <?= e($member->realName()) ?> - <?= e($member->userName()) ?>
194                    </option>
195                <?php endforeach ?>
196            </select>
197            <p class="small text-muted">
198                <?= /* I18N: Help text for the “Technical help contact” configuration setting */ I18N::translate('The individual to be contacted about technical questions or errors encountered on your website.') ?>
199            </p>
200        </div>
201    </div>
202
203    <h3><?= I18N::translate('Website') ?></h3>
204
205    <!-- META_TITLE -->
206    <div class="row form-group">
207        <label class="col-sm-3 col-form-label" for="META_TITLE">
208            <?= /* I18N: A configuration setting */ I18N::translate('Add to TITLE header tag') ?>
209        </label>
210        <div class="col-sm-9">
211            <input
212                class="form-control"
213                id="META_TITLE"
214                maxlength="255"
215                name="META_TITLE"
216                type="text"
217                value="<?= e($tree->getPreference('META_TITLE')) ?>"
218            >
219            <p class="small text-muted">
220                <?= /* I18N: Help text for the “Add to TITLE header tag” configuration setting */ I18N::translate('This text will be appended to each page title. It will be shown in the browser’s title bar, bookmarks, etc.') ?>
221            </p>
222        </div>
223    </div>
224
225    <!-- META_DESCRIPTION -->
226    <div class="row form-group">
227        <label class="col-sm-3 col-form-label" for="META_DESCRIPTION">
228            <?= /* I18N: A configuration setting */ I18N::translate('Description META tag') ?>
229        </label>
230        <div class="col-sm-9">
231            <input
232                class="form-control"
233                id="META_DESCRIPTION"
234                maxlength="255"
235                name="META_DESCRIPTION"
236                type="text"
237                value="<?= e($tree->getPreference('META_DESCRIPTION')) ?>"
238            >
239            <p class="small text-muted">
240                <?= /* I18N: Help text for the “Description META tag” configuration setting */ I18N::translate('The value to place in the “meta description” tag in the HTML page header. Leave this field empty to use the name of the family tree.') ?>
241            </p>
242        </div>
243    </div>
244
245    <h3><?= I18N::translate('User preferences') ?></h3>
246    <!-- 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    <h3><?= I18N::translate('Text') ?></h3>
641
642    <!-- FORMAT_TEXT -->
643    <fieldset class="form-group">
644        <div class="row">
645            <legend class="col-form-label col-sm-3">
646                <?= /* I18N: A configuration setting */ I18N::translate('Format text and notes') ?>
647            </legend>
648            <div class="col-sm-9">
649                <?= view('components/radios-inline', ['name' => 'FORMAT_TEXT', 'options' => $formats, 'selected' =>  $tree->getPreference('FORMAT_TEXT')]) ?>
650                <p class="small text-muted">
651                    <?= /* 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.') ?>
652                </p>
653                <p class="small text-muted">
654                    <?= /* 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.') ?>
655                </p>
656            </div>
657        </div>
658    </fieldset>
659
660    <h3><?= I18N::translate('General') ?></h3>
661
662    <!-- SHOW_GEDCOM_RECORD -->
663    <fieldset class="form-group">
664        <div class="row">
665            <legend class="col-form-label col-sm-3">
666                <?= /* I18N: A configuration setting */ I18N::translate('Allow users to see raw GEDCOM records') ?>
667            </legend>
668            <div class="col-sm-9">
669                <?= view('components/radios-inline', ['name' => 'SHOW_GEDCOM_RECORD', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('SHOW_GEDCOM_RECORD')]) ?>
670                <p class="small text-muted">
671                    <?= /* 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.') ?>
672                </p>
673            </div>
674        </div>
675    </fieldset>
676
677    <!-- HIDE_GEDCOM_ERRORS -->
678    <fieldset class="form-group">
679        <div class="row">
680            <legend class="col-form-label col-sm-3">
681                <?= /* I18N: A configuration setting */ I18N::translate('GEDCOM errors') ?>
682            </legend>
683            <div class="col-sm-9">
684                <?= view('components/radios-inline', ['name' => 'HIDE_GEDCOM_ERRORS', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('HIDE_GEDCOM_ERRORS')]) ?>
685                <p class="small text-muted">
686                    <?= /* 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.') ?>
687                </p>
688            </div>
689        </div>
690    </fieldset>
691
692    <!-- SHOW_COUNTER -->
693    <fieldset class="form-group">
694        <div class="row">
695            <legend class="col-form-label col-sm-3">
696                <?= /* I18N: A configuration setting */ I18N::translate('Hit counters') ?>
697            </legend>
698            <div class="col-sm-9">
699                <?= view('components/radios-inline', ['name' => 'SHOW_COUNTER', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_COUNTER')]) ?>
700                <p class="small text-muted">
701                    <?= /* I18N: Help text for the “Hit counters” configuration setting */ I18N::translate('Some pages can display the number of times that they have been visited.') ?>
702                </p>
703            </div>
704        </div>
705    </fieldset>
706
707    <h3><?= /* I18N: Options for editing */ I18N::translate('Edit preferences') ?></h3>
708
709    <h3><?= I18N::translate('Facts for individual records') ?></h3>
710
711    <!-- INDI_FACTS_ADD -->
712    <div class="row form-group">
713        <label class="col-sm-3 col-form-label" for="INDI_FACTS_ADD">
714            <?= I18N::translate('All individual facts') ?>
715        </label>
716        <div class="col-sm-9">
717            <?= view('components/select', ['name' => 'INDI_FACTS_ADD[]', 'id' => 'INDI_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_ADD')), 'options' => $all_indi_facts, 'class' => 'select2']) ?>
718            <p class="small text-muted">
719                <?= /* 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.') ?>
720            </p>
721        </div>
722    </div>
723
724    <!-- INDI_FACTS_UNIQUE -->
725    <div class="row form-group">
726        <label class="col-sm-3 col-form-label" for="INDI_FACTS_UNIQUE">
727            <?= I18N::translate('Unique individual facts') ?>
728        </label>
729        <div class="col-sm-9">
730            <?= view('components/select', ['name' => 'INDI_FACTS_UNIQUE[]', 'id' => 'INDI_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_UNIQUE')), 'options' => $all_indi_facts, 'class' => 'select2']) ?>
731            <p class="small text-muted">
732                <?= /* 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.') ?>
733            </p>
734        </div>
735    </div>
736
737    <!-- QUICK_REQUIRED_FACTS -->
738    <div class="row form-group">
739        <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FACTS">
740            <?= I18N::translate('Facts for new individuals') ?>
741        </label>
742        <div class="col-sm-9">
743            <?= view('components/select', ['name' => 'QUICK_REQUIRED_FACTS[]', 'id' => 'QUICK_REQUIRED_FACTS', 'selected' => explode(',', $tree->getPreference('QUICK_REQUIRED_FACTS')), 'options' => $all_indi_facts, 'class' => 'select2']) ?>
744            <p class="small text-muted">
745                <?= /* 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.') ?>
746            </p>
747        </div>
748    </div>
749
750    <!-- INDI_FACTS_QUICK -->
751    <div class="row form-group">
752        <label class="col-sm-3 col-form-label" for="INDI_FACTS_QUICK">
753            <?= I18N::translate('Quick individual facts') ?>
754        </label>
755        <div class="col-sm-9">
756            <?= view('components/select', ['name' => 'INDI_FACTS_QUICK[]', 'id' => 'INDI_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_QUICK')), 'options' => $all_indi_facts, 'class' => 'select2']) ?>
757            <p class="small text-muted">
758                <?= /* 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.') ?>
759            </p>
760        </div>
761    </div>
762
763    <h3><?= I18N::translate('Facts for family records') ?></h3>
764
765    <!-- FAM_FACTS_ADD -->
766    <div class="row form-group">
767        <label class="col-sm-3 col-form-label" for="FAM_FACTS_ADD">
768            <?= I18N::translate('All family facts') ?>
769        </label>
770        <div class="col-sm-9">
771            <?= view('components/select', ['name' => 'FAM_FACTS_ADD[]', 'id' => 'FAM_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_ADD')), 'options' => $all_fam_facts, 'class' => 'select2']) ?>
772            <p class="small text-muted">
773                <?= /* 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.') ?>
774            </p>
775        </div>
776    </div>
777
778    <!-- FAM_FACTS_UNIQUE -->
779    <div class="row form-group">
780        <label class="col-sm-3 col-form-label" for="FAM_FACTS_UNIQUE">
781            <?= I18N::translate('Unique family facts') ?>
782        </label>
783        <div class="col-sm-9">
784            <?= view('components/select', ['name' => 'FAM_FACTS_UNIQUE[]', 'id' => 'FAM_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_UNIQUE')), 'options' => $all_fam_facts, 'class' => 'select2']) ?>
785            <p class="small text-muted">
786                <?= /* 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.') ?>
787            </p>
788        </div>
789    </div>
790
791    <!-- QUICK_REQUIRED_FAMFACTS -->
792    <div class="row form-group">
793        <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FAMFACTS">
794            <?= I18N::translate('Facts for new families') ?>
795        </label>
796        <div class="col-sm-9">
797            <?= view('components/select', ['name' => 'QUICK_REQUIRED_FAMFACTS[]', 'id' => 'QUICK_REQUIRED_FAMFACTS', 'selected' => explode(',', $tree->getPreference('QUICK_REQUIRED_FAMFACTS')), 'options' => $all_fam_facts, 'class' => 'select2']) ?>
798            <p class="small text-muted">
799                <?= /* 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.') ?>
800            </p>
801        </div>
802    </div>
803
804    <!-- FAM_FACTS_QUICK -->
805    <div class="row form-group">
806        <label class="col-sm-3 col-form-label" for="FAM_FACTS_QUICK">
807            <?= I18N::translate('Quick family facts') ?>
808        </label>
809        <div class="col-sm-9">
810            <?= view('components/select', ['name' => 'FAM_FACTS_QUICK[]', 'id' => 'FAM_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_QUICK')), 'options' => $all_fam_facts, 'class' => 'select2']) ?>
811            <p class="small text-muted">
812                <?= /* 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.') ?>
813            </p>
814        </div>
815    </div>
816
817    <h3><?= I18N::translate('Facts for source records') ?></h3>
818
819    <!-- SOUR_FACTS_ADD -->
820    <div class="row form-group">
821        <label class="col-sm-3 col-form-label" for="SOUR_FACTS_ADD">
822            <?= I18N::translate('All source facts') ?>
823        </label>
824        <div class="col-sm-9">
825            <?= view('components/select', ['name' => 'SOUR_FACTS_ADD[]', 'id' => 'SOUR_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('SOUR_FACTS_ADD')), 'options' => $all_sour_facts, 'class' => 'select2']) ?>
826            <p class="small text-muted">
827                <?= /* 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.') ?>
828            </p>
829        </div>
830    </div>
831
832    <!-- SOUR_FACTS_UNIQUE -->
833    <div class="row form-group">
834        <label class="col-sm-3 col-form-label" for="SOUR_FACTS_UNIQUE">
835            <?= I18N::translate('Unique source facts') ?>
836        </label>
837        <div class="col-sm-9">
838            <?= view('components/select', ['name' => 'SOUR_FACTS_UNIQUE[]', 'id' => 'SOUR_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('SOUR_FACTS_UNIQUE')), 'options' => $all_sour_facts, 'class' => 'select2']) ?>
839            <p class="small text-muted">
840                <?= /* 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.') ?>
841            </p>
842        </div>
843    </div>
844
845    <!-- SOUR_FACTS_QUICK -->
846    <div class="row form-group">
847        <label class="col-sm-3 col-form-label" for="SOUR_FACTS_QUICK">
848            <?= I18N::translate('Quick source facts') ?>
849        </label>
850        <div class="col-sm-9">
851            <?= view('components/select', ['name' => 'SOUR_FACTS_QUICK[]', 'id' => 'SOUR_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('SOUR_FACTS_QUICK')), 'options' => $all_sour_facts, 'class' => 'select2']) ?>
852            <p class="small text-muted">
853                <?= /* 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.') ?>
854            </p>
855        </div>
856    </div>
857
858    <h3><?= I18N::translate('Facts for repository records') ?></h3>
859
860    <!-- REPO_FACTS_ADD -->
861    <div class="row form-group">
862        <label class="col-sm-3 col-form-label" for="REPO_FACTS_ADD">
863            <?= I18N::translate('All repository facts') ?>
864        </label>
865        <div class="col-sm-9">
866            <?= view('components/select', ['name' => 'REPO_FACTS_ADD[]', 'id' => 'REPO_FACTS_ADD', 'selected' => explode(',', $tree->getPreference('REPO_FACTS_ADD')), 'options' => $all_repo_facts, 'class' => 'select2']) ?>
867            <p class="small text-muted">
868                <?= /* 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.') ?>
869            </p>
870        </div>
871    </div>
872
873    <!-- REPO_FACTS_UNIQUE -->
874    <div class="row form-group">
875        <label class="col-sm-3 col-form-label" for="REPO_FACTS_UNIQUE">
876            <?= I18N::translate('Unique repository facts') ?>
877        </label>
878        <div class="col-sm-9">
879            <?= view('components/select', ['name' => 'REPO_FACTS_UNIQUE[]', 'id' => 'REPO_FACTS_UNIQUE', 'selected' => explode(',', $tree->getPreference('REPO_FACTS_UNIQUE')), 'options' => $all_repo_facts, 'class' => 'select2']) ?>
880            <p class="small text-muted">
881                <?= /* 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.') ?>
882            </p>
883        </div>
884    </div>
885
886    <!-- REPO_FACTS_QUICK -->
887    <div class="row form-group">
888        <label class="col-sm-3 col-form-label" for="REPO_FACTS_QUICK">
889            <?= I18N::translate('Quick repository facts') ?>
890        </label>
891        <div class="col-sm-9">
892            <?= view('components/select', ['name' => 'REPO_FACTS_QUICK[]', 'id' => 'REPO_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('REPO_FACTS_QUICK')), 'options' => $all_repo_facts, 'class' => 'select2']) ?>
893            <p class="small text-muted">
894                <?= /* 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.') ?>
895            </p>
896        </div>
897    </div>
898
899    <h3><?= I18N::translate('Advanced fact preferences') ?></h3>
900
901    <!-- ADVANCED_NAME_FACTS -->
902    <div class="row form-group">
903        <label class="col-sm-3 col-form-label" for="ADVANCED_NAME_FACTS">
904            <?= I18N::translate('Advanced name facts') ?>
905        </label>
906        <div class="col-sm-9">
907            <?= view('components/select', ['name' => 'ADVANCED_NAME_FACTS[]', 'id' => 'ADVANCED_NAME_FACTS', 'selected' => explode(',', $tree->getPreference('ADVANCED_NAME_FACTS')), 'options' => $all_name_facts, 'class' => 'select2']) ?>
908            <p class="small text-muted">
909                <?= /* 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.') ?>
910            </p>
911        </div>
912    </div>
913
914    <!-- ADVANCED_PLAC_FACTS -->
915    <div class="row form-group">
916        <label class="col-sm-3 col-form-label" for="ADVANCED_PLAC_FACTS">
917            <?= I18N::translate('Advanced place name facts') ?>
918        </label>
919        <div class="col-sm-9">
920            <?= view('components/select', ['name' => 'ADVANCED_PLAC_FACTS[]', 'id' => 'ADVANCED_PLAC_FACTS', 'selected' => explode(',', $tree->getPreference('ADVANCED_PLAC_FACTS')), 'options' => $all_plac_facts, 'class' => 'select2']) ?>
921            <p class="small text-muted">
922                <?= /* 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.') ?>
923            </p>
924        </div>
925    </div>
926
927    <h3><?= I18N::translate('Other preferences') ?></h3>
928
929    <!-- SURNAME_TRADITION -->
930    <fieldset class="form-group">
931        <div class="row">
932            <legend class="col-form-label col-sm-3">
933                <?= I18N::translate('Surname tradition') ?>
934            </legend>
935            <div class="col-sm-9">
936                <?= view('components/radios', ['name' => 'SURNAME_TRADITION', 'options' => $all_surname_traditions, 'selected' => $tree->getPreference('SURNAME_TRADITION')]) ?>
937                <p class="small text-muted">
938                    <?= /* 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.') ?>
939                </p>
940            </div>
941        </div>
942    </fieldset>
943
944    <!-- FULL_SOURCES -->
945    <fieldset class="form-group">
946        <div class="row">
947            <legend class="col-form-label col-sm-3">
948                <?= /* I18N: A configuration setting */ I18N::translate('Use full source citations') ?>
949            </legend>
950            <div class="col-sm-9">
951                <?= view('components/radios-inline', ['name' => 'FULL_SOURCES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('FULL_SOURCES')]) ?>
952                <p class="small text-muted">
953                    <?= /* 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.') ?>
954                </p>
955            </div>
956        </div>
957    </fieldset>
958
959    <!-- PREFER_LEVEL2_SOURCES -->
960    <fieldset class="form-group">
961        <div class="row">
962            <legend class="col-form-label col-sm-3">
963                <?= /* I18N: A configuration setting */ I18N::translate('Source type') ?>
964            </legend>
965            <div class="col-sm-9">
966                <?= view('components/radios-inline', ['name' => 'PREFER_LEVEL2_SOURCES', 'options' => $source_types, 'selected' => (int) $tree->getPreference('PREFER_LEVEL2_SOURCES')]) ?>
967                <p class="small text-muted">
968                    <?= /* 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.') ?>
969                </p>
970            </div>
971        </div>
972    </fieldset>
973
974    <!-- NO_UPDATE_CHAN -->
975    <fieldset class="form-group">
976        <div class="row">
977            <legend class="col-form-label col-sm-3">
978                <?= /* I18N: A configuration setting */ I18N::translate('Keep the existing “last change” information') ?>
979            </legend>
980            <div class="col-sm-9">
981                <?= view('components/radios-inline', ['name' => 'NO_UPDATE_CHAN', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('NO_UPDATE_CHAN')]) ?>
982                <p class="small text-muted">
983                    <?= /* 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.') ?>
984                </p>
985            </div>
986        </div>
987    </fieldset>
988
989    <div class="row form-group">
990        <div class="offset-sm-3 col-sm-9">
991            <button type="submit" class="btn btn-primary">
992                <?= view('icons/save') ?>
993                <?= I18N::translate('save') ?>
994            </button>
995            <a class="btn btn-secondary" href="<?= e(route('admin-trees', ['ged' => $tree->name()])) ?>">
996        <?= view('icons/cancel') ?>
997                <?= I18N::translate('cancel') ?>
998            </a>
999            <!-- Coming soon
1000            <div class="form-check">
1001                <?php if ($tree_count > 1) : ?>
1002                <label>
1003                    <input type="checkbox" name="all_trees">
1004                    <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to all family trees') ?>
1005                </label>
1006                <?php endif ?>
1007            </div>
1008            <div class="form-check">
1009                <label>
1010                    <input type="checkbox" name="new_trees">
1011                    <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to new family trees') ?>
1012                </label>
1013            </div>
1014        </div>
1015        -->
1016        </div>
1017</form>
1018