Merge pull request #5367 from atif-shaikh/CRM-16064WebTest
[civicrm-core.git] / templates / CRM / Event / Form / ParticipantFeeSelection.tpl
index 79163bc48c83c1d7c68838c92cb09626a6369867..3abf6ef13da6add732f7c32dd5c5c977659ec3a7 100644 (file)
@@ -1,6 +1,6 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -27,7 +27,9 @@
 {literal}
 <script type='text/javascript'>
 function display(totalfee) {
-  totalfee += {/literal}{$optionFullTotalAmount}{literal};
+  {/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;
@@ -104,7 +106,7 @@ CRM.$(function($) {
     <div class="icon inform-icon"></div>&nbsp;{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>
@@ -120,9 +122,9 @@ CRM.$(function($) {
        <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'>
@@ -132,17 +134,17 @@ CRM.$(function($) {
         </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'>
            {$paymentInfo.paid|crmMoney}<br/>
-           <a class="crm-hover-button crm-popup medium-popup" href='{crmURL p="civicrm/payment" q="view=transaction&action=browse&cid=`$contactId`&id=`$paymentInfo.id`&component=`$paymentInfo.component`&context=transaction"}'>&raquo; {ts}view payments{/ts}</a>
+           <a class="crm-hover-button action-item crm-popup medium-popup" href='{crmURL p="civicrm/payment" q="view=transaction&action=browse&cid=`$contactId`&id=`$paymentInfo.id`&component=`$paymentInfo.component`&context=transaction"}'><span class="icon ui-icon-zoomin"></span> {ts}view payments{/ts}</a>
          </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'}
-       {/if}    
+       {/if}
       </table>
     </fieldset>
   {/if}
@@ -201,7 +203,7 @@ CRM.$(function($) {
 <script type='text/javascript'>
 CRM.$(function($) {
   var $form = $('form.{/literal}{$form.formClass}{literal}');
-  cj('.total_amount-section').remove(); 
+  cj('.total_amount-section').remove();
 
   cj($form).submit(function(e) {
     var partiallyPaid = {/literal}{$partiallyPaid}{literal};