CRM-15906 - Related js cleanup
[civicrm-core.git] / templates / CRM / Pledge / Form / Payment.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
819d0d41 3 | CiviCRM version 4.5 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
6a488035
TO
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*}
6a488035
TO
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}
b467b98d
CW
35 {if !$pledgePayment}
36 <a href="#" class="crm-hover-button action-item adjust-pledge-payment">
37 {ts}Adjust scheduled amount{/ts}
38 </a>
39 {help id="adjust-payment-amount"}
40 {/if}
6a488035
TO
41 </td>
42 </tr>
43 <tr id="adjust-option-type" class="crm-contribution-form-block-option_type">
44 <td class="label"></td> <td>{$form.option_type.html}</td>
45 </tr>
46 </table>
47 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
48</fieldset>
49</div>
50{literal}
51<script type="text/javascript">
32678ccb
CW
52 CRM.$(function($) {
53 $('#adjust-option-type').hide();
b467b98d
CW
54
55 $('a.adjust-pledge-payment').click(function(e) {
56 e.preventDefault();
57 $(this).hide();
58 $('#adjust-option-type').show();
59 $("#scheduled_amount").prop("readonly", false);
60 });
32678ccb 61 });
6a488035 62</script>
232624b1 63{/literal}