|
@@ 336-355 (lines=20) @@
|
| 333 |
|
</table> |
| 334 |
|
<?php |
| 335 |
|
$families = $controller->record->getChildFamilies(); |
| 336 |
|
if (!$families && $controller->record->canEdit()) { |
| 337 |
|
?> |
| 338 |
|
<table class="table table-sm wt-facts-table"> |
| 339 |
|
<tbody> |
| 340 |
|
<tr> |
| 341 |
|
<td> |
| 342 |
|
<a href="edit_interface.php?action=add_parent_to_individual&ged=<?= $controller->record->getTree()->getNameHtml() ?>&xref=<?= $controller->record->getXref() ?>&gender=M"> |
| 343 |
|
<?= I18N::translate('Add a father') ?> |
| 344 |
|
</a> |
| 345 |
|
</td> |
| 346 |
|
</tr> |
| 347 |
|
<tr> |
| 348 |
|
<td> |
| 349 |
|
<a href="edit_interface.php?action=add_parent_to_individual&ged=<?= $controller->record->getTree()->getNameHtml() ?>&xref=<?= $controller->record->getXref() ?>&gender=F"> |
| 350 |
|
<?= I18N::translate('Add a mother') ?> |
| 351 |
|
</a> |
| 352 |
|
</td> |
| 353 |
|
</tr> |
| 354 |
|
</tbody> |
| 355 |
|
</table> |
| 356 |
|
<?php |
| 357 |
|
} |
| 358 |
|
|
|
@@ 399-410 (lines=12) @@
|
| 396 |
|
<a href="edit_interface.php?action=addfamlink&ged=<?= $controller->record->getTree()->getNameHtml() ?>&xref=<?= $controller->record->getXref() ?>"><?= I18N::translate('Link this individual to an existing family as a child') ?></a> |
| 397 |
|
</td> |
| 398 |
|
</tr> |
| 399 |
|
<?php if ($controller->record->getSex() !== 'F') { ?> |
| 400 |
|
<tr> |
| 401 |
|
<td> |
| 402 |
|
<a href="edit_interface.php?action=add_spouse_to_individual&ged=<?= $controller->record->getTree()->getNameHtml() ?>&xref=<?= $controller->record->getXref() ?>&sex=F"><?= I18N::translate('Add a wife') ?></a> |
| 403 |
|
</td> |
| 404 |
|
</tr> |
| 405 |
|
<tr> |
| 406 |
|
<td> |
| 407 |
|
<a href="edit_interface.php?action=linkspouse&ged=<?= $controller->record->getTree()->getNameHtml() ?>&xref=<?= $controller->record->getXref() ?>&famtag=WIFE"><?= I18N::translate('Add a wife using an existing individual') ?></a> |
| 408 |
|
</td> |
| 409 |
|
</tr> |
| 410 |
|
<?php } ?> |
| 411 |
|
<?php if ($controller->record->getSex() !== 'M') { ?> |
| 412 |
|
<tr> |
| 413 |
|
<td> |
|
@@ 411-422 (lines=12) @@
|
| 408 |
|
</td> |
| 409 |
|
</tr> |
| 410 |
|
<?php } ?> |
| 411 |
|
<?php if ($controller->record->getSex() !== 'M') { ?> |
| 412 |
|
<tr> |
| 413 |
|
<td> |
| 414 |
|
<a href="edit_interface.php?action=add_spouse_to_individual&ged=<?= $controller->record->getTree()->getNameHtml() ?>&xref=<?= $controller->record->getXref() ?>&sex=M"><?= I18N::translate('Add a husband') ?></a> |
| 415 |
|
</td> |
| 416 |
|
</tr> |
| 417 |
|
<tr> |
| 418 |
|
<td> |
| 419 |
|
<a href="edit_interface.php?action=linkspouse&ged=<?= $controller->record->getTree()->getNameHtml() ?>&xref=<?= $controller->record->getXref() ?>&famtag=HUSB"><?= I18N::translate('Add a husband using an existing individual') ?></a> |
| 420 |
|
</td> |
| 421 |
|
</tr> |
| 422 |
|
<?php } ?> |
| 423 |
|
<tr> |
| 424 |
|
<td> |
| 425 |
|
<a href="edit_interface.php?action=add_child_to_individual&ged=<?= $controller->record->getTree()->getNameHtml() ?>&xref=<?= $controller->record->getXref() ?>&gender=U"> |