Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
39de6fd5 | 3 | | CiviCRM version 4.6 | |
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 | {* 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} | |
29 | ||
30 | <div class="crm-inline-edit-form"> | |
31 | <div class="crm-inline-button"> | |
32 | {include file="CRM/common/formButtons.tpl"} | |
33 | </div> | |
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"} | |
39 | </div> | |
40 | <div class="crm-content"> | |
41 | {foreach key=k item=i from=$item} | |
42 | {$form.$key.$k.html}<br/> | |
43 | {/foreach} | |
44 | </div> | |
45 | </div> | |
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"} | |
51 | </div> | |
52 | </div> | |
53 | {/if} | |
54 | {/foreach} | |
55 | <div class="crm-summary-row"> | |
56 | <div class="crm-label"> | |
57 | {$form.preferred_language.label} | |
58 | </div> | |
59 | <div class="crm-content"> | |
60 | {$form.preferred_language.html} | |
61 | </div> | |
62 | </div> | |
a304f73d ML |
63 | |
64 | {if !empty($form.preferred_mail_format)} | |
6a488035 TO |
65 | <div class="crm-summary-row"> |
66 | <div class="crm-label"> | |
67 | {$form.preferred_mail_format.label} | |
3f98995a | 68 | {help id="id-emailFormat" file="CRM/Contact/Form/Contact.hlp"} |
6a488035 TO |
69 | </div> |
70 | <div class="crm-content"> | |
3f98995a | 71 | {$form.preferred_mail_format.html} |
6a488035 TO |
72 | </div> |
73 | </div> | |
a304f73d | 74 | {/if} |
6a488035 | 75 | |
aa62b355 OB |
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"} | |
80 | </div> | |
81 | <div class="crm-content"> | |
82 | {$form.communication_style_id.html} | |
83 | </div> | |
84 | </div> | |
85 | {/if} | |
86 | ||
6a488035 TO |
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} | |
93 | </span> | |
3f98995a CW |
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} | |
97 | </div> | |
98 | {/if} | |
6a488035 TO |
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} | |
102 | </span> | |
103 | {/if} | |
104 | </div> | |
105 | </div> | |
106 | {/if} | |
31037a42 | 107 | |
6a488035 TO |
108 | |
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} | |
115 | </span> | |
3f98995a CW |
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} | |
119 | </div> | |
120 | {/if} | |
6a488035 TO |
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} | |
124 | </span> | |
125 | {/if} | |
126 | </div> | |
127 | </div> | |
128 | {/if} | |
129 | ||
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} | |
136 | </span> | |
3f98995a CW |
137 | {if !empty($addressee_display)} |
138 | <div data-id="addressee" class="replace-plain big" title="{ts}Click to edit{/ts}"> | |
139 | {$addressee_display} | |
140 | </div> | |
141 | {/if} | |
6a488035 TO |
142 | {if !empty($form.addressee_custom)} |
143 | <span id="addressee_id_html" class="hiddenElement"> | |
144 | <br/>{$form.addressee_custom.html|crmAddClass:big} | |
145 | </span> | |
146 | {/if} | |
147 | </div> | |
148 | </div> | |
149 | {/if} | |
31037a42 | 150 | |
6a488035 TO |
151 | </div> |
152 | </div> | |
3f98995a | 153 | {include file="CRM/Contact/Form/Edit/CommunicationPreferences.js.tpl"} |