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 | {$form.oplock_ts.html} | |
27 | <div class="crm-inline-edit-form"> | |
28 | <div class="crm-inline-button"> | |
29 | {include file="CRM/common/formButtons.tpl"} | |
30 | </div> | |
31 | ||
32 | <div class="crm-clear"> | |
33 | <div class="crm-summary-row"> | |
34 | <div class="crm-label">{$form.gender_id.label}</div> | |
35 | <div class="crm-content">{$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 | </div> | |
38 | </div> | |
39 | <div class="crm-summary-row"> | |
40 | <div class="crm-label">{$form.birth_date.label}</div> | |
41 | <div class="crm-content"> | |
42 | {include file="CRM/common/jcalendar.tpl" elementName=birth_date} | |
43 | </div> | |
44 | </div> | |
45 | <div class="crm-summary-row"> | |
46 | <div class="crm-label"> </div> | |
47 | <div class="crm-content"> | |
48 | {$form.is_deceased.html} | |
49 | {$form.is_deceased.label} | |
50 | </div> | |
51 | </div> | |
52 | <div class="crm-summary-row"> | |
53 | <div class="crm-label crm-deceased-date">{$form.deceased_date.label}</div> | |
54 | <div class="crm-content crm-deceased-date"> | |
55 | {include file="CRM/common/jcalendar.tpl" elementName=deceased_date} | |
56 | </div> | |
57 | </div> | |
58 | </div> | |
59 | </div> <!-- end of main --> | |
60 | ||
61 | {literal} | |
62 | <script type="text/javascript"> | |
63 | function showDeceasedDate( ) { | |
64 | if ( cj("#is_deceased").is(':checked') ) { | |
65 | cj(".crm-deceased-date").show( ); | |
66 | } else { | |
67 | cj(".crm-deceased-date").hide( ); | |
68 | cj("#deceased_date").val(''); | |
69 | } | |
70 | } | |
71 | ||
72 | cj( function() { | |
73 | showDeceasedDate( ); | |
74 | }); | |
75 | </script> | |
76 | {/literal} |