commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / templates / CRM / Contact / Form / Inline / Demographics.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
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 {$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}</div>
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">
61 function 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
70 CRM.$(function($) {
71 showDeceasedDate( );
72 });
73 </script>
74 {/literal}