facts(['HUSB'], false, $fam_access_level) as $fact) {
$found |= !$fact->isPendingDeletion();
$person = $fact->target();
if ($person instanceof Individual) {
$row_class = 'wt-gender-' . $person->sex();
if ($fact->isPendingAddition()) {
$row_class .= ' new';
} elseif ($fact->isPendingDeletion()) {
$row_class .= ' old';
}
?>
= $individual === $person ? '' : '' ?>
= Functions::getCloseRelationshipName($individual, $person) ?>
|
= view('chart-box', ['individual' => $person]) ?>
|
canEdit()) {
?>
|
= I18N::translate('Add a husband') ?>
|
facts(['WIFE'], false, $fam_access_level) as $fact) {
$person = $fact->target();
if ($person instanceof Individual) {
$found |= !$fact->isPendingDeletion();
$row_class = 'wt-gender-' . $person->sex();
if ($fact->isPendingAddition()) {
$row_class .= ' new';
} elseif ($fact->isPendingDeletion()) {
$row_class .= ' old';
}
?>
= $individual === $person ? '' : '' ?>
= Functions::getCloseRelationshipName($individual, $person) ?>
|
= view('chart-box', ['individual' => $person]) ?>
|
canEdit()) { ?>
|
= I18N::translate('Add a wife') ?>
|
facts(array_merge(Gedcom::MARRIAGE_EVENTS, Gedcom::DIVORCE_EVENTS), true) as $fact) {
$found |= !$fact->isPendingDeletion();
if ($fact->isPendingAddition()) {
$row_class = 'wt-new';
} elseif ($fact->isPendingDeletion()) {
$row_class = 'wt-old';
} else {
$row_class = '';
}
?>
= GedcomTag::getLabel($fact->getTag()) ?>
|
= GedcomTag::getLabelValue($fact->getTag(), $fact->date()->display() . ' — ' . $fact->place()->fullName()) ?>
|
isOK() && $fact->date()->isOK()) {
$prev = $fact->date();
}
}
if (!$found && $family->canShow() && $family->canEdit()) {
?>
= I18N::translate('Marriage') ?>
|
= I18N::translate('Add marriage details') ?>
|
facts(['CHIL'], false, $fam_access_level) as $fact) {
$person = $fact->target();
if ($person instanceof Individual) {
$row_class = 'wt-gender-' . $person->sex();
if ($fact->isPendingAddition()) {
$child_number++;
$row_class .= ' new';
} elseif ($fact->isPendingDeletion()) {
$row_class .= ' old';
} else {
$child_number++;
}
$next = new Date('');
foreach ($person->facts(Gedcom::BIRTH_EVENTS, true) as $bfact) {
if ($bfact->date()->isOK()) {
$next = $bfact->date();
break;
}
}
?>
isOK() && $next->isOK()) : ?>
maximumJulianDay() - $prev->minimumJulianDay(); ?>
1 && $days > 1 && $days < 240) : ?>
= view('icons/warning') ?>
= 24) : ?>
= I18N::plural('%s year', '%s years', round($months / 12), I18N::number(round($months / 12))) ?>
= I18N::plural('%s month', '%s months', $months, I18N::number($months)) ?>
= Functions::getCloseRelationshipName($individual, $person) ?>
|
= view('chart-box', ['individual' => $person]) ?>
|
canEdit()) : ?>
= I18N::translate('Children') ?>
|
= $type === 'FAMS' ? I18N::translate('Add a son') : I18N::translate('Add a brother') ?>
|
= $type === 'FAMS' ? I18N::translate('Add a daughter') : I18N::translate('Add a sister') ?>
|
= $type === 'FAMS' ? I18N::translate('Add a child') : I18N::translate('Add a sibling') ?>
children()->count() > 1) : ?>
= I18N::translate('Re-order children') ?>
|