Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-07-14-13-42-39
[civicrm-core.git] / templates / CRM / Contact / Form / Inline / Demographics.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
819d0d41 3 | CiviCRM version 4.5 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
6a488035
TO
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>
4a143c04 35 <div class="crm-content">{$form.gender_id.html}</div>
6a488035
TO
36 </div>
37 <div class="crm-summary-row">
38 <div class="crm-label">{$form.birth_date.label}</div>
39 <div class="crm-content">
40 {include file="CRM/common/jcalendar.tpl" elementName=birth_date}
41 </div>
42 </div>
43 <div class="crm-summary-row">
44 <div class="crm-label">&nbsp;</div>
45 <div class="crm-content">
46 {$form.is_deceased.html}
47 {$form.is_deceased.label}
48 </div>
49 </div>
50 <div class="crm-summary-row">
51 <div class="crm-label crm-deceased-date">{$form.deceased_date.label}</div>
52 <div class="crm-content crm-deceased-date">
53 {include file="CRM/common/jcalendar.tpl" elementName=deceased_date}
54 </div>
55 </div>
56 </div>
57</div> <!-- end of main -->
58
59{literal}
60<script type="text/javascript">
61function showDeceasedDate( ) {
62 if ( cj("#is_deceased").is(':checked') ) {
63 cj(".crm-deceased-date").show( );
64 } else {
65 cj(".crm-deceased-date").hide( );
66 cj("#deceased_date").val('');
67 }
68}
69
3cc60a06 70CRM.$(function($) {
6a488035
TO
71 showDeceasedDate( );
72});
73</script>
74{/literal}