{literal}
<script type='text/javascript'>
function display(totalfee) {
+ {/literal}{if $optionFullTotalAmount}
+ totalfee += {$optionFullTotalAmount};{/if}
+ {literal};
// totalfee is monetary, round it to 2 decimal points so it can
// go as a float - CRM-13491
totalfee = Math.round(totalfee*100)/100;
<div class="icon inform-icon"></div> {ts}You will not be able to send an automatic email receipt for this payment because there is no email address recorded for this contact. If you want a receipt to be sent when this payment is recorded, click Cancel and then click Edit from the Summary tab to add an email address before recording the payment.{/ts}
</div>
{/if}
- <table class="form-layout">
+ <table class="form-layout">
<tr>
<td class="font-size12pt label"><strong>{ts}Participant{/ts}</strong></td><td class="font-size12pt"><strong>{$displayName}</strong></td>
</tr>
<td class="label">{ts}Current Selections{/ts}</td>
<td>{include file="CRM/Price/Page/LineItem.tpl" context="Event"}</td>
</tr>
- {/if}
+ {/if}
</table>
-
+
{if $priceSet.fields}
<fieldset id="priceset" class="crm-group priceset-group">
<table class='form-layout'>
</tr>
{if $paymentInfo}
<tr><td></td><td>
- <div class='crm-section'>
+ <div class='crm-section'>
<div class='label'>{ts}Updated Fee(s){/ts}</div><div id="pricevalue" class='content updated-fee'></div>
<div class='label'>{ts}Total Paid{/ts}</div>
<div class='content'>
<div class='label'><strong>{ts}Balance Owed{/ts}</strong></div><div class='content'><strong id='balance-fee'></strong></div>
</div>
{include file='CRM/Price/Form/Calculate.tpl' currencySymbol=$currencySymbol noCalcValueDisplay='false' displayOveride='true'}
- {/if}
+ {/if}
</table>
</fieldset>
{/if}
{literal}
<script type='text/javascript'>
CRM.$(function($) {
- cj('.total_amount-section').remove();
+ var $form = $('form.{/literal}{$form.formClass}{literal}');
+ cj('.total_amount-section').remove();
- cj('#ParticipantFeeSelection').submit(function(e) {
+ cj($form).submit(function(e) {
var partiallyPaid = {/literal}{$partiallyPaid}{literal};
var pendingRefund = {/literal}{$pendingRefund}{literal};
var statusId = cj('#status_id').val();