Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {* this template is used for updating pledge payment*} | |
6a488035 | 11 | <div class="crm-block crm-form-block crm-pledge-payment-form-block"> |
227e59a6 CW |
12 | <table class="form-layout-compressed"> |
13 | <tr> | |
14 | <td class="label">{ts}Status{/ts}</td> | |
15 | <td class="form-layout">{$status}</td> | |
16 | </tr> | |
17 | <tr> | |
18 | <td class="label">{$form.scheduled_date.label}</td> | |
267fb11a | 19 | <td>{$form.scheduled_date.html}</td> |
227e59a6 CW |
20 | </tr> |
21 | <tr> | |
22 | <td class="label">{$form.scheduled_amount.label}</td> | |
23 | <td class="form-layout"> | |
24 | {$form.currency.html} {$form.scheduled_amount.html} | |
25 | {if !$pledgePayment} | |
26 | <a href="#" class="crm-hover-button action-item adjust-pledge-payment"> | |
27 | {ts}Adjust scheduled amount{/ts} | |
28 | </a> | |
29 | {help id="adjust-payment-amount"} | |
30 | {/if} | |
6a488035 | 31 | </td> |
227e59a6 CW |
32 | </tr> |
33 | <tr id="adjust-option-type" class="crm-contribution-form-block-option_type"> | |
34 | <td class="label"></td> <td>{$form.option_type.html}</td> | |
35 | </tr> | |
36 | </table> | |
37 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
38 | </fieldset> | |
6a488035 TO |
39 | </div> |
40 | {literal} | |
227e59a6 CW |
41 | <script type="text/javascript"> |
42 | CRM.$(function($) { | |
43 | $('#adjust-option-type').hide(); | |
b467b98d | 44 | |
227e59a6 CW |
45 | $('a.adjust-pledge-payment').click(function(e) { |
46 | e.preventDefault(); | |
47 | $(this).hide(); | |
48 | $('#adjust-option-type').show(); | |
49 | $("#scheduled_amount").prop("readonly", false); | |
50 | }); | |
b467b98d | 51 | }); |
227e59a6 | 52 | </script> |
232624b1 | 53 | {/literal} |