2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2016 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 {* This file provides the plugin for the communication preferences in all the three types of contact *}
27 {* @var $form Contains the array for the form elements and other form associated information assigned to the template by the controller *}
28 {$form.oplock_ts.html}
30 <div class="crm-inline-edit-form">
31 <div class="crm-inline-button">
32 {include file="CRM/common/formButtons.tpl"}
34 <div class="crm-clear">
35 {foreach key=key item=item from=$commPreference}
36 <div class="crm-summary-row">
37 <div class="crm-label">{$form.$key.label}
38 {help id="id-$key" file="CRM/Contact/Form/Contact.hlp"}
40 <div class="crm-content">
41 {foreach key=k item=i from=$item}
42 {$form.$key.$k.html}<br/>
46 {if $key eq 'privacy'}
47 <div class="crm-summary-row">
48 <div class="crm-label"> </div>
49 <div class="crm-content">{
50 $form.is_opt_out.html} {$form.is_opt_out.label} {help id="id-optOut" file="CRM/Contact/Form/Contact.hlp"}
55 <div class="crm-summary-row">
56 <div class="crm-label">
57 {$form.preferred_language.label}
59 <div class="crm-content">
60 {$form.preferred_language.html}
64 {if !empty($form.preferred_mail_format)}
65 <div class="crm-summary-row">
66 <div class="crm-label">
67 {$form.preferred_mail_format.label}
68 {help id="id-emailFormat" file="CRM/Contact/Form/Contact.hlp"}
70 <div class="crm-content">
71 {$form.preferred_mail_format.html}
76 {if !empty($form.communication_style_id)}
77 <div class="crm-summary-row">
78 <div class="crm-label">
79 {$form.communication_style_id.label} {help id="id-communication_style" file="CRM/Contact/Form/Contact.hlp"}
81 <div class="crm-content">
82 {$form.communication_style_id.html}
87 {if !empty($form.email_greeting_id)}
88 <div class="crm-summary-row">
89 <div class="crm-label">{$form.email_greeting_id.label}</div>
90 <div class="crm-content">
91 <span id="email_greeting" {if !empty($email_greeting_display)} class="hiddenElement"{/if}>
92 {$form.email_greeting_id.html|crmAddClass:big}
94 {if !empty($email_greeting_display)}
95 <div data-id="email_greeting" class="replace-plain big" title="{ts}Click to edit{/ts}">
96 {$email_greeting_display}
99 {if !empty($form.email_greeting_custom)}
100 <span id="email_greeting_id_html" class="hiddenElement">
101 <br/>{$form.email_greeting_custom.html|crmAddClass:big}
109 {if !empty($form.postal_greeting_id)}
110 <div class="crm-summary-row">
111 <div class="crm-label">{$form.postal_greeting_id.label}</div>
112 <div class="crm-content">
113 <span id="postal_greeting" {if !empty($postal_greeting_display)} class="hiddenElement"{/if}>
114 {$form.postal_greeting_id.html|crmAddClass:big}
116 {if !empty($postal_greeting_display)}
117 <div data-id="postal_greeting" class="replace-plain big" title="{ts}Click to edit{/ts}">
118 {$postal_greeting_display}
121 {if !empty($form.postal_greeting_custom)}
122 <span id="postal_greeting_id_html" class="hiddenElement">
123 <br/>{$form.postal_greeting_custom.html|crmAddClass:big}
130 {if !empty($form.addressee_id)}
131 <div class="crm-summary-row">
132 <div class="crm-label">{$form.addressee_id.label}</div>
133 <div class="crm-content">
134 <span id="addressee" {if !empty($addressee_display)} class="hiddenElement"{/if}>
135 {$form.addressee_id.html|crmAddClass:big}
137 {if !empty($addressee_display)}
138 <div data-id="addressee" class="replace-plain big" title="{ts}Click to edit{/ts}">
142 {if !empty($form.addressee_custom)}
143 <span id="addressee_id_html" class="hiddenElement">
144 <br/>{$form.addressee_custom.html|crmAddClass:big}
153 {include file="CRM/Contact/Form/Edit/CommunicationPreferences.js.tpl"}