<table class='form-layout'>
<tr class="crm-event-eventfees-form-block-price_set_amount">
<td class="label" style="padding-top: 10px;">{$form.amount.label}</td>
- <td class="view-value"><table class="form-layout">{include file="CRM/Price/Form/PriceSet.tpl" extends="Event" dontInclCal="true" context="participant"}</table></td>
+ <td class="view-value"><table class="form-layout">{include file="CRM/Price/Form/PriceSet.tpl" extends="Event" noCalcValueDisplay=0 context="participant"}</table></td>
</tr>
{if $paymentInfo}
<tr><td></td><td>
</div>
<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'}
+ {include file='CRM/Price/Form/Calculate.tpl' currencySymbol=$currencySymbol noCalcValueDisplay=1 displayOveride='true'}
{/if}
</table>
</fieldset>
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
-{if $noCalcValueDisplay neq 'false'}
+
+{assign var='hideTotal' value=$quickConfig+$noCalcValueDisplay}
<div id="pricesetTotal" class="crm-section section-pricesetTotal">
- <div class="label" id="pricelabel"><label>
- {if ( $extends eq 'Contribution' ) || ( $extends eq 'Membership' )}
- {ts}Total Amount{/ts}{else}{ts}Total Fee(s){/ts}
- {if $isAdditionalParticipants} {ts}for this participant{/ts}{/if}
- {/if}</label></div>
- <div class="content calc-value" id="pricevalue" ></div>
+ {if !$hideTotal}
+ <div class="label" id="pricelabel">
+ <label>
+ {if ( $extends eq 'Contribution' ) || ( $extends eq 'Membership' )}
+ {ts}Total Amount{/ts}{else}{ts}Total Fee(s){/ts}
+ {if $isAdditionalParticipants} {ts}for this participant{/ts}{/if}
+ {/if}
+ </label>
+ </div>
+ {/if}
+ <div class="content calc-value" {if $hideTotal}style="display:none;"{/if} id="pricevalue" ></div>
</div>
-{/if}
+
<script type="text/javascript">
{literal}
<div class="messages help">{$priceSet.help_post}</div>
{/if}
-{* Include the total calculation widget if this is NOT a quickconfig event/contribution page. *}
-{if !$quickConfig and !$dontInclCal}
{include file="CRM/Price/Form/Calculate.tpl"}
-{/if}
</div>
{/crmRegion}