Merge remote-tracking branch 'upstream/4.4' into 4.4-4.5-2014-09-08-20-42-29
[civicrm-core.git] / templates / CRM / Pledge / Form / Payment.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 {* this template is used for updating pledge payment*}
27 <div class="crm-block crm-form-block crm-pledge-payment-form-block">
28 <table class="form-layout-compressed">
29 <tr><td class="label">{ts}Status{/ts}</td><td class="form-layout">{$status}</td></tr>
30 <tr><td class="label">{$form.scheduled_date.label}</td>
31 <td>{include file="CRM/common/jcalendar.tpl" elementName=scheduled_date}
32 <span class="description">{ts}Scheduled Date for Pledge payment.{/ts}</span></td></tr>
33 </td></tr>
34 <tr><td class="label">{$form.scheduled_amount.label}</td><td class="form-layout">{$form.currency.html}&nbsp;{$form.scheduled_amount.html}
35 {if !$pledgePayment}{ts}<a href="#" onclick="adjustPayment();">adjust scheduled amount</a>{help id="adjust-payment-amount"}{/ts}{/if}
36 </td>
37 </tr>
38 <tr id="adjust-option-type" class="crm-contribution-form-block-option_type">
39 <td class="label"></td> <td>{$form.option_type.html}</td>
40 </tr>
41 </table>
42 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
43 </fieldset>
44 </div>
45 {literal}
46 <script type="text/javascript">
47 CRM.$(function($) {
48 $('#adjust-option-type').hide();
49 });
50 function adjustPayment( ) {
51 cj('#adjust-option-type').show();
52 cj("#scheduled_amount").removeAttr("READONLY").css('background-color', '#ffffff');
53 }
54 </script>
55 {/literal}