Merge pull request #2006 from civicrm/4.3
[civicrm-core.git] / templates / CRM / Contact / Form / Edit / Demographics.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.4 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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 class="crm-accordion-wrapper crm-demographics-accordion collapsed">
27 <div class="crm-accordion-header">
28 {$title}
29 </div><!-- /.crm-accordion-header -->
30 <div id="demographics" class="crm-accordion-body">
31 <div class="form-item">
32 <span class="label">{$form.gender_id.label}</span>
33
34 <span class="value">
35 {$form.gender_id.html}
36 <span class="crm-clear-link">(<a href="#" title="unselect" onclick="unselectRadio('gender_id', '{$form.formName}'); return false;">{ts}clear{/ts}</a>)</span>
37 </span>
38 </div>
39 <div class="form-item">
40 <span class="label">{$form.birth_date.label}</span>
41 <span class="value">{include file="CRM/common/jcalendar.tpl" elementName=birth_date}</span>
42 </div>
43 <div class="form-item">
44 {$form.is_deceased.html}
45 {$form.is_deceased.label}
46 </div>
47 <div id="showDeceasedDate" class="form-item">
48 <span class="label">{$form.deceased_date.label}</span>
49 <span class="value">{include file="CRM/common/jcalendar.tpl" elementName=deceased_date}</span>
50 </div>
51 </div><!-- /.crm-accordion-body -->
52 </div><!-- /.crm-accordion-wrapper -->
53
54 {literal}
55 <script type="text/javascript">
56 showDeceasedDate( );
57 function showDeceasedDate( )
58 {
59 if ( cj("#is_deceased").is(':checked') ) {
60 cj("#showDeceasedDate").show( );
61 } else {
62 cj("#showDeceasedDate").hide( );
63 cj("#deceased_date").val('');
64 }
65 }
66 </script>
67 {/literal}