From: Dave Greenberg Date: Wed, 9 Jul 2014 21:37:33 +0000 (-0700) Subject: CRM-13973 - set cancelled class in line item listings for line items that have been... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d7266ca8e704e708fd6c24d8a760948c27fbb868;p=civicrm-core.git CRM-13973 - set cancelled class in line item listings for line items that have been de-selected - e.g. QTY = 0. ---------------------------------------- * CRM-13973: https://issues.civicrm.org/jira/browse/CRM-13973 --- diff --git a/templates/CRM/Price/Page/LineItem.tpl b/templates/CRM/Price/Page/LineItem.tpl index feacbc347d..600e00826b 100644 --- a/templates/CRM/Price/Page/LineItem.tpl +++ b/templates/CRM/Price/Page/LineItem.tpl @@ -34,50 +34,53 @@ {ts}Participant {$priceset+1}{/ts} {$part.$priceset.info} {/if} - + - {if $context EQ "Membership"} - - {else} - - - - {/if} + {if $context EQ "Membership"} + + {else} + + + + {/if} - {if $pricesetFieldsCount} - {/if} - - {foreach from=$value item=line} - - - {if $context NEQ "Membership"} - - - {/if} - - {if $pricesetFieldsCount} {/if} - - {/foreach} + {if $pricesetFieldsCount} + + {/if} + + {foreach from=$value item=line} + + + {if $context NEQ "Membership"} + + + {/if} + + {if $pricesetFieldsCount} + + {/if} + + {/foreach}
{ts}Item{/ts}{ts}Fee{/ts}{ts}Qty{/ts}{ts}Unit Price{/ts}{ts}Total Price{/ts}{ts}Fee{/ts}{ts}Qty{/ts}{ts}Unit Price{/ts}{ts}Total Price{/ts}{ts}Total Participants{/ts}
{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}
{$line.description}
{/if}
{$line.qty}{$line.unit_price|crmMoney}{$line.line_total|crmMoney}{$line.participant_count}
{ts}Total Participants{/ts}
{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}
{$line.description}
{/if}
{$line.qty}{$line.unit_price|crmMoney}{$line.line_total|crmMoney}{$line.participant_count}
- {/if} + {/if} {/foreach}
-
- {if $context EQ "Contribution"} - {ts}Contribution Total{/ts}: - {elseif $context EQ "Event"} - {ts}Event Total{/ts}: - {elseif $context EQ "Membership"} - {ts}Membership Fee Total{/ts}: - {else} - {ts}Total Amount{/ts}: - {/if} +
+ {if $context EQ "Contribution"} + {ts}Contribution Total{/ts}: + {elseif $context EQ "Event"} + {ts}Event Total{/ts}: + {elseif $context EQ "Membership"} + {ts}Membership Fee Total{/ts}: + {else} + {ts}Total Amount{/ts}: + {/if} {$totalAmount|crmMoney} -
-
-
- {if $pricesetFieldsCount} +
+
+
+ {if $pricesetFieldsCount} {ts}Total Participants{/ts}: {foreach from=$lineItem item=pcount} {if $pcount neq 'skip'} @@ -93,14 +96,14 @@ {/if} {/foreach} {$totalcount} - {/if} -
-
+ {/if} +
+
{if $hookDiscount.message}
- ({$hookDiscount.message}) + ({$hookDiscount.message})
{/if} {literal}