From 38502d985aa18d05c4ff865032e049461f707204 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 3 Dec 2015 00:05:18 -0500 Subject: [PATCH] CRM-17620 - Convert cases to use expandRow.js --- css/civicrmNavigation.css | 2 +- templates/CRM/Case/Form/Selector.tpl | 44 +------------------ templates/CRM/Case/Page/DashboardSelector.tpl | 44 +------------------ 3 files changed, 5 insertions(+), 85 deletions(-) diff --git a/css/civicrmNavigation.css b/css/civicrmNavigation.css index f7260f6f9f..c5c94c2c38 100644 --- a/css/civicrmNavigation.css +++ b/css/civicrmNavigation.css @@ -161,4 +161,4 @@ li.menu-separator{ /* This ensures the drop-down menus appear at the right height */ #civicrm-menu > li.menumain { height: 19px !important; -} \ No newline at end of file +} diff --git a/templates/CRM/Case/Form/Selector.tpl b/templates/CRM/Case/Form/Selector.tpl index 3b01c20a40..1d2c55caaf 100644 --- a/templates/CRM/Case/Form/Selector.tpl +++ b/templates/CRM/Case/Form/Selector.tpl @@ -55,20 +55,7 @@ {$form.$cbName.html} {/if} - - {ts}Show recent activities{/ts} - - - {ts}Hide activities{/ts} + {if !$single} @@ -85,22 +72,6 @@ {if $row.case_scheduled_activity_type} {$row.case_scheduled_activity_type}
{$row.case_scheduled_activity_date|crmDate}{else}---{/if} {$row.action|replace:'xx':$row.case_id}{$row.moreActions|replace:'xx':$row.case_id} - - - - -{if $context EQ 'Search'} - -{else} - -{/if} -
- - - {/foreach} {* Dashboard only lists 10 most recent cases. *} @@ -114,15 +85,4 @@ {/strip} {include file="CRM/common/pager.tpl" location="bottom"} - -{* Build case details*} -{literal} - - -{/literal} +{crmScript file='js/crm.expandRow.js'} diff --git a/templates/CRM/Case/Page/DashboardSelector.tpl b/templates/CRM/Case/Page/DashboardSelector.tpl index f2b4c28842..2546998e01 100644 --- a/templates/CRM/Case/Page/DashboardSelector.tpl +++ b/templates/CRM/Case/Page/DashboardSelector.tpl @@ -43,15 +43,7 @@ - {*  {$row.contact_type_icon}
*} - - {ts}open section{/ts} - - - {ts}open section{/ts} + {$row.sort_name}{if $row.phone}
{$row.phone}{/if}
{ts}Case ID{/ts}: {$row.case_id} @@ -90,16 +82,6 @@ {$row.action}{$row.moreActions} - - - - -
- - - {/foreach} {* Dashboard only lists 10 most recent casess. *} @@ -113,26 +95,4 @@ {/strip} -{* Build case details*} -{literal} - -{/literal} +{crmScript file='js/crm.expandRow.js'} -- 2.25.1