Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
232624b1 | 3 | | CiviCRM version 4.4 | |
6a488035 TO |
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 | {* template for building communication preference block*} | |
27 | <div id="crm-communication-pref-content" {if $permission EQ 'edit'} class="crm-inline-edit" data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Form_Inline_CommunicationPreferences"{rdelim}' data-dependent-fields='["#crm-phone-content", "#crm-email-content", ".address.crm-inline-edit:not(.add-new)", "#crm-contact-actions-wrapper"]'{/if}> | |
28 | <div class="crm-clear crm-inline-block-content"{if $permission EQ 'edit'} title="{ts}Edit communication preferences{/ts}"{/if}> | |
29 | {if $permission EQ 'edit'} | |
30 | <div class="crm-edit-help"> | |
31 | <span class="batch-edit"></span>{ts}Edit communication preferences{/ts} | |
32 | </div> | |
33 | {/if} | |
34 | <div class="crm-summary-row"> | |
35 | <div class="crm-label">{ts}Privacy{/ts}</div> | |
36 | <div class="crm-content crm-contact-privacy_values font-red upper"> | |
37 | {foreach from=$privacy item=priv key=index} | |
38 | {if $priv}{$privacy_values.$index}<br/>{/if} | |
39 | {/foreach} | |
40 | {if $is_opt_out}{ts}No Bulk Emails (User Opt Out){/ts}{/if} | |
41 | </div> | |
42 | </div> | |
43 | <div class="crm-summary-row"> | |
44 | <div class="crm-label">{ts}Preferred Method(s){/ts}</div> | |
45 | <div class="crm-content crm-contact-preferred_communication_method_display"> | |
46 | {$preferred_communication_method_display} | |
47 | </div> | |
48 | </div> | |
49 | {if $preferred_language} | |
50 | <div class="crm-summary-row"> | |
51 | <div class="crm-label">{ts}Preferred Language{/ts}</div> | |
52 | <div class="crm-content crm-contact-preferred_language"> | |
53 | {$preferred_language} | |
54 | </div> | |
55 | </div> | |
56 | {/if} | |
57 | <div class="crm-summary-row"> | |
58 | <div class="crm-label">{ts}Email Format{/ts}</div> | |
59 | <div class="crm-content crm-contact-preferred_mail_format"> | |
60 | {$preferred_mail_format} | |
61 | </div> | |
62 | </div> | |
63 | <div class="crm-summary-row"> | |
64 | <div class="crm-label">{ts}Email Greeting{/ts}</div> | |
65 | <div class="crm-content crm-contact-email_greeting_display"> | |
66 | {$email_greeting_display} | |
67 | {if !empty($email_greeting_custom)}<span class="crm-custom-greeting">({ts}Customized{/ts})</span>{/if} | |
68 | </div> | |
69 | </div> | |
70 | <div class="crm-summary-row"> | |
71 | <div class="crm-label">{ts}Postal Greeting{/ts}</div> | |
72 | <div class="crm-content crm-contact-postal_greeting_display"> | |
73 | {$postal_greeting_display} | |
74 | {if !empty($postal_greeting_custom)}<span class="crm-custom-greeting" >({ts}Customized{/ts})</span>{/if} | |
75 | </div> | |
76 | </div> | |
77 | <div class="crm-summary-row"> | |
78 | <div class="crm-label">{ts}Addressee{/ts}</div> | |
79 | <div class="crm-content crm-contact-addressee_display"> | |
80 | {$addressee_display} | |
81 | {if !empty($addressee_custom)}<span class="crm-custom-greeting">({ts}Customized{/ts})</span>{/if} | |
82 | </div> | |
83 | </div> | |
84 | </div> | |
85 | </div> |