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