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