X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FContribute%2FForm%2FContribution.tpl;h=1f1233130d218adec443f6b785bc46269366a26e;hb=28a39166963513aed5b93a91af4aedd0452109f7;hp=67c4d58b7fa234b28199d94097c2f953450bbc40;hpb=a7a62dbe5ec253a9cf01bc329be240b25e600945;p=civicrm-core.git
diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl
index 67c4d58b7f..1f1233130d 100644
--- a/templates/CRM/Contribute/Form/Contribution.tpl
+++ b/templates/CRM/Contribute/Form/Contribution.tpl
@@ -80,9 +80,6 @@
{$form.contact_id.label} |
{$form.contact_id.html} |
{/if}
- {if $contributionMode}
- {$form.payment_processor_id.label} * | {$form.payment_processor_id.html} |
- {/if}
{$form.financial_type_id.label} | {$form.financial_type_id.html}
{if $is_test}
@@ -107,7 +104,7 @@
{/if}
- {if $ppID}{ts}adjust payment amount{/ts}{help id="adjust-payment-amount"}{/if}
+ {if $ppID}{ts}adjust payment amount{/ts}{help id="adjust-payment-amount"}{/if}
{if $hasPriceSets} {ts}Alternatively, you can use a price set.{/ts}{/if}
@@ -242,7 +239,9 @@
{ts}Date that a receipt was sent to the contributor.{/ts}
|
-
+ {if $contributionMode}
+ {$form.payment_processor_id.label} * | {$form.payment_processor_id.html} |
+ {/if}
{if !$contributionMode}
@@ -256,12 +255,6 @@
{$form.payment_instrument_id.html} {help id="payment_instrument_id"} |
- {if $showCheckNumber || !$isOnline}
-
- {$form.check_number.label} |
- {$form.check_number.html} |
-
- {/if}
{$form.trxn_id.label} |
{$form.trxn_id.html} {help id="id-trans_id"} |
@@ -498,17 +491,6 @@
{/literal}{/if}
});
- {if !$contributionMode}
- {crmAPI var="checkVal" entity="OptionValue" action="getvalue" version="3" option_group_id="payment_instrument" name="Check" return="value"}
- {include file="CRM/common/showHideByFieldValue.tpl"
- trigger_field_id ="payment_instrument_id"
- trigger_value = $checkVal
- target_element_id ="checkNumber"
- target_element_type ="table-row"
- field_type ="select"
- invert = 0
- }
- {/if}
{/if} {* not delete mode if*}
{/if} {* closing of main custom data if *}
@@ -573,7 +555,9 @@ function buildAmount( priceSetId, financialtypeIds ) {
cj("#price_set_id option[value='']").html( manual );
cj('label[for="total_amount"]').text('{/literal}{ts}Price Sets{/ts}{literal}');
- cj("#financial_type_id option[value="+financialtypeIds[priceSetId]+"]").prop('selected', true);
+ if (financialtypeIds) {
+ cj("#financial_type_id option[value="+financialtypeIds[priceSetId]+"]").prop('selected', true);
+ }
cj(".crm-contribution-form-block-financial_type_id").css("display", "none");
}