CRM-14383 - Update cj closures
[civicrm-core.git] / templates / CRM / Mailing / Form / Approve.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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
27 <div class="crm-block crm-form-block crm-mailing-approve-form-block">
28
29 <table class="form-layout">
30 <tbody>
31 <tr class="crm-mailing-approve-form-block-approval_status">
32 <td class="label">{$form.approval_status_id.label}</td>
33 <td>{$form.approval_status_id.html}</td>
34 </tr>
35 <tr class="crm-mailing-approve-form-block-approval_note">
36 <td class="label">{$form.approval_note.label}</td>
37 <td>{$form.approval_note.html}</td>
38 </tr>
39 </tbody>
40 </table>
41 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
42
43 <div class="crm-accordion-wrapper crm-plain_text_email-accordion collapsed">
44 <div class="crm-accordion-header">
45 {ts}Preview Mailing{/ts}
46 </div><!-- /.crm-accordion-header -->
47 <div class="crm-accordion-body">
48 <table class="form-layout">
49 <tr class="crm-mailing-test-form-block-subject"><td class="label">{ts}Subject:{/ts}</td><td>{$preview.subject}</td></tr>
50 {if $preview.attachment}
51 <tr class="crm-mailing-test-form-block-attachment"><td class="label">{ts}Attachment(s):{/ts}</td><td>{$preview.attachment}</td></tr>
52 {/if}
53 {if $preview.viewURL}
54 <tr><td class="label">{if $preview.type eq 'html'}{ts}Mailing HTML:{/ts}{else}{ts}Mailing Text:{/ts}{/if}</td><td><iframe height="300" src="{$preview.viewURL}" width="80%"><a href="{$preview.viewURL}" onclick="window.open(this.href); return false;">{ts}Mailing Text:{/ts}</a></iframe></td></tr>
55 {/if}
56 </table>
57 </div><!-- /.crm-accordion-body -->
58 </div><!-- /.crm-accordion-wrapper -->
59
60 </div>
61
62 {literal}
63 <script type="text/javascript">
64 CRM.$(function($) {
65 cj().crmAccordions();
66 });
67 </script>
68 {/literal}
69