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