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