Merge pull request #2061 from civicrm/4.3
[civicrm-core.git] / templates / CRM / Contact / Form / Inline / ContactName.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 {* This file builds html for Contact Display Name inline edit *}
27 {$form.oplock_ts.html}
28 <div class="crm-inline-edit-form">
29 <div class="crm-inline-button">
30 {include file="CRM/common/formButtons.tpl"}
31 </div>
32 {if $contactType eq 'Individual'}
33 {if $form.prefix_id}
34 <div class="crm-inline-edit-field">
35 {$form.prefix_id.label}<br/>
36 {$form.prefix_id.html}
37 </div>
38 {/if}
39 <div class="crm-inline-edit-field">
40 {$form.first_name.label}<br />
41 {$form.first_name.html}
42 </div>
43 <div class="crm-inline-edit-field">
44 {$form.middle_name.label}<br />
45 {$form.middle_name.html}
46 </div>
47 <div class="crm-inline-edit-field">
48 {$form.last_name.label}<br />
49 {$form.last_name.html}
50 </div>
51 {if $form.suffix_id}
52 <div class="crm-inline-edit-field">
53 {$form.suffix_id.label}<br/>
54 {$form.suffix_id.html}
55 </div>
56 {/if}
57 {elseif $contactType eq 'Organization'}
58 <div class="crm-inline-edit-field">{$form.organization_name.label}&nbsp;
59 {$form.organization_name.html}</div>
60 {elseif $contactType eq 'Household'}
61 <div class="crm-inline-edit-field">{$form.household_name.label}&nbsp;
62 {$form.household_name.html}</div>
63 {/if}
64 </div>
65 <div class="clear"></div>