CRM-14258 - Use select2 for inserting tokens
[civicrm-core.git] / templates / CRM / Contact / Form / Task / EmailCommon.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 {*common template for compose mail*}
27
28 <div class="crm-accordion-wrapper crm-html_email-accordion ">
29 <div class="crm-accordion-header">
30 {ts}HTML Format{/ts}
31 {help id="id-message-text" file="CRM/Contact/Form/Task/Email.hlp"}
32 </div><!-- /.crm-accordion-header -->
33 <div class="crm-accordion-body">
34 <div class="helpIcon" id="helphtml">
35 <input class="crm-token-selector big" data-field="html_message" />
36 {help id="id-token-html" tplFile=$tplFile isAdmin=$isAdmin editor=$editor file="CRM/Contact/Form/Task/Email.hlp"}
37 </div>
38 <div class="clear"></div>
39 <div class='html'>
40 {if $editor EQ 'textarea'}
41 <div class="help description">{ts}NOTE: If you are composing HTML-formatted messages, you may want to enable a Rich Text (WYSIWYG) editor (Administer &raquo; Customize Data & Screens &raquo; Display Preferences).{/ts}</div>
42 {/if}
43 {$form.html_message.html}<br />
44 </div>
45 </div><!-- /.crm-accordion-body -->
46 </div><!-- /.crm-accordion-wrapper -->
47
48 <div class="crm-accordion-wrapper crm-plaint_text_email-accordion collapsed">
49 <div class="crm-accordion-header">
50 {ts}Plain-Text Format{/ts}
51 </div><!-- /.crm-accordion-header -->
52 <div class="crm-accordion-body">
53 <div class="helpIcon" id="helptext">
54 <input class="crm-token-selector big" data-field="text_message" />
55 {help id="id-token-text" tplFile=$tplFile file="CRM/Contact/Form/Task/Email.hlp"}
56 </div>
57 <div class='text'>
58 {$form.text_message.html}<br />
59 </div>
60 </div><!-- /.crm-accordion-body -->
61 </div><!-- /.crm-accordion-wrapper -->
62 <div id="editMessageDetails" class="section">
63 <div id="updateDetails" class="section" >
64 {$form.updateTemplate.html}&nbsp;{$form.updateTemplate.label}
65 </div>
66 <div class="section">
67 {$form.saveTemplate.html}&nbsp;{$form.saveTemplate.label}
68 </div>
69 </div>
70
71 <div id="saveDetails" class="section">
72 <div class="label">{$form.saveTemplateName.label}</div>
73 <div class="content">{$form.saveTemplateName.html|crmAddClass:huge}</div>
74 </div>
75
76 {if ! $noAttach}
77 {include file="CRM/Form/attachment.tpl"}
78 {/if}
79
80 {include file="CRM/Mailing/Form/InsertTokens.tpl"}
81