From: Coleman Watts Date: Thu, 3 Dec 2015 03:43:00 +0000 (-0500) Subject: CRM-17620 - Convert pledges to use expandRow.js X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=02bc4449a56ea13c2be542d36c0728aad65f6c05;p=civicrm-core.git CRM-17620 - Convert pledges to use expandRow.js --- diff --git a/templates/CRM/Pledge/Form/Selector.tpl b/templates/CRM/Pledge/Form/Selector.tpl index a4a38b33b2..248f8e8c5a 100644 --- a/templates/CRM/Pledge/Form/Selector.tpl +++ b/templates/CRM/Pledge/Form/Selector.tpl @@ -57,23 +57,13 @@ {$form.$cbName.html} {/if} - {if ! $single } -  {$row.contact_type}
- {/if} - - > - - - ^ - + {if ! $single } - {$row.sort_name} + + {$row.contact_type}   + {$row.sort_name} + {/if} {$row.pledge_amount|crmMoney:$row.pledge_currency} {$row.pledge_total_paid|crmMoney:$row.pledge_currency} @@ -85,14 +75,6 @@ {$row.pledge_status} {$row.action|replace:'xx':$row.pledge_id} - - -   - - {/foreach} {* Dashboard only lists 10 most recent pledges. *} @@ -107,17 +89,4 @@ {include file="CRM/common/pager.tpl" location="bottom"} -{* Build pledge payment details*} -{literal} - -{/literal} +{crmScript file='js/crm.expandRow.js'} diff --git a/templates/CRM/Pledge/Page/UserDashboard.tpl b/templates/CRM/Pledge/Page/UserDashboard.tpl index b1f861418d..afb4755e10 100644 --- a/templates/CRM/Pledge/Page/UserDashboard.tpl +++ b/templates/CRM/Pledge/Page/UserDashboard.tpl @@ -44,25 +44,17 @@ {$row.pledge_next_pay_date|truncate:10:''|crmDate} {$row.pledge_next_pay_amount|crmMoney:$row.pledge_currency} {$row.pledge_status} - {if $row.pledge_contribution_page_id and ($row.pledge_status_name neq 'Completed') and ( $row.contact_id eq $loggedUserID ) }{ts}Make Payment{/ts}
{/if} -
- {ts}open section{/ts}{ts}Payments{/ts} -
+ + {if $row.pledge_contribution_page_id and ($row.pledge_status_name neq 'Completed') and ( $row.contact_id eq $loggedUserID ) } + {ts}Make Payment{/ts}
+ {/if} + {ts}Payments{/ts} - - - {ts}open section{/ts}{ts}Payments{/ts} -
-
- - - {/foreach} {/strip} +{crmScript file='js/crm.expandRow.js'} {else}
@@ -107,26 +99,3 @@
{* main if close*} {/if} - -{* Build pledge payment details*} -{literal} - -{/literal}