getTag(); switch ($record::RECORD_TYPE) { case 'REPO': // REPO:NAME facts may take a NOTE (but the REPO record may not). if ($level1type === 'NAME') { echo view('cards/add-note', [ 'level' => 2, 'tree' => $tree, ]); echo view('cards/add-shared-note', [ 'level' => 2, 'tree' => $tree, ]); } break; case 'FAM': case 'INDI': // FAM and INDI records have real facts. They can take NOTE/SOUR/OBJE/etc. if ($level1type !== 'SEX' && $level1type !== 'NOTE' && $level1type !== 'ALIA') { if ($level1type !== 'SOUR') { echo view('cards/add-source-citation', [ 'level' => 2, 'full_citations' => $tree->getPreference('FULL_SOURCES'), 'tree' => $tree, ]); } if ($level1type !== 'OBJE') { if ($tree->getPreference('MEDIA_UPLOAD') >= Auth::accessLevel($tree)) { echo view('cards/add-media-object', [ 'level' => 2, 'tree' => $tree, ]); } } echo view('cards/add-note', [ 'level' => 2, 'tree' => $tree, ]); echo view('cards/add-shared-note', [ 'level' => 2, 'tree' => $tree, ]); if ($level1type !== 'ASSO' && $level1type !== 'NOTE' && $level1type !== 'SOUR') { echo view('cards/add-associate', [ 'id' => Uuid::uuid4()->toString(), 'level' => 2, 'tree' => $tree, ]); } // allow to add godfather and godmother for CHR fact or best man and bridesmaid for MARR fact in one window if (in_array($level1type, Config::twoAssociates())) { echo view('cards/add-associate', [ 'id' => Uuid::uuid4()->toString(), 'level' => 2, 'tree' => $tree, ]); } if ($level1type !== 'SOUR') { echo view('cards/add-restriction', [ 'level' => 2, 'tree' => $tree, ]); } } break; default: // Other types of record do not have these lower-level records break; } ?>
'keep_chan', 'checked' => (bool) $tree->getPreference('NO_UPDATE_CHAN')]) ?> lastChangeTimestamp()) ?> lastChangeUser())) ?>