Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-06-30-11-58-01
[civicrm-core.git] / templates / CRM / Price / Page / LineItem.tpl
index a5a99d40be215d85e0004b86ef5a404ab61df8f8..feacbc347d159d726cbe01d2715428176a77e83b 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
     {/if}
     <table>
             <tr class="columnheader">
-                   <th>{ts}Item{/ts}</th>
-              {if $context EQ "Membership"}    
-                   <th class="right">{ts}Fee{/ts}</th>
+        <th>{ts}Item{/ts}</th>
+              {if $context EQ "Membership"}
+        <th class="right">{ts}Fee{/ts}</th>
                 {else}
-                   <th class="right">{ts}Qty{/ts}</th>
+        <th class="right">{ts}Qty{/ts}</th>
                     <th class="right">{ts}Unit Price{/ts}</th>
-                   <th class="right">{ts}Total Price{/ts}</th>
-               {/if}
-                
-               {if $pricesetFieldsCount}
-                   <th class="right">{ts}Total Participants{/ts}</th>{/if} 
+        <th class="right">{ts}Total Price{/ts}</th>
+    {/if}
+
+     {if $pricesetFieldsCount}
+        <th class="right">{ts}Total Participants{/ts}</th>{/if}
             </tr>
             {foreach from=$value item=line}
             <tr>
                 <td>{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div class="description">{$line.description}</div>{/if}</td>
-               {if $context NEQ "Membership"}
-                   <td class="right">{$line.qty}</td>
+    {if $context NEQ "Membership"}
+        <td class="right">{$line.qty}</td>
                     <td class="right">{$line.unit_price|crmMoney}</td>
-               {/if}
+    {/if}
                 <td class="right">{$line.line_total|crmMoney}</td>
-               {if $pricesetFieldsCount}<td class="right">{$line.participant_count}</td> {/if}
+           {if $pricesetFieldsCount}<td class="right">{$line.participant_count}</td> {/if}
             </tr>
             {/foreach}
     </table>
@@ -112,7 +112,7 @@ cj(document).ready(function($) {
     var format = '{$config->moneyformat}';
     var currency = '{$currency}';
     var currencySymbol = '{$currencySymbol}';
-  {literal} 
+  {literal}
   // Todo: This function should be a utility
   function moneyFormat(amount) {
     amount = parseFloat(amount).toFixed(2);