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