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