Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
232624b1 | 3 | | CiviCRM version 4.4 | |
6a488035 TO |
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} | |
6a488035 TO |
36 | </span> |
37 | </div> | |
38 | <div class="form-item"> | |
39 | <span class="label">{$form.birth_date.label}</span> | |
40 | <span class="value">{include file="CRM/common/jcalendar.tpl" elementName=birth_date}</span> | |
41 | </div> | |
42 | <div class="form-item"> | |
43 | {$form.is_deceased.html} | |
44 | {$form.is_deceased.label} | |
45 | </div> | |
46 | <div id="showDeceasedDate" class="form-item"> | |
47 | <span class="label">{$form.deceased_date.label}</span> | |
48 | <span class="value">{include file="CRM/common/jcalendar.tpl" elementName=deceased_date}</span> | |
49 | </div> | |
50 | </div><!-- /.crm-accordion-body --> | |
51 | </div><!-- /.crm-accordion-wrapper --> | |
52 | ||
53 | {literal} | |
54 | <script type="text/javascript"> | |
55 | showDeceasedDate( ); | |
56 | function showDeceasedDate( ) | |
57 | { | |
58 | if ( cj("#is_deceased").is(':checked') ) { | |
59 | cj("#showDeceasedDate").show( ); | |
60 | } else { | |
61 | cj("#showDeceasedDate").hide( ); | |
62 | cj("#deceased_date").val(''); | |
63 | } | |
64 | } | |
65 | </script> | |
66 | {/literal} |