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