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