Ian province abbreviation patch - issue 724
[civicrm-core.git] / templates / CRM / Pledge / Form / Payment.tpl
... / ...
CommitLineData
1{*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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>
30 <td class="label">{ts}Status{/ts}</td>
31 <td class="form-layout">{$status}</td>
32 </tr>
33 <tr>
34 <td class="label">{$form.scheduled_date.label}</td>
35 <td>{include file="CRM/common/jcalendar.tpl" elementName=scheduled_date}</td>
36 </tr>
37 <tr>
38 <td class="label">{$form.scheduled_amount.label}</td>
39 <td class="form-layout">
40 {$form.currency.html}&nbsp;{$form.scheduled_amount.html}
41 {if !$pledgePayment}
42 <a href="#" class="crm-hover-button action-item adjust-pledge-payment">
43 {ts}Adjust scheduled amount{/ts}
44 </a>
45 {help id="adjust-payment-amount"}
46 {/if}
47 </td>
48 </tr>
49 <tr id="adjust-option-type" class="crm-contribution-form-block-option_type">
50 <td class="label"></td> <td>{$form.option_type.html}</td>
51 </tr>
52 </table>
53 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
54 </fieldset>
55</div>
56{literal}
57 <script type="text/javascript">
58 CRM.$(function($) {
59 $('#adjust-option-type').hide();
60
61 $('a.adjust-pledge-payment').click(function(e) {
62 e.preventDefault();
63 $(this).hide();
64 $('#adjust-option-type').show();
65 $("#scheduled_amount").prop("readonly", false);
66 });
67 });
68 </script>
69{/literal}