X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FContribute%2FForm%2FContribution.tpl;h=3191ccf6e9a6eee2e2343f3a7fdb4e51e6d6eb98;hb=794d4fc06bd35653bbca108095055f9469bd02cf;hp=074d770c401ab17bd093111e57f15d0b8acbeccf;hpb=0de07a136b6c0ad10bdb430bc66195309148084c;p=civicrm-core.git diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index 074d770c40..3191ccf6e9 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -2,7 +2,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2016 | + | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -234,6 +234,56 @@ {/if} + {if !$contributionMode} + + + + + + + + + + + {if $showCheckNumber || !$isOnline} + + + + + {/if} + + + + + {if $email and $outBound_option != 2} + + + + {elseif $context eq 'standalone' and $outBound_option != 2 } + + + + + {/if} + + + + + + + + +
{$form.receive_date.label}{include file="CRM/common/jcalendar.tpl" elementName=receive_date}
+ {ts}The date this contribution was received.{/ts} +
{$form.payment_instrument_id.label}{$form.payment_instrument_id.html} {help id="payment_instrument_id"}
{$form.check_number.label}{$form.check_number.html}
{$form.trxn_id.label}{$form.trxn_id.html} {help id="id-trans_id"}
+ {$form.is_email_receipt.label}{$form.is_email_receipt.html}  + {ts 1=$email}Automatically email a receipt for this payment to %1?{/ts} +
{$form.receipt_date.label}{include file="CRM/common/jcalendar.tpl" elementName=receipt_date}
+ {ts}Date that a receipt was sent to the contributor.{/ts} +
+ {/if} + {include file='CRM/Core/BillingBlockWrapper.tpl'} @@ -301,63 +351,6 @@ {/if} - {if !$contributionMode} -
-
- {ts}Payment Details{/ts} -
-
- - - - - - - - - - - {if $showCheckNumber || !$isOnline} - - - - - {/if} - - - - - {if $email and $outBound_option != 2} - - - - {elseif $context eq 'standalone' and $outBound_option != 2 } - - - - - {/if} - - - - - - - - -
{$form.receive_date.label}{include file="CRM/common/jcalendar.tpl" elementName=receive_date}
- {ts}The date this contribution was received.{/ts} -
{$form.payment_instrument_id.label}{$form.payment_instrument_id.html} {help id="payment_instrument_id"}
{$form.check_number.label}{$form.check_number.html}
{$form.trxn_id.label}{$form.trxn_id.html} {help id="id-trans_id"}
- {$form.is_email_receipt.label}{$form.is_email_receipt.html}  - {ts 1=$email}Automatically email a receipt for this payment to %1?{/ts} -
{$form.receipt_date.label}{include file="CRM/common/jcalendar.tpl" elementName=receipt_date}
- {ts}Date that a receipt was sent to the contributor.{/ts} -
-
-
- {/if} - {if !$payNow}
{/if} @@ -485,7 +478,7 @@ $('#is_email_receipt', $form).click(function() { checkEmailDependancies(); }); - + function checkEmailDependancies( ) { if ($('#is_email_receipt', $form).prop('checked')) { $('#fromEmail', $form).show(); @@ -498,11 +491,11 @@ } {/literal}{if !$contributionMode}{literal} showHideCancelInfo($('#contribution_status_id', $form)); - + $('#contribution_status_id', $form).change(function() { showHideCancelInfo($('#contribution_status_id', $form)); }); - + function showHideCancelInfo(obj) { var cancelInfo_show_ids = [{/literal}{$cancelInfo_show_ids}{literal}]; if (cancelInfo_show_ids.indexOf(obj.val()) > -1) { @@ -520,9 +513,10 @@ }); {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 = '4' + trigger_value = $checkVal target_element_id ="checkNumber" target_element_type ="table-row" field_type ="select"