| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.7 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
| 6 | +--------------------------------------------------------------------+ |
| 7 | | This file is a part of CiviCRM. | |
| 8 | | | |
| 9 | | CiviCRM is free software; you can copy, modify, and distribute it | |
| 10 | | under the terms of the GNU Affero General Public License | |
| 11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | |
| 12 | | | |
| 13 | | CiviCRM is distributed in the hope that it will be useful, but | |
| 14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 16 | | See the GNU Affero General Public License for more details. | |
| 17 | | | |
| 18 | | You should have received a copy of the GNU Affero General Public | |
| 19 | | License and the CiviCRM Licensing Exception along | |
| 20 | | with this program; if not, contact CiviCRM LLC | |
| 21 | | at info[AT]civicrm[DOT]org. If you have questions about the | |
| 22 | | GNU Affero General Public License or the licensing of CiviCRM, | |
| 23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | |
| 24 | +--------------------------------------------------------------------+ |
| 25 | *} |
| 26 | <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}> |
| 27 | <div class="crm-clear crm-inline-block-content" {if $permission EQ 'edit'}title="{ts}Edit demographics{/ts}"{/if}> |
| 28 | {if $permission EQ 'edit'} |
| 29 | <div class="crm-edit-help"> |
| 30 | <span class="batch-edit"></span>{ts}Edit demographics{/ts} |
| 31 | </div> |
| 32 | {/if} |
| 33 | <div class="crm-summary-row"> |
| 34 | <div class="crm-label">{ts}Gender{/ts}</div> |
| 35 | <div class="crm-content crm-contact-gender_display">{$gender_display}</div> |
| 36 | </div> |
| 37 | <div class="crm-summary-row"> |
| 38 | <div class="crm-label">{ts}Date of Birth{/ts}</div> |
| 39 | <div class="crm-content crm-contact-birth_date_display"> |
| 40 | {if $birthDateViewFormat} |
| 41 | {$birth_date_display|crmDate:$birthDateViewFormat} |
| 42 | {else} |
| 43 | {$birth_date_display|crmDate} |
| 44 | {/if} |
| 45 | |
| 46 | </div> |
| 47 | </div> |
| 48 | {if $is_deceased eq 1} |
| 49 | {if $deceased_date} |
| 50 | <div class="crm-summary-row"> |
| 51 | <div class="crm-label">{ts}Date Deceased{/ts}</div> |
| 52 | <div class="crm-content crm-contact-deceased_date_display"> |
| 53 | {if $birthDateViewFormat} |
| 54 | {$deceased_date_display|crmDate:$birthDateViewFormat} |
| 55 | {else} |
| 56 | {$deceased_date_display|crmDate} |
| 57 | {/if} |
| 58 | </div> |
| 59 | </div> |
| 60 | {else} |
| 61 | <div class="crm-summary-row"> |
| 62 | <div class="crm-label"></div> |
| 63 | <div class="crm-content crm-contact-deceased_message"><span class="font-red upper">{ts}Contact is Deceased{/ts}</span></div> |
| 64 | </div> |
| 65 | {/if} |
| 66 | {else} |
| 67 | <div class="crm-summary-row"> |
| 68 | <div class="crm-label">{ts}Age{/ts}</div> |
| 69 | <div class="crm-content crm-contact-age_display">{if $age.y}{ts count=$age.y plural='%count years'}%count year{/ts}{elseif $age.m}{ts count=$age.m plural='%count months'}%count month{/ts}{/if}</div> |
| 70 | </div> |
| 71 | {/if} |
| 72 | </div> |
| 73 | </div> |