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