+--------------------------------------------------------------------+
*}
{* This template is used for adding/editing/deleting offline Event Registrations *}
-{if $showFeeBlock }
+{if $showFeeBlock}
{if $priceSet}
<div id='validate_pricefield' class='messages crm-error hiddenElement'></div>
{literal}
// change the status to default 'partially paid' for partial payments
var feeAmount;
var userModifiedAmount;
- var partiallyPaidStatusId = {/literal}{$partiallyPaidStatusId}{literal};
cj('#total_amount')
.focus(
userModifiedAmount = cj(this).val();
userModifiedAmount = parseInt(userModifiedAmount);
if (userModifiedAmount < feeAmount) {
- cj('#status_id').val(partiallyPaidStatusId);
+ cj('#status_id').val(CRM.partiallyPaidStatusId);
}
}
);
function(e) {
var userSubmittedStatus = cj('#status_id').val();
var statusLabel = cj('#status_id option:selected').text();
- if (userModifiedAmount < feeAmount && userSubmittedStatus != partiallyPaidStatusId) {
+ if (userModifiedAmount < feeAmount && userSubmittedStatus != CRM.partiallyPaidStatusId) {
var result = confirm('Payment amount is less than the amount owed. Expected participant status is \'Partially paid\'. Are you sure you want to set the participant status to ' + statusLabel + '? Click OK to continue, Cancel to change your entries.');
if (result == false) {
e.preventDefault();
{/literal}
{/if}
{include file="CRM/Event/Form/EventFees.tpl"}
-
-{elseif $cdType }
+{elseif $cdType}
{include file="CRM/Custom/Form/CustomData.tpl"}
{else}
{if $participantMode == 'test' }
{if !$participantMode and !$email and $outBound_option != 2 }
{assign var='profileCreateCallback' value=1}
{/if}
- {include file="CRM/Contact/Form/NewContact.tpl"}
+ <tr class="crm-participant-form-contact-id">
+ <td class="label">{$form.contact_id.label}</td>
+ <td>{$form.contact_id.html}</td>
+ </tr>
{/if}
{if $action EQ 2}
{if $additionalParticipants} {* Display others registered by this participant *}
<span class="description">{ts}Source for this registration (if applicable).{/ts}</span></td>
</tr>
</table>
-
+ {if $participantId}
+ <table class='form-layout'>
+ <tr>
+ <td class='label'>{ts}Fees{/ts}</td>
+ {* this is where the payment info is shown using CRM/Contribute/Page/PaymentInfo.tpl tpl*}
+ <td id='payment-info'></td>
+ </tr>
+ </table>
+ {/if}
{* Fee block (EventFees.tpl) is injected here when an event is selected. *}
<div id="feeBlock"></div>
<fieldset>
</div>
</div>
{if $action eq 1 or $action eq 2}
+ {if $participantId}
+ {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='event-payment'}
+ {/if}
{literal}
<script type="text/javascript">
// event select