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