Commit | Line | Data |
---|---|---|
b8df2a80 RK |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
b8df2a80 | 4 | +--------------------------------------------------------------------+ |
2a73d3b0 | 5 | | Copyright CiviCRM LLC (c) 2004-2017 | |
b8df2a80 RK |
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 | <div class="messages status no-popup"> | |
27 | <div class="icon inform-icon"></div> | |
830b3e83 | 28 | {include file="CRM/Contribute/Form/Task.tpl"} |
b8df2a80 | 29 | </div> |
830b3e83 | 30 | {if $selectedOutput ne 'email'} |
f6eedce7 | 31 | <div class="help"> |
0865a4ed | 32 | {ts}You may choose to email invoice to contributors OR download a PDF file containing one invoice per page to your local computer by clicking <strong>Process Invoice(s)</strong> . Your browser may display the file for you automatically, or you may need to open it for printing using any PDF reader (such as Adobe® Reader).{/ts} |
830b3e83 | 33 | </div> |
6efffa5d | 34 | {/if} |
b8df2a80 | 35 | |
830b3e83 | 36 | <table class="form-layout-compressed"> |
37 | {if $selectedOutput ne 'email'} | |
6efffa5d PB |
38 | <tr> |
39 | <td>{$form.output.email_invoice.html}</td> | |
40 | </tr> | |
41 | {/if} | |
830b3e83 | 42 | <tr class="crm-email-element"> |
6efffa5d | 43 | <td>{$form.from_email_address.label}{$form.from_email_address.html}{help id ="id-from_email" isAdmin=$isAdmin}</td> |
b8df2a80 | 44 | </tr> |
830b3e83 | 45 | <tr class="crm-email-element"> |
6efffa5d | 46 | <td>{$form.email_comment.label}{$form.email_comment.html}</td> |
b8df2a80 | 47 | </tr> |
830b3e83 | 48 | {if $selectedOutput ne 'email'} |
6efffa5d PB |
49 | <tr> |
50 | <td>{$form.output.pdf_invoice.html}</td> | |
51 | </tr> | |
52 | {/if} | |
830b3e83 | 53 | <tr class="crm-pdf-element"> |
b8df2a80 RK |
54 | <td>{$form.pdf_format_id.html} {$form.pdf_format_id.label} </td> |
55 | </tr> | |
56 | </table> | |
57 | ||
58 | <div class="spacer"></div> | |
8c779cf8 | 59 | <div class="crm-submit-buttons"> |
830b3e83 | 60 | {$form.buttons.html} |
b8df2a80 | 61 | </div> |
830b3e83 | 62 | |
63 | ||
64 | <script type="text/javascript"> | |
65 | {literal} | |
66 | CRM.$(function ($) { | |
67 | var o = $('input[name="output"]'); | |
68 | if (o.length > 1) { | |
69 | $('.crm-email-element').hide(); | |
70 | showhideEmailElements(); | |
71 | o.on('click', showhideEmailElements); | |
72 | } | |
73 | else { | |
74 | $('.crm-email-element').show(); | |
75 | } | |
76 | ||
77 | function showhideEmailElements() { | |
78 | if ($('input[name="output"]:checked').val() == 'email_invoice') { | |
79 | $('.crm-email-element').show(); | |
80 | $('.crm-pdf-element').hide(); | |
81 | } | |
82 | else { | |
83 | $('.crm-pdf-element').show(); | |
84 | $('.crm-email-element').hide(); | |
85 | } | |
86 | } | |
87 | }); | |
88 | {/literal} | |
89 | </script> | |
90 |