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