if ($this->_contactId) {
$defaults = array();
$params = array('id' => $this->_contactId);
- $returnProperities = array('id', 'contact_type', 'contact_sub_type', 'modified_date');
+ $returnProperities = array('id', 'contact_type', 'contact_sub_type', 'modified_date', 'is_deceased');
CRM_Core_DAO::commonRetrieve('CRM_Contact_DAO_Contact', $params, $defaults, $returnProperities);
if (empty($defaults['id'])) {
}
$displayName = CRM_Contact_BAO_Contact::displayName($this->_contactId);
+ if ($defaults['is_deceased']) {
+ $displayName .= ' <font color=red>(deceased)</font>';
+ }
+
$displayName = ts('Edit %1', array(1 => $displayName));
// Check if this is default domain contact CRM-10482
$contactDetails[$contactId] = array(
'displayName' => $displayName,
'contactImage' => $contactImage,
+ 'isDeceased' => (bool) CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $contactId, 'is_deceased'),
);
}
else {
// set page title
$title = "{$contactImage} {$displayName}";
+ if ($contactDetails[$contactId]['isDeceased']) {
+ $title .= ' <font color=red>(deceased)</font>';
+ }
+
if ($isDeleted) {
$title = "<del>{$title}</del>";
}
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
-<div id="crm-demographic-content" {if $permission EQ 'edit'} class="crm-inline-edit" data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Form_Inline_Demographics"{rdelim}'{/if}>
+<div id="crm-demographic-content" {if $permission EQ 'edit'} class="crm-inline-edit" data-dependent-fields='["#crm-contactname-content"]' data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Form_Inline_Demographics"{rdelim}'{/if}>
<div class="crm-clear crm-inline-block-content" {if $permission EQ 'edit'}title="{ts}Edit demographics{/ts}"{/if}>
{if $permission EQ 'edit'}
<div class="crm-edit-help">