Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
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 | {* 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} | |
e171748b OB |
39 | {if $form.formal_title} |
40 | <div class="crm-inline-edit-field"> | |
41 | {$form.formal_title.label}<br/> | |
42 | {$form.formal_title.html} | |
43 | </div> | |
44 | {/if} | |
8b49cb50 OB |
45 | {if $form.first_name} |
46 | <div class="crm-inline-edit-field"> | |
31037a42 | 47 | {$form.first_name.label}<br /> |
8b49cb50 OB |
48 | {$form.first_name.html} |
49 | </div> | |
50 | {/if} | |
51 | {if $form.middle_name} | |
52 | <div class="crm-inline-edit-field"> | |
53 | {$form.middle_name.label}<br /> | |
54 | {$form.middle_name.html} | |
55 | </div> | |
56 | {/if} | |
57 | {if $form.last_name} | |
58 | <div class="crm-inline-edit-field"> | |
59 | {$form.last_name.label}<br /> | |
60 | {$form.last_name.html} | |
61 | </div> | |
62 | {/if} | |
6a488035 TO |
63 | {if $form.suffix_id} |
64 | <div class="crm-inline-edit-field"> | |
65 | {$form.suffix_id.label}<br/> | |
66 | {$form.suffix_id.html} | |
67 | </div> | |
68 | {/if} | |
69 | {elseif $contactType eq 'Organization'} | |
70 | <div class="crm-inline-edit-field">{$form.organization_name.label} | |
71 | {$form.organization_name.html}</div> | |
72 | {elseif $contactType eq 'Household'} | |
73 | <div class="crm-inline-edit-field">{$form.household_name.label} | |
74 | {$form.household_name.html}</div> | |
75 | {/if} | |
76 | </div> | |
77 | <div class="clear"></div> |