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