xref: /webtrees/resources/views/admin/trees-preferences.phtml (revision 80dcfb364a7797c77baca388219f53d615c9bab0)
1b6c326d8SGreg Roach<?php
2b6c326d8SGreg Roach
310e06497SGreg Roachdeclare(strict_types=1);
410e06497SGreg Roach
5870365fbSGreg Roachuse Fisharebest\Webtrees\Auth;
67c2c99faSGreg Roachuse Fisharebest\Webtrees\Contracts\UserInterface;
78548b21cSGreg Roachuse Fisharebest\Webtrees\Date;
80c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
96fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees;
106fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesAction;
11b6c326d8SGreg Roachuse Fisharebest\Webtrees\I18N;
127c2c99faSGreg Roachuse Fisharebest\Webtrees\Individual;
13f882f05dSGreg Roachuse Fisharebest\Webtrees\Registry;
147c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree;
157c2c99faSGreg Roachuse Illuminate\Support\Collection;
167c2c99faSGreg Roach
177c2c99faSGreg Roach/**
183faaf002SGreg Roach * @var array<string,string>          $all_family_facts
193faaf002SGreg Roach * @var array<string,string>          $all_individual_facts
207c2c99faSGreg Roach * @var array<string,string>          $all_surname_traditions
217c2c99faSGreg Roach * @var array<int,string>             $calendar_formats
227c2c99faSGreg Roach * @var string                        $data_folder
237c2c99faSGreg Roach * @var array<int,string>             $formats
247c2c99faSGreg Roach * @var Date                          $french_calendar_end
257c2c99faSGreg Roach * @var Date                          $french_calendar_start
267c2c99faSGreg Roach * @var Date                          $gregorian_calendar_start
2736779af1SGreg Roach * @var Collection<int,UserInterface> $members
287c2c99faSGreg Roach * @var Individual|null               $pedigree_individual
297c2c99faSGreg Roach * @var array<int,string>             $privacy_options
307c2c99faSGreg Roach * @var array<int,string>             $relatives_events
317c2c99faSGreg Roach * @var array<int,string>             $source_types
327c2c99faSGreg Roach * @var array<string,string>          $surname_list_styles
337c2c99faSGreg Roach * @var string                        $title
347c2c99faSGreg Roach * @var Tree                          $tree
357c2c99faSGreg Roach * @var int                       $tree_count
367c2c99faSGreg Roach */
37b6c326d8SGreg Roach
38b6c326d8SGreg Roach?>
39dd6b2bfcSGreg Roach
406fd01894SGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?>
41dd6b2bfcSGreg Roach
42dd6b2bfcSGreg Roach<h1><?= $title ?></h1>
43dd6b2bfcSGreg Roach
446fd01894SGreg Roach<form method="post" action="<?= e(route(TreePreferencesAction::class, ['tree' => $tree->name()])) ?>" class="form-horizontal">
45fc75825cSGreg Roach    <h2><?= I18N::translate('General') ?></h2>
46dd6b2bfcSGreg Roach
47dd6b2bfcSGreg Roach    <!-- TREE TITLE -->
489e3c2cf9SGreg Roach    <div class="row mb-3">
49dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="title">
50dd6b2bfcSGreg Roach            <?= I18N::translate('Family tree title') ?>
51dd6b2bfcSGreg Roach        </label>
52dd6b2bfcSGreg Roach        <div class="col-sm-9">
53dd6b2bfcSGreg Roach            <input
54dd6b2bfcSGreg Roach                class="form-control"
55dd6b2bfcSGreg Roach                dir="auto"
56dd6b2bfcSGreg Roach                id="title"
57dd6b2bfcSGreg Roach                maxlength="255"
58dd6b2bfcSGreg Roach                name="title"
59dd6b2bfcSGreg Roach                required
60dd6b2bfcSGreg Roach                type="text"
61dd6b2bfcSGreg Roach                value="<?= e($tree->getPreference('title')) ?>"
62dd6b2bfcSGreg Roach            >
63dd6b2bfcSGreg Roach        </div>
64dd6b2bfcSGreg Roach    </div>
65dd6b2bfcSGreg Roach
66dd6b2bfcSGreg Roach    <!-- TREE URL / FILENAME -->
67590a0393SGreg Roach    <?php if (Auth::isAdmin()) : ?>
689e3c2cf9SGreg Roach        <div class="row mb-3">
69dd6b2bfcSGreg Roach            <label class="col-sm-3 col-form-label" for="gedcom">
70dd6b2bfcSGreg Roach                <?= I18N::translate('URL') ?>
71dd6b2bfcSGreg Roach            </label>
72dd6b2bfcSGreg Roach            <div class="col-sm-9">
73dd6b2bfcSGreg Roach                <div class="input-group" dir="ltr">
74a3c95e78SGreg Roach                    <span class="input-group-text" dir="ltr">
75e252129fSGreg Roach                        <?= e(explode('{tree}', rawurldecode(route('example')))[0]) ?>
76dd6b2bfcSGreg Roach                    </span>
77315eb316SGreg Roach
787dca5265SGreg Roach                    <input class="form-control" dir="ltr" id="gedcom" maxlength="255" name="gedcom" required="required" type="text" value="<?= e($tree->name()) ?>">
79315eb316SGreg Roach
80e252129fSGreg Roach                    <span class="input-group-text" dir="ltr">
81e252129fSGreg Roach                        <?= e(explode('{tree}', rawurldecode(route('example')))[1]) ?>
82e252129fSGreg Roach                    </span>
83e252129fSGreg Roach                </div>
84315eb316SGreg Roach
85315eb316SGreg Roach                <div class="form-text">
86dd6b2bfcSGreg Roach                    <?= /* I18N: help text for family tree / GEDCOM file names */ I18N::translate('Avoid spaces and punctuation. A family name might be a good choice.') ?>
87315eb316SGreg Roach                </div>
88dd6b2bfcSGreg Roach            </div>
89dd6b2bfcSGreg Roach        </div>
90590a0393SGreg Roach    <?php endif ?>
91dd6b2bfcSGreg Roach
92dd6b2bfcSGreg Roach    <!-- PEDIGREE_ROOT_ID -->
939e3c2cf9SGreg Roach    <div class="row mb-3">
94dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="PEDIGREE_ROOT_ID">
95dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Default individual') ?>
96dd6b2bfcSGreg Roach        </label>
97dd6b2bfcSGreg Roach        <div class="col-sm-9">
98b6c326d8SGreg Roach            <?= view('components/select-individual', ['name' => 'PEDIGREE_ROOT_ID', 'individual' => $pedigree_individual, 'tree' => $tree]) ?>
99315eb316SGreg Roach            <div class="form-text">
100dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Default individual” configuration setting */ I18N::translate('This individual will be selected by default when viewing charts and reports.') ?>
101315eb316SGreg Roach            </div>
102dd6b2bfcSGreg Roach        </div>
103dd6b2bfcSGreg Roach    </div>
104dd6b2bfcSGreg Roach
105dd6b2bfcSGreg Roach    <!-- CALENDAR_FORMAT -->
1069e3c2cf9SGreg Roach    <fieldset class="row mb-3">
107dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
108dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?>
109315eb316SGreg Roach            <label class="visually-hidden" for="CALENDAR_FORMAT0">
110dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 1
111dd6b2bfcSGreg Roach            </label>
112315eb316SGreg Roach            <label class="visually-hidden" for="CALENDAR_FORMAT1">
113dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 2
114dd6b2bfcSGreg Roach            </label>
115dd6b2bfcSGreg Roach        </legend>
116dd6b2bfcSGreg Roach        <div class="col-sm-9">
117b6c326d8SGreg Roach            <div class="row">
118b681e140SGreg Roach                <div class="col-sm-6">
119f882f05dSGreg Roach                    <?= view('components/select', ['name' => 'CALENDAR_FORMAT0', 'selected' => $calendar_formats[0], 'options' => ['none' => I18N::translate('No calendar conversion')] + Registry::calendarDateFactory()->supportedCalendars()]) ?>
120dd6b2bfcSGreg Roach                </div>
121b681e140SGreg Roach                <div class="col-sm-6">
122f882f05dSGreg Roach                    <?= view('components/select', ['name' => 'CALENDAR_FORMAT1', 'selected' => $calendar_formats[1], 'options' => ['none' => I18N::translate('No calendar conversion')] + Registry::calendarDateFactory()->supportedCalendars()]) ?>
123dd6b2bfcSGreg Roach                </div>
124dd6b2bfcSGreg Roach            </div>
125315eb316SGreg Roach            <div class="form-text">
126dd6b2bfcSGreg 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.') ?>
127315eb316SGreg Roach            </div>
128315eb316SGreg Roach            <div class="form-text">
12966ecd017SGreg 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(), $french_calendar_end->display(), $gregorian_calendar_start->display()) ?>
130315eb316SGreg Roach            </div>
131315eb316SGreg Roach            <div class="form-text">
132dd6b2bfcSGreg 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.') ?>
133dd6b2bfcSGreg Roach            </div>
134dd6b2bfcSGreg Roach        </div>
135dd6b2bfcSGreg Roach    </fieldset>
136dd6b2bfcSGreg Roach
137dd6b2bfcSGreg Roach    <!-- GENERATE_UIDS -->
1389e3c2cf9SGreg Roach    <fieldset class="row mb-3">
139dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
140dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Add unique identifiers') ?>
141dd6b2bfcSGreg Roach        </legend>
142dd6b2bfcSGreg Roach        <div class="col-sm-9">
143b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'GENERATE_UIDS', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('GENERATE_UIDS')]) ?>
144315eb316SGreg Roach            <div class="form-text">
145dd6b2bfcSGreg 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.') ?>
146dd6b2bfcSGreg Roach            </div>
147dd6b2bfcSGreg Roach        </div>
148dd6b2bfcSGreg Roach    </fieldset>
149dd6b2bfcSGreg Roach
150fc75825cSGreg Roach    <h2><?= I18N::translate('Contact information') ?></h2>
151dd6b2bfcSGreg Roach
152dd6b2bfcSGreg Roach    <!-- CONTACT_USER_ID -->
1539e3c2cf9SGreg Roach    <div class="row mb-3">
154dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="CONTACT_USER_ID">
155dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Genealogy contact') ?>
156dd6b2bfcSGreg Roach        </label>
157dd6b2bfcSGreg Roach        <div class="col-sm-9">
1584b9213b3SGreg Roach            <select id="CONTACT_USER_ID" name="CONTACT_USER_ID" class="form-select">
159027478c2SGreg Roach                <option value="">&nbsp;</option>
160dd6b2bfcSGreg Roach                <?php foreach ($members as $member) : ?>
161895230eeSGreg Roach                    <option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('CONTACT_USER_ID') === $member->id() ? 'selected' : '' ?>>
162c65e00b4SGreg Roach                        <?= e($member->realName()) ?> - <?= e($member->userName()) ?>
163dd6b2bfcSGreg Roach                    </option>
164dd6b2bfcSGreg Roach                <?php endforeach ?>
165dd6b2bfcSGreg Roach            </select>
166315eb316SGreg Roach            <div class="form-text">
167dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Genealogy contact” configuration setting */ I18N::translate('The individual to contact about the genealogy data on this website.') ?>
168315eb316SGreg Roach            </div>
169dd6b2bfcSGreg Roach        </div>
170dd6b2bfcSGreg Roach    </div>
171dd6b2bfcSGreg Roach
172dd6b2bfcSGreg Roach    <!-- WEBMASTER_USER_ID -->
1739e3c2cf9SGreg Roach    <div class="row mb-3">
174dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="WEBMASTER_USER_ID">
175dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Technical help contact') ?>
176dd6b2bfcSGreg Roach        </label>
177dd6b2bfcSGreg Roach        <div class="col-sm-9">
1784b9213b3SGreg Roach            <select id="WEBMASTER_USER_ID" name="WEBMASTER_USER_ID" class="form-select">
179027478c2SGreg Roach                <option value="">&nbsp;</option>
180dd6b2bfcSGreg Roach                <?php foreach ($members as $member) : ?>
181895230eeSGreg Roach                    <option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('WEBMASTER_USER_ID') === $member->id() ? 'selected' : '' ?>>
182c65e00b4SGreg Roach                        <?= e($member->realName()) ?> - <?= e($member->userName()) ?>
183dd6b2bfcSGreg Roach                    </option>
184dd6b2bfcSGreg Roach                <?php endforeach ?>
185dd6b2bfcSGreg Roach            </select>
186315eb316SGreg Roach            <div class="form-text">
187dd6b2bfcSGreg 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.') ?>
188315eb316SGreg Roach            </div>
189dd6b2bfcSGreg Roach        </div>
190dd6b2bfcSGreg Roach    </div>
191dd6b2bfcSGreg Roach
192fc75825cSGreg Roach    <h2><?= I18N::translate('Website') ?></h2>
193dd6b2bfcSGreg Roach
194dd6b2bfcSGreg Roach    <!-- META_TITLE -->
1959e3c2cf9SGreg Roach    <div class="row mb-3">
196dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="META_TITLE">
197dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Add to TITLE header tag') ?>
198dd6b2bfcSGreg Roach        </label>
199dd6b2bfcSGreg Roach        <div class="col-sm-9">
200dd6b2bfcSGreg Roach            <input
201dd6b2bfcSGreg Roach                class="form-control"
202dd6b2bfcSGreg Roach                id="META_TITLE"
203dd6b2bfcSGreg Roach                maxlength="255"
204dd6b2bfcSGreg Roach                name="META_TITLE"
205dd6b2bfcSGreg Roach                type="text"
206dd6b2bfcSGreg Roach                value="<?= e($tree->getPreference('META_TITLE')) ?>"
207dd6b2bfcSGreg Roach            >
208315eb316SGreg Roach            <div class="form-text">
209dd6b2bfcSGreg 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.') ?>
210315eb316SGreg Roach            </div>
211dd6b2bfcSGreg Roach        </div>
212dd6b2bfcSGreg Roach    </div>
213dd6b2bfcSGreg Roach
214dd6b2bfcSGreg Roach    <!-- META_DESCRIPTION -->
2159e3c2cf9SGreg Roach    <div class="row mb-3">
216dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="META_DESCRIPTION">
217dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Description META tag') ?>
218dd6b2bfcSGreg Roach        </label>
219dd6b2bfcSGreg Roach        <div class="col-sm-9">
220dd6b2bfcSGreg Roach            <input
221dd6b2bfcSGreg Roach                class="form-control"
222dd6b2bfcSGreg Roach                id="META_DESCRIPTION"
223dd6b2bfcSGreg Roach                maxlength="255"
224dd6b2bfcSGreg Roach                name="META_DESCRIPTION"
225dd6b2bfcSGreg Roach                type="text"
226dd6b2bfcSGreg Roach                value="<?= e($tree->getPreference('META_DESCRIPTION')) ?>"
227dd6b2bfcSGreg Roach            >
228315eb316SGreg Roach            <div class="form-text">
2292406e0e0SGreg Roach                <?= /* I18N: Help text for the “Description META tag” configuration setting */ I18N::translate('Search engines may use this description of your site in their search results.') ?>
230315eb316SGreg Roach            </div>
231dd6b2bfcSGreg Roach        </div>
232dd6b2bfcSGreg Roach    </div>
233dd6b2bfcSGreg Roach
234590a0393SGreg Roach    <?php if (Auth::isAdmin()) : ?>
235fc75825cSGreg Roach        <h2><?= I18N::translate('Media folders') ?></h2>
236dd6b2bfcSGreg Roach
237dd6b2bfcSGreg Roach        <!-- MEDIA_DIRECTORY -->
2389e3c2cf9SGreg Roach        <div class="row mb-3">
239dd6b2bfcSGreg Roach            <label class="col-sm-3 col-form-label" for="MEDIA_DIRECTORY">
240dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Media folder') ?>
241dd6b2bfcSGreg Roach            </label>
242dd6b2bfcSGreg Roach            <div class="col-sm-9">
243dd6b2bfcSGreg Roach                <div class="input-group" dir="ltr">
244a3c95e78SGreg Roach                    <span class="input-group-text" dir="ltr">
24508af4a8cSGreg Roach                        <?= e($data_folder) ?>
246dd6b2bfcSGreg Roach                    </span>
247315eb316SGreg Roach
248a3c95e78SGreg Roach                    <input class="form-control" dir="ltr" id="MEDIA_DIRECTORY" maxlength="255" name="MEDIA_DIRECTORY" type="text" value="<?= e($tree->getPreference('MEDIA_DIRECTORY')) ?>">
249dd6b2bfcSGreg Roach                </div>
250315eb316SGreg Roach
251315eb316SGreg Roach                <div class="form-text">
252dd6b2bfcSGreg 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.') ?>
253dd6b2bfcSGreg 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.') ?>
254dd6b2bfcSGreg 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.') ?>
255315eb316SGreg Roach                </div>
256dd6b2bfcSGreg Roach            </div>
257dd6b2bfcSGreg Roach        </div>
258590a0393SGreg Roach    <?php endif ?>
259dd6b2bfcSGreg Roach
260fc75825cSGreg Roach    <h2><?= I18N::translate('Media files') ?></h2>
261dd6b2bfcSGreg Roach
262dd6b2bfcSGreg Roach    <!-- MEDIA_UPLOAD -->
2639e3c2cf9SGreg Roach    <div class="row mb-3">
264dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="MEDIA_UPLOAD">
265dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Who can upload new media files') ?>
266dd6b2bfcSGreg Roach        </label>
267dd6b2bfcSGreg Roach        <div class="col-sm-9">
268c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'MEDIA_UPLOAD', 'selected' => $tree->getPreference('MEDIA_UPLOAD'), 'options' => $privacy_options]) ?>
269315eb316SGreg Roach            <div class="form-text">
270dd6b2bfcSGreg 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.') ?>
271315eb316SGreg Roach            </div>
272dd6b2bfcSGreg Roach        </div>
273dd6b2bfcSGreg Roach    </div>
274dd6b2bfcSGreg Roach
275dd6b2bfcSGreg Roach    <!-- SHOW_MEDIA_DOWNLOAD -->
2769e3c2cf9SGreg Roach    <fieldset class="row mb-3">
277dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
278dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Show a download link in the media viewer') ?>
279dd6b2bfcSGreg Roach        </legend>
280dd6b2bfcSGreg Roach        <div class="col-sm-9">
281870365fbSGreg Roach            <?= view('components/select', ['name' => 'SHOW_MEDIA_DOWNLOAD', 'selected' => $tree->getPreference('SHOW_MEDIA_DOWNLOAD'), 'options' => Auth::accessLevelNames()]) ?>
282315eb316SGreg Roach            <div class="form-text">
283dd6b2bfcSGreg 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.') ?>
284dd6b2bfcSGreg Roach            </div>
285dd6b2bfcSGreg Roach        </div>
286dd6b2bfcSGreg Roach    </fieldset>
287dd6b2bfcSGreg Roach
288fc75825cSGreg Roach    <h2><?= I18N::translate('Thumbnail images') ?></h2>
289dd6b2bfcSGreg Roach
290dd6b2bfcSGreg Roach    <!-- SHOW_HIGHLIGHT_IMAGES -->
2919e3c2cf9SGreg Roach    <fieldset class="row mb-3">
292dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
293dd6b2bfcSGreg Roach            <?= I18N::translate('Thumbnail images') ?>
294dd6b2bfcSGreg Roach        </legend>
295dd6b2bfcSGreg Roach        <div class="col-sm-9">
296b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'SHOW_HIGHLIGHT_IMAGES', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_HIGHLIGHT_IMAGES')]) ?>
297315eb316SGreg Roach            <div class="form-text">
298dd6b2bfcSGreg Roach                <?= I18N::translate('Show thumbnail images in charts and family groups.') ?>
299dd6b2bfcSGreg Roach            </div>
300dd6b2bfcSGreg Roach        </div>
301dd6b2bfcSGreg Roach    </fieldset>
302dd6b2bfcSGreg Roach
303dd6b2bfcSGreg Roach    <!-- USE_SILHOUETTE -->
3049e3c2cf9SGreg Roach    <fieldset class="row mb-3">
305dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
306dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Use silhouettes') ?>
307dd6b2bfcSGreg Roach        </legend>
308dd6b2bfcSGreg Roach        <div class="col-sm-9">
309b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'USE_SILHOUETTE', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('USE_SILHOUETTE')]) ?>
310315eb316SGreg Roach            <div class="form-text">
311dd6b2bfcSGreg 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.') ?>
312dd6b2bfcSGreg Roach            </div>
313dd6b2bfcSGreg Roach        </div>
314dd6b2bfcSGreg Roach    </fieldset>
315dd6b2bfcSGreg Roach
316fc75825cSGreg Roach    <h2><?= I18N::translate('Watermarks') ?></h2>
317dd6b2bfcSGreg Roach
318dd6b2bfcSGreg Roach    <!-- SHOW_NO_WATERMARK -->
3199e3c2cf9SGreg Roach    <div class="row mb-3">
320dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="SHOW_NO_WATERMARK">
321dd6b2bfcSGreg Roach            <?= I18N::translate('Images without watermarks') ?>
322dd6b2bfcSGreg Roach        </label>
323dd6b2bfcSGreg Roach        <div class="col-sm-9">
324870365fbSGreg Roach            <?= view('components/select', ['name' => 'SHOW_NO_WATERMARK', 'selected' => $tree->getPreference('SHOW_NO_WATERMARK'), 'options' => Auth::accessLevelNames()]) ?>
325315eb316SGreg Roach            <div class="form-text">
326dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Images without watermarks” configuration setting */ I18N::translate('Watermarks are optional and normally shown just to visitors.') ?>
327315eb316SGreg Roach            </div>
328dd6b2bfcSGreg Roach        </div>
329dd6b2bfcSGreg Roach    </div>
330dd6b2bfcSGreg Roach
331fc75825cSGreg Roach    <h2><?= I18N::translate('Lists') ?></h2>
332dd6b2bfcSGreg Roach
333dd6b2bfcSGreg Roach    <!-- SURNAME_LIST_STYLE -->
3349e3c2cf9SGreg Roach    <div class="row mb-3">
335dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="SURNAME_LIST_STYLE">
336dd6b2bfcSGreg Roach            <?= I18N::translate('Surname list style') ?>
337dd6b2bfcSGreg Roach        </label>
338dd6b2bfcSGreg Roach        <div class="col-sm-9">
339c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'SURNAME_LIST_STYLE', 'selected' => $tree->getPreference('SURNAME_LIST_STYLE'), 'options' => $surname_list_styles]) ?>
340315eb316SGreg Roach            <div class="form-text">
341315eb316SGreg Roach            </div>
342dd6b2bfcSGreg Roach        </div>
343dd6b2bfcSGreg Roach    </div>
344dd6b2bfcSGreg Roach
345dd6b2bfcSGreg Roach    <!-- SUBLIST_TRIGGER_I -->
3469e3c2cf9SGreg Roach    <div class="row mb-3">
347dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="SUBLIST_TRIGGER_I">
348dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Maximum number of surnames on individual list') ?>
349dd6b2bfcSGreg Roach        </label>
350dd6b2bfcSGreg Roach        <div class="col-sm-9">
351dd6b2bfcSGreg Roach            <input
352dd6b2bfcSGreg Roach                class="form-control"
353dd6b2bfcSGreg Roach                id="SUBLIST_TRIGGER_I"
354*80dcfb36SGreg Roach                max="99999"
355*80dcfb36SGreg Roach                min="0"
356dd6b2bfcSGreg Roach                name="SUBLIST_TRIGGER_I"
357dd6b2bfcSGreg Roach                required
358*80dcfb36SGreg Roach                type="number"
359dd6b2bfcSGreg Roach                value="<?= e($tree->getPreference('SUBLIST_TRIGGER_I')) ?>"
360dd6b2bfcSGreg Roach            >
361315eb316SGreg Roach            <div class="form-text">
362dd6b2bfcSGreg 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.') ?>
363315eb316SGreg Roach            </div>
364dd6b2bfcSGreg Roach        </div>
365dd6b2bfcSGreg Roach    </div>
366dd6b2bfcSGreg Roach
367dd6b2bfcSGreg Roach    <!-- SHOW_EST_LIST_DATES -->
3689e3c2cf9SGreg Roach    <fieldset class="row mb-3">
369dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
370dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Estimated dates for birth and death') ?>
371dd6b2bfcSGreg Roach        </legend>
372dd6b2bfcSGreg Roach        <div class="col-sm-9">
373b6c326d8SGreg 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')]) ?>
374315eb316SGreg Roach            <div class="form-text">
375dd6b2bfcSGreg 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.') ?>
376dd6b2bfcSGreg Roach            </div>
377dd6b2bfcSGreg Roach        </div>
378dd6b2bfcSGreg Roach    </fieldset>
379dd6b2bfcSGreg Roach
380dd6b2bfcSGreg Roach    <!-- SHOW_LAST_CHANGE -->
3819e3c2cf9SGreg Roach    <fieldset class="row mb-3">
382dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
383dd6b2bfcSGreg Roach            <?= I18N::translate('The date and time of the last update') ?>
384dd6b2bfcSGreg Roach        </legend>
385dd6b2bfcSGreg Roach        <div class="col-sm-9">
386b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'SHOW_LAST_CHANGE', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_LAST_CHANGE')]) ?>
387315eb316SGreg Roach            <div class="form-text">
388dd6b2bfcSGreg Roach            </div>
389dd6b2bfcSGreg Roach        </div>
390dd6b2bfcSGreg Roach    </fieldset>
391dd6b2bfcSGreg Roach
392fc75825cSGreg Roach    <h2><?= I18N::translate('Charts') ?></h2>
393dd6b2bfcSGreg Roach
394dd6b2bfcSGreg Roach    <!-- SHOW_PARENTS_AGE -->
3959e3c2cf9SGreg Roach    <fieldset class="row mb-3">
396dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
397dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Age of parents next to child’s birthdate') ?>
398dd6b2bfcSGreg Roach        </legend>
399dd6b2bfcSGreg Roach        <div class="col-sm-9">
400b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'SHOW_PARENTS_AGE', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_PARENTS_AGE')]) ?>
401315eb316SGreg Roach            <div class="form-text">
402dd6b2bfcSGreg 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.') ?>
403dd6b2bfcSGreg Roach            </div>
404dd6b2bfcSGreg Roach        </div>
405dd6b2bfcSGreg Roach    </fieldset>
406dd6b2bfcSGreg Roach
407dd6b2bfcSGreg Roach    <!-- CHART_BOX_TAGS -->
4089e3c2cf9SGreg Roach    <div class="row mb-3">
409dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="CHART_BOX_TAGS">
410dd6b2bfcSGreg Roach            <?= I18N::translate('Other facts to show in charts') ?>
411dd6b2bfcSGreg Roach        </label>
412dd6b2bfcSGreg Roach        <div class="col-sm-9">
413dd6b2bfcSGreg Roach            <div class="input-group">
414c8d78f19SGreg Roach                <?= view('components/select', ['name' => 'CHART_BOX_TAGS[]', 'id' => 'CHART_BOX_TAGS', 'selected' => explode(',', $tree->getPreference('CHART_BOX_TAGS')), 'options' => $all_individual_facts, 'class' => 'tom-select']) ?>
415dd6b2bfcSGreg Roach            </div>
416dd6b2bfcSGreg Roach        </div>
417dd6b2bfcSGreg Roach    </div>
418dd6b2bfcSGreg Roach
419fc75825cSGreg Roach    <h2><?= I18N::translate('Individual pages') ?></h2>
420dd6b2bfcSGreg Roach
421dd6b2bfcSGreg Roach    <!-- SHOW_RELATIVES_EVENTS -->
4229e3c2cf9SGreg Roach    <fieldset class="row mb-3">
423dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
424dd6b2bfcSGreg Roach            <?= I18N::translate('Show the events of close relatives on the individual page') ?>
425dd6b2bfcSGreg Roach        </legend>
426dd6b2bfcSGreg Roach        <div class="col-sm-3">
427dd6b2bfcSGreg Roach            <div class="form-check">
428dd6b2bfcSGreg Roach                <label for="_BIRT_GCHI">
42922d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_GCHI" value="_BIRT_GCHI" <?= in_array('_BIRT_GCHI', $relatives_events, true) ? 'checked' : '' ?>>
430dd6b2bfcSGreg Roach                    <?= I18N::translate('Birth of a grandchild') ?>
431dd6b2bfcSGreg Roach                </label>
432dd6b2bfcSGreg Roach            </div>
433dd6b2bfcSGreg Roach            <div class="form-check">
434dd6b2bfcSGreg Roach                <label for="_BIRT_CHIL">
43522d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_CHIL" value="_BIRT_CHIL" <?= in_array('_BIRT_CHIL', $relatives_events, true) ? 'checked' : '' ?>>
436dd6b2bfcSGreg Roach                    <?= I18N::translate('Birth of a child') ?>
437dd6b2bfcSGreg Roach                </label>
438dd6b2bfcSGreg Roach            </div>
439dd6b2bfcSGreg Roach            <div class="form-check">
440dd6b2bfcSGreg Roach                <label for="_BIRT_SIBL">
44122d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_SIBL" value="_BIRT_SIBL" <?= in_array('_BIRT_SIBL', $relatives_events, true) ? 'checked' : '' ?>>
442dd6b2bfcSGreg Roach                    <?= I18N::translate('Birth of a sibling') ?>
443dd6b2bfcSGreg Roach                </label>
444dd6b2bfcSGreg Roach            </div>
445dd6b2bfcSGreg Roach        </div>
446dd6b2bfcSGreg Roach        <div class="col-sm-3">
447dd6b2bfcSGreg Roach            <div class="form-check">
448dd6b2bfcSGreg Roach                <label for="_MARR_GCHI">
44922d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_GCHI" value="_MARR_GCHI" <?= in_array('_MARR_GCHI', $relatives_events, true) ? 'checked' : '' ?>>
450dd6b2bfcSGreg Roach                    <?= I18N::translate('Marriage of a grandchild') ?>
451dd6b2bfcSGreg Roach                </label>
452dd6b2bfcSGreg Roach            </div>
453dd6b2bfcSGreg Roach            <div class="form-check">
454dd6b2bfcSGreg Roach                <label for="_MARR_CHIL">
45522d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_CHIL" value="_MARR_CHIL" <?= in_array('_MARR_CHIL', $relatives_events, true) ? 'checked' : '' ?>>
456dd6b2bfcSGreg Roach                    <?= I18N::translate('Marriage of a child') ?>
457dd6b2bfcSGreg Roach                </label>
458dd6b2bfcSGreg Roach            </div>
459dd6b2bfcSGreg Roach            <div class="form-check">
460dd6b2bfcSGreg Roach                <label for="_MARR_SIBL">
46122d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_SIBL" value="_MARR_SIBL" <?= in_array('_MARR_SIBL', $relatives_events, true) ? 'checked' : '' ?>>
462dd6b2bfcSGreg Roach                    <?= I18N::translate('Marriage of a sibling') ?>
463dd6b2bfcSGreg Roach                </label>
464dd6b2bfcSGreg Roach            </div>
465dd6b2bfcSGreg Roach            <div class="form-check">
466dd6b2bfcSGreg Roach                <label for="_MARR_PARE">
46722d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_PARE" value="_MARR_PARE" <?= in_array('_MARR_PARE', $relatives_events, true) ? 'checked' : '' ?>>
468dd6b2bfcSGreg Roach                    <?= I18N::translate('Marriage of a parent') ?>
469dd6b2bfcSGreg Roach                </label>
470dd6b2bfcSGreg Roach            </div>
471dd6b2bfcSGreg Roach        </div>
472dd6b2bfcSGreg Roach        <div class="col-sm-3">
473dd6b2bfcSGreg Roach            <div class="form-check">
474dd6b2bfcSGreg Roach                <label for="_DEAT_GCHI">
47522d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_GCHI" value="_DEAT_GCHI" <?= in_array('_DEAT_GCHI', $relatives_events, true) ? 'checked' : '' ?>>
476dd6b2bfcSGreg Roach                    <?= I18N::translate('Death of a grandchild') ?>
477dd6b2bfcSGreg Roach                </label>
478dd6b2bfcSGreg Roach            </div>
479dd6b2bfcSGreg Roach            <div class="form-check">
480dd6b2bfcSGreg Roach                <label for="_DEAT_CHIL">
48122d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_CHIL" value="_DEAT_CHIL" <?= in_array('_DEAT_CHIL', $relatives_events, true) ? 'checked' : '' ?>>
482dd6b2bfcSGreg Roach                    <?= I18N::translate('Death of a child') ?>
483dd6b2bfcSGreg Roach                </label>
484dd6b2bfcSGreg Roach            </div>
485dd6b2bfcSGreg Roach            <div class="form-check">
486dd6b2bfcSGreg Roach                <label for="_DEAT_SIBL">
48722d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_SIBL" value="_DEAT_SIBL" <?= in_array('_DEAT_SIBL', $relatives_events, true) ? 'checked' : '' ?>>
488dd6b2bfcSGreg Roach                    <?= I18N::translate('Death of a sibling') ?>
489dd6b2bfcSGreg Roach                </label>
490dd6b2bfcSGreg Roach            </div>
491dd6b2bfcSGreg Roach            <div class="form-check">
492dd6b2bfcSGreg Roach                <label for="_DEAT_PARE">
49322d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_PARE" value="_DEAT_PARE" <?= in_array('_DEAT_PARE', $relatives_events, true) ? 'checked' : '' ?>>
494dd6b2bfcSGreg Roach                    <?= I18N::translate('Death of a parent') ?>
495dd6b2bfcSGreg Roach                </label>
496dd6b2bfcSGreg Roach            </div>
497dd6b2bfcSGreg Roach            <div class="form-check">
498dd6b2bfcSGreg Roach                <label for="_DEAT_SPOU">
49922d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_SPOU" value="_DEAT_SPOU" <?= in_array('_DEAT_SPOU', $relatives_events, true) ? 'checked' : '' ?>>
500dd6b2bfcSGreg Roach                    <?= I18N::translate('Death of a spouse') ?>
501dd6b2bfcSGreg Roach                </label>
502dd6b2bfcSGreg Roach            </div>
503dd6b2bfcSGreg Roach            <div class="form-check">
504dd6b2bfcSGreg Roach                <label for="_DEAT_GPAR">
50522d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_GPAR" value="_DEAT_GPAR" <?= in_array('_DEAT_GPAR', $relatives_events, true) ? 'checked' : '' ?>>
5060b73ecfcSGreg Roach                    <?= I18N::translate('Death of a grandparent') ?>
507dd6b2bfcSGreg Roach                </label>
508dd6b2bfcSGreg Roach            </div>
509dd6b2bfcSGreg Roach        </div>
510dd6b2bfcSGreg Roach    </fieldset>
511dd6b2bfcSGreg Roach
512dd6b2bfcSGreg Roach    <!-- SHOW_FACT_ICONS -->
5139e3c2cf9SGreg Roach    <fieldset class="row mb-3">
514dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
515dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Fact icons') ?>
516dd6b2bfcSGreg Roach        </legend>
517dd6b2bfcSGreg Roach        <div class="col-sm-9">
518b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'SHOW_FACT_ICONS', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_FACT_ICONS')]) ?>
519315eb316SGreg Roach            <div class="form-text">
520dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Fact icons” configuration setting */ I18N::translate('Some themes can display icons on the “Facts and events” tab.') ?>
521dd6b2bfcSGreg Roach            </div>
522dd6b2bfcSGreg Roach        </div>
523dd6b2bfcSGreg Roach    </fieldset>
524dd6b2bfcSGreg Roach
525dd6b2bfcSGreg Roach    <!-- EXPAND_NOTES -->
5269e3c2cf9SGreg Roach    <fieldset class="row mb-3">
527dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
528dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Automatically expand notes') ?>
529dd6b2bfcSGreg Roach        </legend>
530dd6b2bfcSGreg Roach        <div class="col-sm-9">
531b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'EXPAND_NOTES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('EXPAND_NOTES')]) ?>
532315eb316SGreg Roach            <div class="form-text">
533dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Automatically expand notes” configuration setting */
534dd6b2bfcSGreg Roach                I18N::translate('This option controls whether or not to automatically display content of a <i>Note</i> record on the Individual page.') ?>
535dd6b2bfcSGreg Roach            </div>
536dd6b2bfcSGreg Roach        </div>
537dd6b2bfcSGreg Roach    </fieldset>
538dd6b2bfcSGreg Roach
539dd6b2bfcSGreg Roach    <!-- EXPAND_SOURCES -->
5409e3c2cf9SGreg Roach    <fieldset class="row mb-3">
541dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
542dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Automatically expand sources') ?>
543dd6b2bfcSGreg Roach        </legend>
544dd6b2bfcSGreg Roach        <div class="col-sm-9">
545b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'EXPAND_SOURCES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('EXPAND_SOURCES')]) ?>
546315eb316SGreg Roach            <div class="form-text">
547dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Automatically expand sources” configuration setting */
548dd6b2bfcSGreg Roach                I18N::translate('This option controls whether or not to automatically display content of a <i>Source</i> record on the Individual page.') ?>
549dd6b2bfcSGreg Roach            </div>
550dd6b2bfcSGreg Roach        </div>
551dd6b2bfcSGreg Roach    </fieldset>
552dd6b2bfcSGreg Roach
553fc75825cSGreg Roach    <h2><?= I18N::translate('Places') ?></h2>
554dd6b2bfcSGreg Roach
555dd6b2bfcSGreg Roach    <!-- SHOW_PEDIGREE_PLACES -->
5569e3c2cf9SGreg Roach    <fieldset class="row mb-3">
557dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
558dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
559315eb316SGreg Roach            <label class="visually-hidden" for="SHOW_PEDIGREE_PLACES_SUFFIX">
560dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
561dd6b2bfcSGreg Roach                <?= I18N::translate('first') ?> / <?= I18N::translate('last') ?>
562dd6b2bfcSGreg Roach            </label>
563315eb316SGreg Roach            <label class="visually-hidden" for="SHOW_PEDIGREE_PLACES">
564dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
565dd6b2bfcSGreg Roach            </label>
566dd6b2bfcSGreg Roach        </legend>
567dd6b2bfcSGreg Roach        <div class="col-sm-9">
568d70512abSGreg Roach            <?= /* I18N: The placeholders are edit controls. Show the [first/last] [1/2/3/4/5] parts of a place name */ I18N::translate(
569d70512abSGreg Roach                'Show the %1$s %2$s parts of a place name.',
570824ca073SGreg Roach                view('components/select', ['name' => 'SHOW_PEDIGREE_PLACES_SUFFIX', 'selected' => $tree->getPreference('SHOW_PEDIGREE_PLACES_SUFFIX'), 'options' => ['0' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'first'), '1' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'last')]]),
571f91b18ebSGreg Roach                view('components/select-number', ['name' => 'SHOW_PEDIGREE_PLACES', 'selected' => $tree->getPreference('SHOW_PEDIGREE_PLACES'), 'options' => range(1, 9)])
572dd6b2bfcSGreg Roach            ) ?>
573315eb316SGreg Roach            <div class="form-text">
574dd6b2bfcSGreg 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>.') ?>
575dd6b2bfcSGreg Roach            </div>
576dd6b2bfcSGreg Roach        </div>
577dd6b2bfcSGreg Roach    </fieldset>
578dd6b2bfcSGreg Roach
579fc75825cSGreg Roach    <h2><?= I18N::translate('Text') ?></h2>
580dd6b2bfcSGreg Roach
581dd6b2bfcSGreg Roach    <!-- FORMAT_TEXT -->
5829e3c2cf9SGreg Roach    <fieldset class="row mb-3">
583dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
584dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Format text and notes') ?>
585dd6b2bfcSGreg Roach        </legend>
586dd6b2bfcSGreg Roach        <div class="col-sm-9">
5875d9fc484SGreg Roach            <?= view('components/radios-inline', ['name' => 'FORMAT_TEXT', 'options' => $formats, 'selected' =>  $tree->getPreference('FORMAT_TEXT')]) ?>
588315eb316SGreg Roach            <div class="form-text">
589dd6b2bfcSGreg 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.') ?>
590315eb316SGreg Roach                <br>
591dd6b2bfcSGreg 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.') ?>
592dd6b2bfcSGreg Roach            </div>
593dd6b2bfcSGreg Roach        </div>
594dd6b2bfcSGreg Roach    </fieldset>
595dd6b2bfcSGreg Roach
596fc75825cSGreg Roach    <h2><?= I18N::translate('General') ?></h2>
597dd6b2bfcSGreg Roach
598dd6b2bfcSGreg Roach    <!-- SHOW_GEDCOM_RECORD -->
5999e3c2cf9SGreg Roach    <fieldset class="row mb-3">
600dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
601dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Allow users to see raw GEDCOM records') ?>
602dd6b2bfcSGreg Roach        </legend>
603dd6b2bfcSGreg Roach        <div class="col-sm-9">
604b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'SHOW_GEDCOM_RECORD', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('SHOW_GEDCOM_RECORD')]) ?>
605315eb316SGreg Roach            <div class="form-text">
606dd6b2bfcSGreg 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.') ?>
607dd6b2bfcSGreg Roach            </div>
608dd6b2bfcSGreg Roach        </div>
609dd6b2bfcSGreg Roach    </fieldset>
610dd6b2bfcSGreg Roach
611dd6b2bfcSGreg Roach    <!-- HIDE_GEDCOM_ERRORS -->
6129e3c2cf9SGreg Roach    <fieldset class="row mb-3">
613dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
614dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('GEDCOM errors') ?>
615dd6b2bfcSGreg Roach        </legend>
616dd6b2bfcSGreg Roach        <div class="col-sm-9">
617b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'HIDE_GEDCOM_ERRORS', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('HIDE_GEDCOM_ERRORS')]) ?>
618315eb316SGreg Roach            <div class="form-text">
619dd6b2bfcSGreg 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.') ?>
620dd6b2bfcSGreg Roach            </div>
621dd6b2bfcSGreg Roach        </div>
622dd6b2bfcSGreg Roach    </fieldset>
623dd6b2bfcSGreg Roach
624dd6b2bfcSGreg Roach    <!-- SHOW_COUNTER -->
6259e3c2cf9SGreg Roach    <fieldset class="row mb-3">
626dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
627dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Hit counters') ?>
628dd6b2bfcSGreg Roach        </legend>
629dd6b2bfcSGreg Roach        <div class="col-sm-9">
630b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'SHOW_COUNTER', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_COUNTER')]) ?>
631315eb316SGreg Roach            <div class="form-text">
632dd6b2bfcSGreg 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.') ?>
633dd6b2bfcSGreg Roach            </div>
634dd6b2bfcSGreg Roach        </div>
635dd6b2bfcSGreg Roach    </fieldset>
636dd6b2bfcSGreg Roach
637fc75825cSGreg Roach    <h2><?= /* I18N: Options for editing */ I18N::translate('Edit preferences') ?></h2>
638dd6b2bfcSGreg Roach
639fc75825cSGreg Roach    <h2><?= I18N::translate('Facts for individual records') ?></h2>
640dd6b2bfcSGreg Roach
641dd6b2bfcSGreg Roach    <!-- QUICK_REQUIRED_FACTS -->
6429e3c2cf9SGreg Roach    <div class="row mb-3">
643dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FACTS">
644dd6b2bfcSGreg Roach            <?= I18N::translate('Facts for new individuals') ?>
645dd6b2bfcSGreg Roach        </label>
646dd6b2bfcSGreg Roach        <div class="col-sm-9">
647c8d78f19SGreg Roach            <?= view('components/select', ['name' => 'QUICK_REQUIRED_FACTS[]', 'id' => 'QUICK_REQUIRED_FACTS', 'selected' => explode(',', $tree->getPreference('QUICK_REQUIRED_FACTS')), 'options' => $all_individual_facts, 'class' => 'tom-select']) ?>
648dd6b2bfcSGreg Roach        </div>
649dd6b2bfcSGreg Roach    </div>
650dd6b2bfcSGreg Roach
651dd6b2bfcSGreg Roach    <!-- INDI_FACTS_QUICK -->
6529e3c2cf9SGreg Roach    <div class="row mb-3">
653dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="INDI_FACTS_QUICK">
654dd6b2bfcSGreg Roach            <?= I18N::translate('Quick individual facts') ?>
655dd6b2bfcSGreg Roach        </label>
656dd6b2bfcSGreg Roach        <div class="col-sm-9">
657c8d78f19SGreg Roach            <?= view('components/select', ['name' => 'INDI_FACTS_QUICK[]', 'id' => 'INDI_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_QUICK')), 'options' => $all_individual_facts, 'class' => 'tom-select']) ?>
658315eb316SGreg Roach            <div class="form-text">
659dd6b2bfcSGreg 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.') ?>
660315eb316SGreg Roach            </div>
661dd6b2bfcSGreg Roach        </div>
662dd6b2bfcSGreg Roach    </div>
663dd6b2bfcSGreg Roach
664fc75825cSGreg Roach    <h2><?= I18N::translate('Facts for family records') ?></h2>
665dd6b2bfcSGreg Roach
666dd6b2bfcSGreg Roach    <!-- QUICK_REQUIRED_FAMFACTS -->
6679e3c2cf9SGreg Roach    <div class="row mb-3">
668dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FAMFACTS">
669dd6b2bfcSGreg Roach            <?= I18N::translate('Facts for new families') ?>
670dd6b2bfcSGreg Roach        </label>
671dd6b2bfcSGreg Roach        <div class="col-sm-9">
672c8d78f19SGreg Roach            <?= view('components/select', ['name' => 'QUICK_REQUIRED_FAMFACTS[]', 'id' => 'QUICK_REQUIRED_FAMFACTS', 'selected' => explode(',', $tree->getPreference('QUICK_REQUIRED_FAMFACTS')), 'options' => $all_family_facts, 'class' => 'tom-select']) ?>
673dd6b2bfcSGreg Roach        </div>
674dd6b2bfcSGreg Roach    </div>
675dd6b2bfcSGreg Roach
676dd6b2bfcSGreg Roach    <!-- FAM_FACTS_QUICK -->
6779e3c2cf9SGreg Roach    <div class="row mb-3">
678dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="FAM_FACTS_QUICK">
679dd6b2bfcSGreg Roach            <?= I18N::translate('Quick family facts') ?>
680dd6b2bfcSGreg Roach        </label>
681dd6b2bfcSGreg Roach        <div class="col-sm-9">
682c8d78f19SGreg Roach            <?= view('components/select', ['name' => 'FAM_FACTS_QUICK[]', 'id' => 'FAM_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_QUICK')), 'options' => $all_family_facts, 'class' => 'tom-select']) ?>
683315eb316SGreg Roach            <div class="form-text">
684dd6b2bfcSGreg 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.') ?>
685315eb316SGreg Roach            </div>
686dd6b2bfcSGreg Roach        </div>
687dd6b2bfcSGreg Roach    </div>
688dd6b2bfcSGreg Roach
689fc75825cSGreg Roach    <h2><?= I18N::translate('Other preferences') ?></h2>
690dd6b2bfcSGreg Roach
691dd6b2bfcSGreg Roach    <!-- SURNAME_TRADITION -->
6929e3c2cf9SGreg Roach    <fieldset class="row mb-3">
693dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
694dd6b2bfcSGreg Roach            <?= I18N::translate('Surname tradition') ?>
695dd6b2bfcSGreg Roach        </legend>
696dd6b2bfcSGreg Roach        <div class="col-sm-9">
697b6c326d8SGreg Roach            <?= view('components/radios', ['name' => 'SURNAME_TRADITION', 'options' => $all_surname_traditions, 'selected' => $tree->getPreference('SURNAME_TRADITION')]) ?>
698315eb316SGreg Roach            <div class="form-text">
699dd6b2bfcSGreg 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.') ?>
700dd6b2bfcSGreg Roach            </div>
701dd6b2bfcSGreg Roach        </div>
702dd6b2bfcSGreg Roach    </fieldset>
703dd6b2bfcSGreg Roach
704dd6b2bfcSGreg Roach    <!-- NO_UPDATE_CHAN -->
7059e3c2cf9SGreg Roach    <fieldset class="row mb-3">
706dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
707dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Keep the existing “last change” information') ?>
708dd6b2bfcSGreg Roach        </legend>
709dd6b2bfcSGreg Roach        <div class="col-sm-9">
710b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'NO_UPDATE_CHAN', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('NO_UPDATE_CHAN')]) ?>
711315eb316SGreg Roach            <div class="form-text">
712dd6b2bfcSGreg 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.') ?>
713dd6b2bfcSGreg Roach            </div>
714dd6b2bfcSGreg Roach        </div>
715dd6b2bfcSGreg Roach    </fieldset>
716dd6b2bfcSGreg Roach
7179e3c2cf9SGreg Roach    <div class="row mb-3">
718dd6b2bfcSGreg Roach        <div class="offset-sm-3 col-sm-9">
719dd6b2bfcSGreg Roach            <button type="submit" class="btn btn-primary">
720dd6b2bfcSGreg Roach                <?= view('icons/save') ?>
721dd6b2bfcSGreg Roach                <?= I18N::translate('save') ?>
722dd6b2bfcSGreg Roach            </button>
7236fd01894SGreg Roach            <a class="btn btn-secondary" href="<?= e(route(ManageTrees::class, ['tree' => $tree->name()])) ?>">
724dd6b2bfcSGreg Roach                <?= view('icons/cancel') ?>
725dd6b2bfcSGreg Roach                <?= I18N::translate('cancel') ?>
726dd6b2bfcSGreg Roach            </a>
727dd6b2bfcSGreg Roach            <!-- Coming soon
728dd6b2bfcSGreg Roach            <div class="form-check">
729dd6b2bfcSGreg Roach                <?php if ($tree_count > 1) : ?>
730dd6b2bfcSGreg Roach                <label>
731dd6b2bfcSGreg Roach                    <input type="checkbox" name="all_trees">
732dd6b2bfcSGreg Roach                    <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to all family trees') ?>
733dd6b2bfcSGreg Roach                </label>
734dd6b2bfcSGreg Roach                <?php endif ?>
735dd6b2bfcSGreg Roach            </div>
736dd6b2bfcSGreg Roach            <div class="form-check">
737dd6b2bfcSGreg Roach                <label>
738dd6b2bfcSGreg Roach                    <input type="checkbox" name="new_trees">
739dd6b2bfcSGreg Roach                    <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to new family trees') ?>
740dd6b2bfcSGreg Roach                </label>
741dd6b2bfcSGreg Roach            </div>
742dd6b2bfcSGreg Roach            -->
743dd6b2bfcSGreg Roach        </div>
74481443e3cSGreg Roach    </div>
74581443e3cSGreg Roach
74681443e3cSGreg Roach    <?= csrf_field() ?>
747dd6b2bfcSGreg Roach</form>
748