{*
+--------------------------------------------------------------------+
- | 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>
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);