From 09f7a07dc238d4cdc49e8d8e533825c876d871e8 Mon Sep 17 00:00:00 2001 From: Guanhuan Chen Date: Wed, 13 May 2015 14:06:43 +0100 Subject: [PATCH] Fix UserDashboard.tpl indentations --- .../CRM/Contribute/Page/UserDashboard.tpl | 187 +++++++++--------- 1 file changed, 97 insertions(+), 90 deletions(-) diff --git a/templates/CRM/Contribute/Page/UserDashboard.tpl b/templates/CRM/Contribute/Page/UserDashboard.tpl index 33a1a32b51..1d42711c73 100644 --- a/templates/CRM/Contribute/Page/UserDashboard.tpl +++ b/templates/CRM/Contribute/Page/UserDashboard.tpl @@ -26,62 +26,64 @@
{if $contribute_rows} {strip} - - - - - - - - - {if $invoicing && $invoices} - - {/if} - - - {foreach from=$contribute_rows item=row} - - - - - - +
{ts}Total Amount{/ts}{ts}Financial Type{/ts}{ts}Received date{/ts}{ts}Receipt Sent{/ts}{ts}Status{/ts}
{$row.total_amount|crmMoney:$row.currency} {if $row.amount_level } - {$row.amount_level} {/if} - {if $row.contribution_recur_id} -
{ts}(Recurring Contribution){/ts} - {/if} -
{$row.financial_type}{$row.receive_date|truncate:10:''|crmDate}{$row.receipt_date|truncate:10:''|crmDate}{$row.contribution_status}
+ + + + + + {if $invoicing && $invoices} - {if $row.contribution_status_name != 'Cancelled'} - + {/if} + + + {foreach from=$contribute_rows item=row} + + - {else} - - {/if} - {/if} - - {/foreach} -
{ts}Total Amount{/ts}{ts}Financial Type{/ts}{ts}Received date{/ts}{ts}Receipt Sent{/ts}{ts}Status{/ts} - {assign var='id' value=$row.contribution_id} - {assign var='contact_id' value=$row.contact_id} - {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id"} - {if call_user_func(array('CRM_Core_Permission','check'), 'view my invoices') OR call_user_func(array('CRM_Core_Permission','check'), 'access CiviContribute')} - - - {if $row.contribution_status != 'Refunded'} - {ts}Print Invoice{/ts} - {else} - {ts}Print Invoice and Credit Note{/ts} +
{$row.total_amount|crmMoney:$row.currency} {if $row.amount_level } - {$row.amount_level} {/if} + {if $row.contribution_recur_id} +
+ {ts}(Recurring Contribution){/ts} {/if} - - {/if}
+ {$row.financial_type} + {$row.receive_date|truncate:10:''|crmDate} + {$row.receipt_date|truncate:10:''|crmDate} + {$row.contribution_status} + {if $invoicing && $invoices} + {if $row.contribution_status_name != 'Cancelled'} + + {assign var='id' value=$row.contribution_id} + {assign var='contact_id' value=$row.contact_id} + {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id"} + {if call_user_func(array('CRM_Core_Permission','check'), 'view my invoices') OR call_user_func(array('CRM_Core_Permission','check'), 'access CiviContribute')} + + + {if $row.contribution_status != 'Refunded'} + {ts}Print Invoice{/ts} + {else} + {ts}Print Invoice and Credit Note{/ts} + {/if} + + {/if} + + {else} + + {/if} + {/if} + + {/foreach} + {/strip} {if $contributionSummary.total.count gt 12} {ts}Contact us for information about contributions prior to those listed above.{/ts} {/if} {else}
-
- {ts}There are no contributions on record for you.{/ts} +
+ {ts}There are no contributions on record for you.{/ts}
{/if} @@ -89,31 +91,32 @@ {if $honor} {if $honorRows} {strip} -
- {ts}Contributions made in your honor{/ts}: -
- - - - - - - - - - - {foreach from=$honorRows item=row} - - - - - - - - +
+ {ts}Contributions made in your honor{/ts}: +
+
{ts}Contributor{/ts}{ts}Amount{/ts}{ts}Type{/ts}{ts}Financial Type{/ts}{ts}Received date{/ts}{ts}Receipt Sent{/ts}{ts}Status{/ts}
{$row.display_name}{$row.amount}{$row.honor_type}{$row.type}{$row.receive_date|truncate:10:''|crmDate}{$row.receipt_date|truncate:10:''|crmDate}{$row.contribution_status}
+ + + + + + + + - {/foreach} -
{ts}Contributor{/ts}{ts}Amount{/ts}{ts}Type{/ts}{ts}Financial Type{/ts}{ts}Received date{/ts}{ts}Receipt Sent{/ts}{ts}Status{/ts}
+ {foreach from=$honorRows item=row} + + {$row.display_name} + {$row.amount} + {$row.honor_type} + {$row.type} + {$row.receive_date|truncate:10:''|crmDate} + {$row.receipt_date|truncate:10:''|crmDate} + {$row.contribution_status} + + {/foreach} + {/strip} {/if} {/if} @@ -121,26 +124,30 @@ {if $recur} {if $recurRows} {strip} -
- - - - - - - - - {foreach from=$recurRows item=row key=id} - - - - - - +
+
{ts}Terms:{/ts}{ts}Status{/ts}{ts}Installments{/ts}{ts}Created{/ts}
every {$recurRows.$id.frequency_interval} {$recurRows.$id.frequency_unit} for {$recurRows.$id.installments} installments{$recurRows.$id.recur_status}{if $recurRows.$id.completed}{$recurRows.$id.completed}/{$recurRows.$id.installments} - {else}0/{$recurRows.$id.installments} {/if}{$recurRows.$id.create_date|crmDate}{$recurRows.$id.action|replace:'xx':$recurRows.id}
+ + + + + + - {/foreach} -
{ts}Terms:{/ts}{ts}Status{/ts}{ts}Installments{/ts}{ts}Created{/ts}
+ {foreach from=$recurRows item=row key=id} + + + every {$recurRows.$id.frequency_interval} {$recurRows.$id.frequency_unit} + for {$recurRows.$id.installments} installments + + {$recurRows.$id.recur_status} + {if $recurRows.$id.completed}{$recurRows.$id.completed} + /{$recurRows.$id.installments} + {else}0/{$recurRows.$id.installments} {/if} + {$recurRows.$id.create_date|crmDate} + {$recurRows.$id.action|replace:'xx':$recurRows.id} + + {/foreach} + {/strip} {/if} {/if} -- 2.25.1