xref: /webtrees/resources/views/admin/trees-preferences.phtml (revision afc2d1902ecd3bf5ad093d4f0c848f540e3f1cc8)
1b6c326d8SGreg Roach<?php
2b6c326d8SGreg Roach
3870365fbSGreg Roachuse Fisharebest\Webtrees\Auth;
47c2c99faSGreg Roachuse Fisharebest\Webtrees\Contracts\UserInterface;
58548b21cSGreg Roachuse Fisharebest\Webtrees\Date;
60c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
76fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees;
86fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesAction;
9b6c326d8SGreg Roachuse Fisharebest\Webtrees\I18N;
107c2c99faSGreg Roachuse Fisharebest\Webtrees\Individual;
117c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree;
127c2c99faSGreg Roachuse Illuminate\Support\Collection;
137c2c99faSGreg Roach
147c2c99faSGreg Roach/**
153faaf002SGreg Roach * @var array<string,string>      $all_family_facts
163faaf002SGreg Roach * @var array<string,string>      $all_individual_facts
177c2c99faSGreg Roach * @var array<string,string>      $all_surname_traditions
187c2c99faSGreg Roach * @var array<int,string>         $calendar_formats
197c2c99faSGreg Roach * @var string                    $data_folder
207c2c99faSGreg Roach * @var array<int,string>         $formats
217c2c99faSGreg Roach * @var Date                      $french_calendar_end
227c2c99faSGreg Roach * @var Date                      $french_calendar_start
237c2c99faSGreg Roach * @var Date                      $gregorian_calendar_start
247c2c99faSGreg Roach * @var Collection<UserInterface> $members
257c2c99faSGreg Roach * @var Individual|null           $pedigree_individual
267c2c99faSGreg Roach * @var array<int,string>         $privacy_options
277c2c99faSGreg Roach * @var array<int,string>         $relatives_events
287c2c99faSGreg Roach * @var array<int,string>         $source_types
297c2c99faSGreg Roach * @var array<string,string>      $surname_list_styles
307c2c99faSGreg Roach * @var string                    $title
317c2c99faSGreg Roach * @var Tree                      $tree
327c2c99faSGreg Roach * @var int                       $tree_count
337c2c99faSGreg Roach */
34b6c326d8SGreg Roach
35b6c326d8SGreg Roach?>
36dd6b2bfcSGreg Roach
376fd01894SGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?>
38dd6b2bfcSGreg Roach
39dd6b2bfcSGreg Roach<h1><?= $title ?></h1>
40dd6b2bfcSGreg Roach
416fd01894SGreg Roach<form method="post" action="<?= e(route(TreePreferencesAction::class, ['tree' => $tree->name()])) ?>" class="form-horizontal">
42dd6b2bfcSGreg Roach    <?= csrf_field() ?>
43dd6b2bfcSGreg Roach
44fc75825cSGreg Roach    <h2><?= I18N::translate('General') ?></h2>
45dd6b2bfcSGreg Roach
46dd6b2bfcSGreg Roach    <!-- TREE TITLE -->
47*afc2d190SGreg Roach    <div class="row form-group mb-3">
48dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="title">
49dd6b2bfcSGreg Roach            <?= I18N::translate('Family tree title') ?>
50dd6b2bfcSGreg Roach        </label>
51dd6b2bfcSGreg Roach        <div class="col-sm-9">
52dd6b2bfcSGreg Roach            <input
53dd6b2bfcSGreg Roach                class="form-control"
54dd6b2bfcSGreg Roach                dir="auto"
55dd6b2bfcSGreg Roach                id="title"
56dd6b2bfcSGreg Roach                maxlength="255"
57dd6b2bfcSGreg Roach                name="title"
58dd6b2bfcSGreg Roach                required
59dd6b2bfcSGreg Roach                type="text"
60dd6b2bfcSGreg Roach                value="<?= e($tree->getPreference('title')) ?>"
61dd6b2bfcSGreg Roach            >
62dd6b2bfcSGreg Roach        </div>
63dd6b2bfcSGreg Roach    </div>
64dd6b2bfcSGreg Roach
65dd6b2bfcSGreg Roach    <!-- TREE URL / FILENAME -->
66590a0393SGreg Roach    <?php if (Auth::isAdmin()) : ?>
67*afc2d190SGreg Roach        <div class="row form-group mb-3">
68dd6b2bfcSGreg Roach            <label class="col-sm-3 col-form-label" for="gedcom">
69dd6b2bfcSGreg Roach                <?= I18N::translate('URL') ?>
70dd6b2bfcSGreg Roach            </label>
71dd6b2bfcSGreg Roach            <div class="col-sm-9">
72dd6b2bfcSGreg Roach                <div class="input-group" dir="ltr">
73a3c95e78SGreg Roach                    <span class="input-group-text" dir="ltr">
74e252129fSGreg Roach                        <?= e(explode('{tree}', rawurldecode(route('example')))[0]) ?>
75dd6b2bfcSGreg Roach                    </span>
76315eb316SGreg Roach
777dca5265SGreg Roach                    <input class="form-control" dir="ltr" id="gedcom" maxlength="255" name="gedcom" required="required" type="text" value="<?= e($tree->name()) ?>">
78315eb316SGreg Roach
79e252129fSGreg Roach                    <span class="input-group-text" dir="ltr">
80e252129fSGreg Roach                        <?= e(explode('{tree}', rawurldecode(route('example')))[1]) ?>
81e252129fSGreg Roach                    </span>
82e252129fSGreg Roach                </div>
83315eb316SGreg Roach
84315eb316SGreg Roach                <div class="form-text">
85dd6b2bfcSGreg Roach                    <?= /* I18N: help text for family tree / GEDCOM file names */ I18N::translate('Avoid spaces and punctuation. A family name might be a good choice.') ?>
86315eb316SGreg Roach                </div>
87dd6b2bfcSGreg Roach            </div>
88dd6b2bfcSGreg Roach        </div>
89590a0393SGreg Roach    <?php endif ?>
90dd6b2bfcSGreg Roach
91dd6b2bfcSGreg Roach    <!-- PEDIGREE_ROOT_ID -->
92*afc2d190SGreg Roach    <div class="row form-group mb-3">
93dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="PEDIGREE_ROOT_ID">
94dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Default individual') ?>
95dd6b2bfcSGreg Roach        </label>
96dd6b2bfcSGreg Roach        <div class="col-sm-9">
97b6c326d8SGreg Roach            <?= view('components/select-individual', ['name' => 'PEDIGREE_ROOT_ID', 'individual' => $pedigree_individual, 'tree' => $tree]) ?>
98315eb316SGreg Roach            <div class="form-text">
99dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Default individual” configuration setting */ I18N::translate('This individual will be selected by default when viewing charts and reports.') ?>
100315eb316SGreg Roach            </div>
101dd6b2bfcSGreg Roach        </div>
102dd6b2bfcSGreg Roach    </div>
103dd6b2bfcSGreg Roach
104dd6b2bfcSGreg Roach    <!-- CALENDAR_FORMAT -->
105*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
106dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
107dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?>
108315eb316SGreg Roach            <label class="visually-hidden" for="CALENDAR_FORMAT0">
109dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 1
110dd6b2bfcSGreg Roach            </label>
111315eb316SGreg Roach            <label class="visually-hidden" for="CALENDAR_FORMAT1">
112dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Calendar conversion') ?> 2
113dd6b2bfcSGreg Roach            </label>
114dd6b2bfcSGreg Roach        </legend>
115dd6b2bfcSGreg Roach        <div class="col-sm-9">
116b6c326d8SGreg Roach            <div class="row">
117b681e140SGreg Roach                <div class="col-sm-6">
1188548b21cSGreg Roach                    <?= view('components/select', ['name' => 'CALENDAR_FORMAT0', 'selected' => $calendar_formats[0], 'options' => ['none' => I18N::translate('No calendar conversion')] + Date::calendarNames()]) ?>
119dd6b2bfcSGreg Roach                </div>
120b681e140SGreg Roach                <div class="col-sm-6">
1218548b21cSGreg Roach                    <?= view('components/select', ['name' => 'CALENDAR_FORMAT1', 'selected' => $calendar_formats[1], 'options' => ['none' => I18N::translate('No calendar conversion')] + Date::calendarNames()]) ?>
122dd6b2bfcSGreg Roach                </div>
123dd6b2bfcSGreg Roach            </div>
124315eb316SGreg Roach            <div class="form-text">
125dd6b2bfcSGreg 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.') ?>
126315eb316SGreg Roach            </div>
127315eb316SGreg Roach            <div class="form-text">
128dd6b2bfcSGreg 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)) ?>
129315eb316SGreg Roach            </div>
130315eb316SGreg Roach            <div class="form-text">
131dd6b2bfcSGreg 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.') ?>
132dd6b2bfcSGreg Roach            </div>
133dd6b2bfcSGreg Roach        </div>
134dd6b2bfcSGreg Roach    </fieldset>
135dd6b2bfcSGreg Roach
136dd6b2bfcSGreg Roach    <!-- GENERATE_UIDS -->
137*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
138dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
139dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Add unique identifiers') ?>
140dd6b2bfcSGreg Roach        </legend>
141dd6b2bfcSGreg Roach        <div class="col-sm-9">
142b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'GENERATE_UIDS', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('GENERATE_UIDS')]) ?>
143315eb316SGreg Roach            <div class="form-text">
144dd6b2bfcSGreg 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.') ?>
145dd6b2bfcSGreg Roach            </div>
146dd6b2bfcSGreg Roach        </div>
147dd6b2bfcSGreg Roach    </fieldset>
148dd6b2bfcSGreg Roach
149fc75825cSGreg Roach    <h2><?= I18N::translate('Contact information') ?></h2>
150dd6b2bfcSGreg Roach
151dd6b2bfcSGreg Roach    <!-- CONTACT_USER_ID -->
152*afc2d190SGreg Roach    <div class="row form-group mb-3">
153dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="CONTACT_USER_ID">
154dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Genealogy contact') ?>
155dd6b2bfcSGreg Roach        </label>
156dd6b2bfcSGreg Roach        <div class="col-sm-9">
157dd6b2bfcSGreg Roach            <select id="CONTACT_USER_ID" name="CONTACT_USER_ID" class="form-control">
158027478c2SGreg Roach                <option value="">&nbsp;</option>
159dd6b2bfcSGreg Roach                <?php foreach ($members as $member) : ?>
160895230eeSGreg Roach                    <option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('CONTACT_USER_ID') === $member->id() ? 'selected' : '' ?>>
161c65e00b4SGreg Roach                        <?= e($member->realName()) ?> - <?= e($member->userName()) ?>
162dd6b2bfcSGreg Roach                    </option>
163dd6b2bfcSGreg Roach                <?php endforeach ?>
164dd6b2bfcSGreg Roach            </select>
165315eb316SGreg Roach            <div class="form-text">
166dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Genealogy contact” configuration setting */ I18N::translate('The individual to contact about the genealogy data on this website.') ?>
167315eb316SGreg Roach            </div>
168dd6b2bfcSGreg Roach        </div>
169dd6b2bfcSGreg Roach    </div>
170dd6b2bfcSGreg Roach
171dd6b2bfcSGreg Roach    <!-- WEBMASTER_USER_ID -->
172*afc2d190SGreg Roach    <div class="row form-group mb-3">
173dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="WEBMASTER_USER_ID">
174dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Technical help contact') ?>
175dd6b2bfcSGreg Roach        </label>
176dd6b2bfcSGreg Roach        <div class="col-sm-9">
177dd6b2bfcSGreg Roach            <select id="WEBMASTER_USER_ID" name="WEBMASTER_USER_ID" class="form-control">
178027478c2SGreg Roach                <option value="">&nbsp;</option>
179dd6b2bfcSGreg Roach                <?php foreach ($members as $member) : ?>
180895230eeSGreg Roach                    <option value="<?= $member->id() ?>" <?= (int) $tree->getPreference('WEBMASTER_USER_ID') === $member->id() ? 'selected' : '' ?>>
181c65e00b4SGreg Roach                        <?= e($member->realName()) ?> - <?= e($member->userName()) ?>
182dd6b2bfcSGreg Roach                    </option>
183dd6b2bfcSGreg Roach                <?php endforeach ?>
184dd6b2bfcSGreg Roach            </select>
185315eb316SGreg Roach            <div class="form-text">
186dd6b2bfcSGreg 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.') ?>
187315eb316SGreg Roach            </div>
188dd6b2bfcSGreg Roach        </div>
189dd6b2bfcSGreg Roach    </div>
190dd6b2bfcSGreg Roach
191fc75825cSGreg Roach    <h2><?= I18N::translate('Website') ?></h2>
192dd6b2bfcSGreg Roach
193dd6b2bfcSGreg Roach    <!-- META_TITLE -->
194*afc2d190SGreg Roach    <div class="row form-group mb-3">
195dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="META_TITLE">
196dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Add to TITLE header tag') ?>
197dd6b2bfcSGreg Roach        </label>
198dd6b2bfcSGreg Roach        <div class="col-sm-9">
199dd6b2bfcSGreg Roach            <input
200dd6b2bfcSGreg Roach                class="form-control"
201dd6b2bfcSGreg Roach                id="META_TITLE"
202dd6b2bfcSGreg Roach                maxlength="255"
203dd6b2bfcSGreg Roach                name="META_TITLE"
204dd6b2bfcSGreg Roach                type="text"
205dd6b2bfcSGreg Roach                value="<?= e($tree->getPreference('META_TITLE')) ?>"
206dd6b2bfcSGreg Roach            >
207315eb316SGreg Roach            <div class="form-text">
208dd6b2bfcSGreg 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.') ?>
209315eb316SGreg Roach            </div>
210dd6b2bfcSGreg Roach        </div>
211dd6b2bfcSGreg Roach    </div>
212dd6b2bfcSGreg Roach
213dd6b2bfcSGreg Roach    <!-- META_DESCRIPTION -->
214*afc2d190SGreg Roach    <div class="row form-group mb-3">
215dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="META_DESCRIPTION">
216dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Description META tag') ?>
217dd6b2bfcSGreg Roach        </label>
218dd6b2bfcSGreg Roach        <div class="col-sm-9">
219dd6b2bfcSGreg Roach            <input
220dd6b2bfcSGreg Roach                class="form-control"
221dd6b2bfcSGreg Roach                id="META_DESCRIPTION"
222dd6b2bfcSGreg Roach                maxlength="255"
223dd6b2bfcSGreg Roach                name="META_DESCRIPTION"
224dd6b2bfcSGreg Roach                type="text"
225dd6b2bfcSGreg Roach                value="<?= e($tree->getPreference('META_DESCRIPTION')) ?>"
226dd6b2bfcSGreg Roach            >
227315eb316SGreg Roach            <div class="form-text">
2282406e0e0SGreg 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.') ?>
229315eb316SGreg Roach            </div>
230dd6b2bfcSGreg Roach        </div>
231dd6b2bfcSGreg Roach    </div>
232dd6b2bfcSGreg Roach
233590a0393SGreg Roach    <?php if (Auth::isAdmin()) : ?>
234fc75825cSGreg Roach        <h2><?= I18N::translate('Media folders') ?></h2>
235dd6b2bfcSGreg Roach
236dd6b2bfcSGreg Roach        <!-- MEDIA_DIRECTORY -->
237*afc2d190SGreg Roach        <div class="row form-group mb-3">
238dd6b2bfcSGreg Roach            <label class="col-sm-3 col-form-label" for="MEDIA_DIRECTORY">
239dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Media folder') ?>
240dd6b2bfcSGreg Roach            </label>
241dd6b2bfcSGreg Roach            <div class="col-sm-9">
242dd6b2bfcSGreg Roach                <div class="input-group" dir="ltr">
243a3c95e78SGreg Roach                    <span class="input-group-text" dir="ltr">
24408af4a8cSGreg Roach                        <?= e($data_folder) ?>
245dd6b2bfcSGreg Roach                    </span>
246315eb316SGreg Roach
247a3c95e78SGreg Roach                    <input class="form-control" dir="ltr" id="MEDIA_DIRECTORY" maxlength="255" name="MEDIA_DIRECTORY" type="text" value="<?= e($tree->getPreference('MEDIA_DIRECTORY')) ?>">
248dd6b2bfcSGreg Roach                </div>
249315eb316SGreg Roach
250315eb316SGreg Roach                <div class="form-text">
251dd6b2bfcSGreg 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.') ?>
252dd6b2bfcSGreg 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.') ?>
253dd6b2bfcSGreg 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.') ?>
254315eb316SGreg Roach                </div>
255dd6b2bfcSGreg Roach            </div>
256dd6b2bfcSGreg Roach        </div>
257590a0393SGreg Roach    <?php endif ?>
258dd6b2bfcSGreg Roach
259fc75825cSGreg Roach    <h2><?= I18N::translate('Media files') ?></h2>
260dd6b2bfcSGreg Roach
261dd6b2bfcSGreg Roach    <!-- MEDIA_UPLOAD -->
262*afc2d190SGreg Roach    <div class="row form-group mb-3">
263dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="MEDIA_UPLOAD">
264dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Who can upload new media files') ?>
265dd6b2bfcSGreg Roach        </label>
266dd6b2bfcSGreg Roach        <div class="col-sm-9">
267c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'MEDIA_UPLOAD', 'selected' => $tree->getPreference('MEDIA_UPLOAD'), 'options' => $privacy_options]) ?>
268315eb316SGreg Roach            <div class="form-text">
269dd6b2bfcSGreg 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.') ?>
270315eb316SGreg Roach            </div>
271dd6b2bfcSGreg Roach        </div>
272dd6b2bfcSGreg Roach    </div>
273dd6b2bfcSGreg Roach
274dd6b2bfcSGreg Roach    <!-- SHOW_MEDIA_DOWNLOAD -->
275*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
276dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
277dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Show a download link in the media viewer') ?>
278dd6b2bfcSGreg Roach        </legend>
279dd6b2bfcSGreg Roach        <div class="col-sm-9">
280870365fbSGreg Roach            <?= view('components/select', ['name' => 'SHOW_MEDIA_DOWNLOAD', 'selected' => $tree->getPreference('SHOW_MEDIA_DOWNLOAD'), 'options' => Auth::accessLevelNames()]) ?>
281315eb316SGreg Roach            <div class="form-text">
282dd6b2bfcSGreg 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.') ?>
283dd6b2bfcSGreg Roach            </div>
284dd6b2bfcSGreg Roach        </div>
285dd6b2bfcSGreg Roach    </fieldset>
286dd6b2bfcSGreg Roach
287fc75825cSGreg Roach    <h2><?= I18N::translate('Thumbnail images') ?></h2>
288dd6b2bfcSGreg Roach
289dd6b2bfcSGreg Roach    <!-- SHOW_HIGHLIGHT_IMAGES -->
290*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
291dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
292dd6b2bfcSGreg Roach            <?= I18N::translate('Thumbnail images') ?>
293dd6b2bfcSGreg Roach        </legend>
294dd6b2bfcSGreg Roach        <div class="col-sm-9">
295b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'SHOW_HIGHLIGHT_IMAGES', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_HIGHLIGHT_IMAGES')]) ?>
296315eb316SGreg Roach            <div class="form-text">
297dd6b2bfcSGreg Roach                <?= I18N::translate('Show thumbnail images in charts and family groups.') ?>
298dd6b2bfcSGreg Roach            </div>
299dd6b2bfcSGreg Roach        </div>
300dd6b2bfcSGreg Roach    </fieldset>
301dd6b2bfcSGreg Roach
302dd6b2bfcSGreg Roach    <!-- USE_SILHOUETTE -->
303*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
304dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
305dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Use silhouettes') ?>
306dd6b2bfcSGreg Roach        </legend>
307dd6b2bfcSGreg Roach        <div class="col-sm-9">
308b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'USE_SILHOUETTE', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('USE_SILHOUETTE')]) ?>
309315eb316SGreg Roach            <div class="form-text">
310dd6b2bfcSGreg 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.') ?>
311dd6b2bfcSGreg Roach            </div>
312dd6b2bfcSGreg Roach        </div>
313dd6b2bfcSGreg Roach    </fieldset>
314dd6b2bfcSGreg Roach
315fc75825cSGreg Roach    <h2><?= I18N::translate('Watermarks') ?></h2>
316dd6b2bfcSGreg Roach
317dd6b2bfcSGreg Roach    <!-- SHOW_NO_WATERMARK -->
318*afc2d190SGreg Roach    <div class="row form-group mb-3">
319dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="SHOW_NO_WATERMARK">
320dd6b2bfcSGreg Roach            <?= I18N::translate('Images without watermarks') ?>
321dd6b2bfcSGreg Roach        </label>
322dd6b2bfcSGreg Roach        <div class="col-sm-9">
323870365fbSGreg Roach            <?= view('components/select', ['name' => 'SHOW_NO_WATERMARK', 'selected' => $tree->getPreference('SHOW_NO_WATERMARK'), 'options' => Auth::accessLevelNames()]) ?>
324315eb316SGreg Roach            <div class="form-text">
325dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Images without watermarks” configuration setting */ I18N::translate('Watermarks are optional and normally shown just to visitors.') ?>
326315eb316SGreg Roach            </div>
327dd6b2bfcSGreg Roach        </div>
328dd6b2bfcSGreg Roach    </div>
329dd6b2bfcSGreg Roach
330fc75825cSGreg Roach    <h2><?= I18N::translate('Lists') ?></h2>
331dd6b2bfcSGreg Roach
332dd6b2bfcSGreg Roach    <!-- SURNAME_LIST_STYLE -->
333*afc2d190SGreg Roach    <div class="row form-group mb-3">
334dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="SURNAME_LIST_STYLE">
335dd6b2bfcSGreg Roach            <?= I18N::translate('Surname list style') ?>
336dd6b2bfcSGreg Roach        </label>
337dd6b2bfcSGreg Roach        <div class="col-sm-9">
338c9e11c2aSGreg Roach            <?= view('components/select', ['name' => 'SURNAME_LIST_STYLE', 'selected' => $tree->getPreference('SURNAME_LIST_STYLE'), 'options' => $surname_list_styles]) ?>
339315eb316SGreg Roach            <div class="form-text">
340315eb316SGreg Roach            </div>
341dd6b2bfcSGreg Roach        </div>
342dd6b2bfcSGreg Roach    </div>
343dd6b2bfcSGreg Roach
344dd6b2bfcSGreg Roach    <!-- SUBLIST_TRIGGER_I -->
345*afc2d190SGreg Roach    <div class="row form-group mb-3">
346dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="SUBLIST_TRIGGER_I">
347dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Maximum number of surnames on individual list') ?>
348dd6b2bfcSGreg Roach        </label>
349dd6b2bfcSGreg Roach        <div class="col-sm-9">
350dd6b2bfcSGreg Roach            <input
351dd6b2bfcSGreg Roach                class="form-control"
352dd6b2bfcSGreg Roach                id="SUBLIST_TRIGGER_I"
353dd6b2bfcSGreg Roach                maxlength="5"
354dd6b2bfcSGreg Roach                name="SUBLIST_TRIGGER_I"
355dd6b2bfcSGreg Roach                required
356dd6b2bfcSGreg Roach                type="text"
357dd6b2bfcSGreg Roach                value="<?= e($tree->getPreference('SUBLIST_TRIGGER_I')) ?>"
358dd6b2bfcSGreg Roach            >
359315eb316SGreg Roach            <div class="form-text">
360dd6b2bfcSGreg 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.') ?>
361315eb316SGreg Roach            </div>
362dd6b2bfcSGreg Roach        </div>
363dd6b2bfcSGreg Roach    </div>
364dd6b2bfcSGreg Roach
365dd6b2bfcSGreg Roach    <!-- SHOW_EST_LIST_DATES -->
366*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
367dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
368dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Estimated dates for birth and death') ?>
369dd6b2bfcSGreg Roach        </legend>
370dd6b2bfcSGreg Roach        <div class="col-sm-9">
371b6c326d8SGreg 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')]) ?>
372315eb316SGreg Roach            <div class="form-text">
373dd6b2bfcSGreg 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.') ?>
374dd6b2bfcSGreg Roach            </div>
375dd6b2bfcSGreg Roach        </div>
376dd6b2bfcSGreg Roach    </fieldset>
377dd6b2bfcSGreg Roach
378dd6b2bfcSGreg Roach    <!-- SHOW_LAST_CHANGE -->
379*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
380dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
381dd6b2bfcSGreg Roach            <?= I18N::translate('The date and time of the last update') ?>
382dd6b2bfcSGreg Roach        </legend>
383dd6b2bfcSGreg Roach        <div class="col-sm-9">
384b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'SHOW_LAST_CHANGE', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_LAST_CHANGE')]) ?>
385315eb316SGreg Roach            <div class="form-text">
386dd6b2bfcSGreg Roach            </div>
387dd6b2bfcSGreg Roach        </div>
388dd6b2bfcSGreg Roach    </fieldset>
389dd6b2bfcSGreg Roach
390fc75825cSGreg Roach    <h2><?= I18N::translate('Charts') ?></h2>
391dd6b2bfcSGreg Roach
392dd6b2bfcSGreg Roach    <!-- SHOW_PARENTS_AGE -->
393*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
394dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
395dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Age of parents next to child’s birthdate') ?>
396dd6b2bfcSGreg Roach        </legend>
397dd6b2bfcSGreg Roach        <div class="col-sm-9">
398b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'SHOW_PARENTS_AGE', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_PARENTS_AGE')]) ?>
399315eb316SGreg Roach            <div class="form-text">
400dd6b2bfcSGreg 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.') ?>
401dd6b2bfcSGreg Roach            </div>
402dd6b2bfcSGreg Roach        </div>
403dd6b2bfcSGreg Roach    </fieldset>
404dd6b2bfcSGreg Roach
405dd6b2bfcSGreg Roach    <!-- CHART_BOX_TAGS -->
406*afc2d190SGreg Roach    <div class="row form-group mb-3">
407dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="CHART_BOX_TAGS">
408dd6b2bfcSGreg Roach            <?= I18N::translate('Other facts to show in charts') ?>
409dd6b2bfcSGreg Roach        </label>
410dd6b2bfcSGreg Roach        <div class="col-sm-9">
411dd6b2bfcSGreg Roach            <div class="input-group">
4123faaf002SGreg Roach                <?= view('components/select', ['name' => 'CHART_BOX_TAGS[]', 'id' => 'CHART_BOX_TAGS', 'selected' => explode(',', $tree->getPreference('CHART_BOX_TAGS')), 'options' => $all_individual_facts, 'class' => 'select2']) ?>
413dd6b2bfcSGreg Roach            </div>
414315eb316SGreg Roach            <div class="form-text">
415dd6b2bfcSGreg 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.') ?>
416315eb316SGreg Roach            </div>
417dd6b2bfcSGreg Roach        </div>
418dd6b2bfcSGreg Roach    </div>
419dd6b2bfcSGreg Roach
420fc75825cSGreg Roach    <h2><?= I18N::translate('Individual pages') ?></h2>
421dd6b2bfcSGreg Roach
422dd6b2bfcSGreg Roach    <!-- SHOW_RELATIVES_EVENTS -->
423*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
424dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
425dd6b2bfcSGreg Roach            <?= I18N::translate('Show the events of close relatives on the individual page') ?>
426dd6b2bfcSGreg Roach        </legend>
427dd6b2bfcSGreg Roach        <div class="col-sm-3">
428dd6b2bfcSGreg Roach            <div class="form-check">
429dd6b2bfcSGreg Roach                <label for="_BIRT_GCHI">
43022d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_GCHI" value="_BIRT_GCHI" <?= in_array('_BIRT_GCHI', $relatives_events, true) ? 'checked' : '' ?>>
431dd6b2bfcSGreg Roach                    <?= I18N::translate('Birth of a grandchild') ?>
432dd6b2bfcSGreg Roach                </label>
433dd6b2bfcSGreg Roach            </div>
434dd6b2bfcSGreg Roach            <div class="form-check">
435dd6b2bfcSGreg Roach                <label for="_BIRT_CHIL">
43622d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_CHIL" value="_BIRT_CHIL" <?= in_array('_BIRT_CHIL', $relatives_events, true) ? 'checked' : '' ?>>
437dd6b2bfcSGreg Roach                    <?= I18N::translate('Birth of a child') ?>
438dd6b2bfcSGreg Roach                </label>
439dd6b2bfcSGreg Roach            </div>
440dd6b2bfcSGreg Roach            <div class="form-check">
441dd6b2bfcSGreg Roach                <label for="_BIRT_SIBL">
44222d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_BIRT_SIBL" value="_BIRT_SIBL" <?= in_array('_BIRT_SIBL', $relatives_events, true) ? 'checked' : '' ?>>
443dd6b2bfcSGreg Roach                    <?= I18N::translate('Birth of a sibling') ?>
444dd6b2bfcSGreg Roach                </label>
445dd6b2bfcSGreg Roach            </div>
446dd6b2bfcSGreg Roach        </div>
447dd6b2bfcSGreg Roach        <div class="col-sm-3">
448dd6b2bfcSGreg Roach            <div class="form-check">
449dd6b2bfcSGreg Roach                <label for="_MARR_GCHI">
45022d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_GCHI" value="_MARR_GCHI" <?= in_array('_MARR_GCHI', $relatives_events, true) ? 'checked' : '' ?>>
451dd6b2bfcSGreg Roach                    <?= I18N::translate('Marriage of a grandchild') ?>
452dd6b2bfcSGreg Roach                </label>
453dd6b2bfcSGreg Roach            </div>
454dd6b2bfcSGreg Roach            <div class="form-check">
455dd6b2bfcSGreg Roach                <label for="_MARR_CHIL">
45622d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_CHIL" value="_MARR_CHIL" <?= in_array('_MARR_CHIL', $relatives_events, true) ? 'checked' : '' ?>>
457dd6b2bfcSGreg Roach                    <?= I18N::translate('Marriage of a child') ?>
458dd6b2bfcSGreg Roach                </label>
459dd6b2bfcSGreg Roach            </div>
460dd6b2bfcSGreg Roach            <div class="form-check">
461dd6b2bfcSGreg Roach                <label for="_MARR_SIBL">
46222d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_SIBL" value="_MARR_SIBL" <?= in_array('_MARR_SIBL', $relatives_events, true) ? 'checked' : '' ?>>
463dd6b2bfcSGreg Roach                    <?= I18N::translate('Marriage of a sibling') ?>
464dd6b2bfcSGreg Roach                </label>
465dd6b2bfcSGreg Roach            </div>
466dd6b2bfcSGreg Roach            <div class="form-check">
467dd6b2bfcSGreg Roach                <label for="_MARR_PARE">
46822d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_MARR_PARE" value="_MARR_PARE" <?= in_array('_MARR_PARE', $relatives_events, true) ? 'checked' : '' ?>>
469dd6b2bfcSGreg Roach                    <?= I18N::translate('Marriage of a parent') ?>
470dd6b2bfcSGreg Roach                </label>
471dd6b2bfcSGreg Roach            </div>
472dd6b2bfcSGreg Roach        </div>
473dd6b2bfcSGreg Roach        <div class="col-sm-3">
474dd6b2bfcSGreg Roach            <div class="form-check">
475dd6b2bfcSGreg Roach                <label for="_DEAT_GCHI">
47622d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_GCHI" value="_DEAT_GCHI" <?= in_array('_DEAT_GCHI', $relatives_events, true) ? 'checked' : '' ?>>
477dd6b2bfcSGreg Roach                    <?= I18N::translate('Death of a grandchild') ?>
478dd6b2bfcSGreg Roach                </label>
479dd6b2bfcSGreg Roach            </div>
480dd6b2bfcSGreg Roach            <div class="form-check">
481dd6b2bfcSGreg Roach                <label for="_DEAT_CHIL">
48222d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_CHIL" value="_DEAT_CHIL" <?= in_array('_DEAT_CHIL', $relatives_events, true) ? 'checked' : '' ?>>
483dd6b2bfcSGreg Roach                    <?= I18N::translate('Death of a child') ?>
484dd6b2bfcSGreg Roach                </label>
485dd6b2bfcSGreg Roach            </div>
486dd6b2bfcSGreg Roach            <div class="form-check">
487dd6b2bfcSGreg Roach                <label for="_DEAT_SIBL">
48822d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_SIBL" value="_DEAT_SIBL" <?= in_array('_DEAT_SIBL', $relatives_events, true) ? 'checked' : '' ?>>
489dd6b2bfcSGreg Roach                    <?= I18N::translate('Death of a sibling') ?>
490dd6b2bfcSGreg Roach                </label>
491dd6b2bfcSGreg Roach            </div>
492dd6b2bfcSGreg Roach            <div class="form-check">
493dd6b2bfcSGreg Roach                <label for="_DEAT_PARE">
49422d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_PARE" value="_DEAT_PARE" <?= in_array('_DEAT_PARE', $relatives_events, true) ? 'checked' : '' ?>>
495dd6b2bfcSGreg Roach                    <?= I18N::translate('Death of a parent') ?>
496dd6b2bfcSGreg Roach                </label>
497dd6b2bfcSGreg Roach            </div>
498dd6b2bfcSGreg Roach            <div class="form-check">
499dd6b2bfcSGreg Roach                <label for="_DEAT_SPOU">
50022d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_SPOU" value="_DEAT_SPOU" <?= in_array('_DEAT_SPOU', $relatives_events, true) ? 'checked' : '' ?>>
501dd6b2bfcSGreg Roach                    <?= I18N::translate('Death of a spouse') ?>
502dd6b2bfcSGreg Roach                </label>
503dd6b2bfcSGreg Roach            </div>
504dd6b2bfcSGreg Roach            <div class="form-check">
505dd6b2bfcSGreg Roach                <label for="_DEAT_GPAR">
50622d65e5aSGreg Roach                    <input name="SHOW_RELATIVES_EVENTS[]" type="checkbox" id="_DEAT_GPAR" value="_DEAT_GPAR" <?= in_array('_DEAT_GPAR', $relatives_events, true) ? 'checked' : '' ?>>
5070b73ecfcSGreg Roach                    <?= I18N::translate('Death of a grandparent') ?>
508dd6b2bfcSGreg Roach                </label>
509dd6b2bfcSGreg Roach            </div>
510dd6b2bfcSGreg Roach        </div>
511dd6b2bfcSGreg Roach    </fieldset>
512dd6b2bfcSGreg Roach
513dd6b2bfcSGreg Roach    <!-- SHOW_FACT_ICONS -->
514*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
515dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
516dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Fact icons') ?>
517dd6b2bfcSGreg Roach        </legend>
518dd6b2bfcSGreg Roach        <div class="col-sm-9">
519b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'SHOW_FACT_ICONS', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_FACT_ICONS')]) ?>
520315eb316SGreg Roach            <div class="form-text">
521dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Fact icons” configuration setting */ I18N::translate('Some themes can display icons on the “Facts and events” tab.') ?>
522dd6b2bfcSGreg Roach            </div>
523dd6b2bfcSGreg Roach        </div>
524dd6b2bfcSGreg Roach    </fieldset>
525dd6b2bfcSGreg Roach
526dd6b2bfcSGreg Roach    <!-- EXPAND_NOTES -->
527*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
528dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
529dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Automatically expand notes') ?>
530dd6b2bfcSGreg Roach        </legend>
531dd6b2bfcSGreg Roach        <div class="col-sm-9">
532b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'EXPAND_NOTES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('EXPAND_NOTES')]) ?>
533315eb316SGreg Roach            <div class="form-text">
534dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Automatically expand notes” configuration setting */
535dd6b2bfcSGreg Roach                I18N::translate('This option controls whether or not to automatically display content of a <i>Note</i> record on the Individual page.') ?>
536dd6b2bfcSGreg Roach            </div>
537dd6b2bfcSGreg Roach        </div>
538dd6b2bfcSGreg Roach    </fieldset>
539dd6b2bfcSGreg Roach
540dd6b2bfcSGreg Roach    <!-- EXPAND_SOURCES -->
541*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
542dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
543dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Automatically expand sources') ?>
544dd6b2bfcSGreg Roach        </legend>
545dd6b2bfcSGreg Roach        <div class="col-sm-9">
546b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'EXPAND_SOURCES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('EXPAND_SOURCES')]) ?>
547315eb316SGreg Roach            <div class="form-text">
548dd6b2bfcSGreg Roach                <?= /* I18N: Help text for the “Automatically expand sources” configuration setting */
549dd6b2bfcSGreg Roach                I18N::translate('This option controls whether or not to automatically display content of a <i>Source</i> record on the Individual page.') ?>
550dd6b2bfcSGreg Roach            </div>
551dd6b2bfcSGreg Roach        </div>
552dd6b2bfcSGreg Roach    </fieldset>
553dd6b2bfcSGreg Roach
554fc75825cSGreg Roach    <h2><?= I18N::translate('Places') ?></h2>
555dd6b2bfcSGreg Roach
556dd6b2bfcSGreg Roach    <!-- SHOW_PEDIGREE_PLACES -->
557*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
558dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
559dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
560315eb316SGreg Roach            <label class="visually-hidden" for="SHOW_PEDIGREE_PLACES_SUFFIX">
561dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
562dd6b2bfcSGreg Roach                <?= I18N::translate('first') ?> / <?= I18N::translate('last') ?>
563dd6b2bfcSGreg Roach            </label>
564315eb316SGreg Roach            <label class="visually-hidden" for="SHOW_PEDIGREE_PLACES">
565dd6b2bfcSGreg Roach                <?= /* I18N: A configuration setting */ I18N::translate('Abbreviate place names') ?>
566dd6b2bfcSGreg Roach            </label>
567dd6b2bfcSGreg Roach        </legend>
568dd6b2bfcSGreg Roach        <div class="col-sm-9">
569d70512abSGreg Roach            <?= /* I18N: The placeholders are edit controls. Show the [first/last] [1/2/3/4/5] parts of a place name */ I18N::translate(
570d70512abSGreg Roach                'Show the %1$s %2$s parts of a place name.',
571824ca073SGreg 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')]]),
572f91b18ebSGreg Roach                view('components/select-number', ['name' => 'SHOW_PEDIGREE_PLACES', 'selected' => $tree->getPreference('SHOW_PEDIGREE_PLACES'), 'options' => range(1, 9)])
573dd6b2bfcSGreg Roach            ) ?>
574315eb316SGreg Roach            <div class="form-text">
575dd6b2bfcSGreg 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>.') ?>
576dd6b2bfcSGreg Roach            </div>
577dd6b2bfcSGreg Roach        </div>
578dd6b2bfcSGreg Roach    </fieldset>
579dd6b2bfcSGreg Roach
580fc75825cSGreg Roach    <h2><?= I18N::translate('Text') ?></h2>
581dd6b2bfcSGreg Roach
582dd6b2bfcSGreg Roach    <!-- FORMAT_TEXT -->
583*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
584dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
585dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Format text and notes') ?>
586dd6b2bfcSGreg Roach        </legend>
587dd6b2bfcSGreg Roach        <div class="col-sm-9">
5885d9fc484SGreg Roach            <?= view('components/radios-inline', ['name' => 'FORMAT_TEXT', 'options' => $formats, 'selected' =>  $tree->getPreference('FORMAT_TEXT')]) ?>
589315eb316SGreg Roach            <div class="form-text">
590dd6b2bfcSGreg 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.') ?>
591315eb316SGreg Roach                <br>
592dd6b2bfcSGreg 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.') ?>
593dd6b2bfcSGreg Roach            </div>
594dd6b2bfcSGreg Roach        </div>
595dd6b2bfcSGreg Roach    </fieldset>
596dd6b2bfcSGreg Roach
597fc75825cSGreg Roach    <h2><?= I18N::translate('General') ?></h2>
598dd6b2bfcSGreg Roach
599dd6b2bfcSGreg Roach    <!-- SHOW_GEDCOM_RECORD -->
600*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
601dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
602dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Allow users to see raw GEDCOM records') ?>
603dd6b2bfcSGreg Roach        </legend>
604dd6b2bfcSGreg Roach        <div class="col-sm-9">
605b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'SHOW_GEDCOM_RECORD', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('SHOW_GEDCOM_RECORD')]) ?>
606315eb316SGreg Roach            <div class="form-text">
607dd6b2bfcSGreg 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.') ?>
608dd6b2bfcSGreg Roach            </div>
609dd6b2bfcSGreg Roach        </div>
610dd6b2bfcSGreg Roach    </fieldset>
611dd6b2bfcSGreg Roach
612dd6b2bfcSGreg Roach    <!-- HIDE_GEDCOM_ERRORS -->
613*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
614dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
615dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('GEDCOM errors') ?>
616dd6b2bfcSGreg Roach        </legend>
617dd6b2bfcSGreg Roach        <div class="col-sm-9">
618b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'HIDE_GEDCOM_ERRORS', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('HIDE_GEDCOM_ERRORS')]) ?>
619315eb316SGreg Roach            <div class="form-text">
620dd6b2bfcSGreg 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.') ?>
621dd6b2bfcSGreg Roach            </div>
622dd6b2bfcSGreg Roach        </div>
623dd6b2bfcSGreg Roach    </fieldset>
624dd6b2bfcSGreg Roach
625dd6b2bfcSGreg Roach    <!-- SHOW_COUNTER -->
626*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
627dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
628dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Hit counters') ?>
629dd6b2bfcSGreg Roach        </legend>
630dd6b2bfcSGreg Roach        <div class="col-sm-9">
631b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'SHOW_COUNTER', 'options' => [I18N::translate('hide'), I18N::translate('show')], 'selected' => (int) $tree->getPreference('SHOW_COUNTER')]) ?>
632315eb316SGreg Roach            <div class="form-text">
633dd6b2bfcSGreg 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.') ?>
634dd6b2bfcSGreg Roach            </div>
635dd6b2bfcSGreg Roach        </div>
636dd6b2bfcSGreg Roach    </fieldset>
637dd6b2bfcSGreg Roach
638fc75825cSGreg Roach    <h2><?= /* I18N: Options for editing */ I18N::translate('Edit preferences') ?></h2>
639dd6b2bfcSGreg Roach
640fc75825cSGreg Roach    <h2><?= I18N::translate('Facts for individual records') ?></h2>
641dd6b2bfcSGreg Roach
642dd6b2bfcSGreg Roach    <!-- QUICK_REQUIRED_FACTS -->
643*afc2d190SGreg Roach    <div class="row form-group mb-3">
644dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FACTS">
645dd6b2bfcSGreg Roach            <?= I18N::translate('Facts for new individuals') ?>
646dd6b2bfcSGreg Roach        </label>
647dd6b2bfcSGreg Roach        <div class="col-sm-9">
6483faaf002SGreg Roach            <?= view('components/select', ['name' => 'QUICK_REQUIRED_FACTS[]', 'id' => 'QUICK_REQUIRED_FACTS', 'selected' => explode(',', $tree->getPreference('QUICK_REQUIRED_FACTS')), 'options' => $all_individual_facts, 'class' => 'select2']) ?>
649dd6b2bfcSGreg Roach        </div>
650dd6b2bfcSGreg Roach    </div>
651dd6b2bfcSGreg Roach
652dd6b2bfcSGreg Roach    <!-- INDI_FACTS_QUICK -->
653*afc2d190SGreg Roach    <div class="row form-group mb-3">
654dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="INDI_FACTS_QUICK">
655dd6b2bfcSGreg Roach            <?= I18N::translate('Quick individual facts') ?>
656dd6b2bfcSGreg Roach        </label>
657dd6b2bfcSGreg Roach        <div class="col-sm-9">
6583faaf002SGreg Roach            <?= view('components/select', ['name' => 'INDI_FACTS_QUICK[]', 'id' => 'INDI_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('INDI_FACTS_QUICK')), 'options' => $all_individual_facts, 'class' => 'select2']) ?>
659315eb316SGreg Roach            <div class="form-text">
660dd6b2bfcSGreg 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.') ?>
661315eb316SGreg Roach            </div>
662dd6b2bfcSGreg Roach        </div>
663dd6b2bfcSGreg Roach    </div>
664dd6b2bfcSGreg Roach
665fc75825cSGreg Roach    <h2><?= I18N::translate('Facts for family records') ?></h2>
666dd6b2bfcSGreg Roach
667dd6b2bfcSGreg Roach    <!-- QUICK_REQUIRED_FAMFACTS -->
668*afc2d190SGreg Roach    <div class="row form-group mb-3">
669dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="QUICK_REQUIRED_FAMFACTS">
670dd6b2bfcSGreg Roach            <?= I18N::translate('Facts for new families') ?>
671dd6b2bfcSGreg Roach        </label>
672dd6b2bfcSGreg Roach        <div class="col-sm-9">
6733faaf002SGreg Roach            <?= view('components/select', ['name' => 'QUICK_REQUIRED_FAMFACTS[]', 'id' => 'QUICK_REQUIRED_FAMFACTS', 'selected' => explode(',', $tree->getPreference('QUICK_REQUIRED_FAMFACTS')), 'options' => $all_family_facts, 'class' => 'select2']) ?>
674dd6b2bfcSGreg Roach        </div>
675dd6b2bfcSGreg Roach    </div>
676dd6b2bfcSGreg Roach
677dd6b2bfcSGreg Roach    <!-- FAM_FACTS_QUICK -->
678*afc2d190SGreg Roach    <div class="row form-group mb-3">
679dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label" for="FAM_FACTS_QUICK">
680dd6b2bfcSGreg Roach            <?= I18N::translate('Quick family facts') ?>
681dd6b2bfcSGreg Roach        </label>
682dd6b2bfcSGreg Roach        <div class="col-sm-9">
6833faaf002SGreg Roach            <?= view('components/select', ['name' => 'FAM_FACTS_QUICK[]', 'id' => 'FAM_FACTS_QUICK', 'selected' => explode(',', $tree->getPreference('FAM_FACTS_QUICK')), 'options' => $all_family_facts, 'class' => 'select2']) ?>
684315eb316SGreg Roach            <div class="form-text">
685dd6b2bfcSGreg 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.') ?>
686315eb316SGreg Roach            </div>
687dd6b2bfcSGreg Roach        </div>
688dd6b2bfcSGreg Roach    </div>
689dd6b2bfcSGreg Roach
690fc75825cSGreg Roach    <h2><?= I18N::translate('Other preferences') ?></h2>
691dd6b2bfcSGreg Roach
692dd6b2bfcSGreg Roach    <!-- SURNAME_TRADITION -->
693*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
694dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
695dd6b2bfcSGreg Roach            <?= I18N::translate('Surname tradition') ?>
696dd6b2bfcSGreg Roach        </legend>
697dd6b2bfcSGreg Roach        <div class="col-sm-9">
698b6c326d8SGreg Roach            <?= view('components/radios', ['name' => 'SURNAME_TRADITION', 'options' => $all_surname_traditions, 'selected' => $tree->getPreference('SURNAME_TRADITION')]) ?>
699315eb316SGreg Roach            <div class="form-text">
700dd6b2bfcSGreg 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.') ?>
701dd6b2bfcSGreg Roach            </div>
702dd6b2bfcSGreg Roach        </div>
703dd6b2bfcSGreg Roach    </fieldset>
704dd6b2bfcSGreg Roach
705dd6b2bfcSGreg Roach    <!-- FULL_SOURCES -->
706*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
707dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
708dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Use full source citations') ?>
709dd6b2bfcSGreg Roach        </legend>
710dd6b2bfcSGreg Roach        <div class="col-sm-9">
711b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'FULL_SOURCES', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('FULL_SOURCES')]) ?>
712315eb316SGreg Roach            <div class="form-text">
713dd6b2bfcSGreg 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.') ?>
714dd6b2bfcSGreg Roach            </div>
715dd6b2bfcSGreg Roach        </div>
716dd6b2bfcSGreg Roach    </fieldset>
717dd6b2bfcSGreg Roach
718dd6b2bfcSGreg Roach    <!-- PREFER_LEVEL2_SOURCES -->
719*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
720dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
721dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Source type') ?>
722dd6b2bfcSGreg Roach        </legend>
723dd6b2bfcSGreg Roach        <div class="col-sm-9">
7245d9fc484SGreg Roach            <?= view('components/radios-inline', ['name' => 'PREFER_LEVEL2_SOURCES', 'options' => $source_types, 'selected' => (int) $tree->getPreference('PREFER_LEVEL2_SOURCES')]) ?>
725315eb316SGreg Roach            <div class="form-text">
726dd6b2bfcSGreg 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.') ?>
727dd6b2bfcSGreg Roach            </div>
728dd6b2bfcSGreg Roach        </div>
729dd6b2bfcSGreg Roach    </fieldset>
730dd6b2bfcSGreg Roach
731dd6b2bfcSGreg Roach    <!-- NO_UPDATE_CHAN -->
732*afc2d190SGreg Roach    <fieldset class="row form-group mb-3">
733dd6b2bfcSGreg Roach        <legend class="col-form-label col-sm-3">
734dd6b2bfcSGreg Roach            <?= /* I18N: A configuration setting */ I18N::translate('Keep the existing “last change” information') ?>
735dd6b2bfcSGreg Roach        </legend>
736dd6b2bfcSGreg Roach        <div class="col-sm-9">
737b6c326d8SGreg Roach            <?= view('components/radios-inline', ['name' => 'NO_UPDATE_CHAN', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $tree->getPreference('NO_UPDATE_CHAN')]) ?>
738315eb316SGreg Roach            <div class="form-text">
739dd6b2bfcSGreg 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.') ?>
740dd6b2bfcSGreg Roach            </div>
741dd6b2bfcSGreg Roach        </div>
742dd6b2bfcSGreg Roach    </fieldset>
743dd6b2bfcSGreg Roach
744*afc2d190SGreg Roach    <div class="row form-group mb-3">
745dd6b2bfcSGreg Roach        <div class="offset-sm-3 col-sm-9">
746dd6b2bfcSGreg Roach            <button type="submit" class="btn btn-primary">
747dd6b2bfcSGreg Roach                <?= view('icons/save') ?>
748dd6b2bfcSGreg Roach                <?= I18N::translate('save') ?>
749dd6b2bfcSGreg Roach            </button>
7506fd01894SGreg Roach            <a class="btn btn-secondary" href="<?= e(route(ManageTrees::class, ['tree' => $tree->name()])) ?>">
751dd6b2bfcSGreg Roach        <?= view('icons/cancel') ?>
752dd6b2bfcSGreg Roach                <?= I18N::translate('cancel') ?>
753dd6b2bfcSGreg Roach            </a>
754dd6b2bfcSGreg Roach            <!-- Coming soon
755dd6b2bfcSGreg Roach            <div class="form-check">
756dd6b2bfcSGreg Roach                <?php if ($tree_count > 1) : ?>
757dd6b2bfcSGreg Roach                <label>
758dd6b2bfcSGreg Roach                    <input type="checkbox" name="all_trees">
759dd6b2bfcSGreg Roach                    <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to all family trees') ?>
760dd6b2bfcSGreg Roach                </label>
761dd6b2bfcSGreg Roach                <?php endif ?>
762dd6b2bfcSGreg Roach            </div>
763dd6b2bfcSGreg Roach            <div class="form-check">
764dd6b2bfcSGreg Roach                <label>
765dd6b2bfcSGreg Roach                    <input type="checkbox" name="new_trees">
766dd6b2bfcSGreg Roach                    <?= /* I18N: Label for checkbox */ I18N::translate('Apply these preferences to new family trees') ?>
767dd6b2bfcSGreg Roach                </label>
768dd6b2bfcSGreg Roach            </div>
769dd6b2bfcSGreg Roach        </div>
770dd6b2bfcSGreg Roach        -->
771dd6b2bfcSGreg Roach        </div>
772dd6b2bfcSGreg Roach</form>
773