Add regions to the Contribute Dashboard Page
authorDamilare Adedoyin <dadedoyin@wikimedia.org>
Sat, 22 Apr 2023 09:41:39 +0000 (10:41 +0100)
committerDamilare Adedoyin <dadedoyin@wikimedia.org>
Sat, 22 Apr 2023 09:42:26 +0000 (10:42 +0100)
templates/CRM/Contribute/Page/DashBoard.tpl

index 86ea41e61392dbc5b7216e7a9b0d65aea904c8c3..f70ec47d712debff5f86e636b2c222661c8658d8 100644 (file)
@@ -9,6 +9,7 @@
 *}
 {* CiviContribute DashBoard (launch page) *}
 {if $buildTabularView}
+{crmRegion name="contribute-dashboard-reports"}
 <table class="report">
 <tr class="columnheader-dark">
     <th scope="col">{ts}Period{/ts}</th>
     <td><a href="{$startToDate.Valid.url}">{ts}View details{/ts}...</a></td>
 </tr>
 </table>
+{/crmRegion}
+
 {elseif $buildChart}
+{crmRegion name="contribute-dashboard-charts"}
   {include file = "CRM/Contribute/Form/ContributionCharts.tpl"}
+{/crmRegion}
 {else}
+{crmRegion name="contribute-dashboard-summary"}
   <h3>{ts}Contribution Summary{/ts} {help id="id-contribute-intro"}</h3>
       <div id="mainTabContainer" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
         <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
 </ul>
 <div id="chartData"></div>
 </div>
-<div class="spacer"></div>
+{/crmRegion}
 
+{crmRegion name="contribute-dashboard-tables"}
+<div class="spacer"></div>
 {if $pager->_totalItems}
     <h3>{ts}Recent Contributions{/ts}</h3>
     <div>
         {include file="CRM/Contribute/Form/Selector.tpl" context="dashboard"}
     </div>
 {/if}
+{/crmRegion}
 {/if}