Skip to content

Commit

Permalink
Merge pull request #11235 from clnlf/CRM-21389-UserDashBoard-Regions
Browse files Browse the repository at this point in the history
CRM-21389 Added pre and post regions to each entitys userdashboard
  • Loading branch information
eileenmcnaughton committed Nov 22, 2017
2 parents 3214aa7 + 6b3ac13 commit 43aeabc
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/CRM/Activity/Page/UserDashboard.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{crmRegion name="crm-activity-userdashboard-pre"}
{/crmRegion}
<div class="view-content">
{if $activity_rows}
{strip}
Expand Down Expand Up @@ -67,3 +69,5 @@ q="action=view&reset=1&id=`$row.activity_id`&cid=`$row.contact_id`&context=dashb
</div>
{/if}
</div>
{crmRegion name="crm-activity-userdashboard-post"}
{/crmRegion}
4 changes: 4 additions & 0 deletions templates/CRM/Contact/Page/View/RelationshipSelector.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
+--------------------------------------------------------------------+
*}
{* relationship selector *}
{crmRegion name="crm-contact-relationshipselector-pre"}
{/crmRegion}
<div class="crm-contact-relationship-{$context}">
<table
class="crm-contact-relationship-selector-{$context} crm-ajax-table"
Expand All @@ -43,3 +45,5 @@
</thead>
</table>
</div>
{crmRegion name="crm-contact-relationshipselector-post"}
{/crmRegion}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{crmRegion name="crm-contact-userdashboard-groupcontact-pre"}
{/crmRegion}
<div id="groupContact">
<div class="view-content">
{if $groupCount eq 0 }
Expand Down Expand Up @@ -131,3 +133,5 @@
{/if}
</div>
</div>
{crmRegion name="crm-contact-userdashboard-groupcontact-post"}
{/crmRegion}
4 changes: 4 additions & 0 deletions templates/CRM/Contribute/Page/PcpUserDashboard.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{crmRegion name="crm-contribute-pcp-userdashboard-pre"}
{/crmRegion}
<div class="view-content">

{if $pcpInfo}
Expand Down Expand Up @@ -88,3 +90,5 @@
{/if}

</div>
{crmRegion name="crm-contribute-pcp-userdashboard-post"}
{/crmRegion}
4 changes: 4 additions & 0 deletions templates/CRM/Contribute/Page/UserDashboard.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{crmRegion name="crm-contribute-userdashboard-pre"}
{/crmRegion}
<div class="view-content">
{if $contribute_rows}
{strip}
Expand Down Expand Up @@ -158,3 +160,5 @@
{/if}
{/if}
</div>
{crmRegion name="crm-contribute-userdashboard-post"}
{/crmRegion}
4 changes: 4 additions & 0 deletions templates/CRM/Event/Page/UserDashboard.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{crmRegion name="crm-event-userdashboard-pre"}
{/crmRegion}
<div class="view-content">
{if $event_rows}
{strip}
Expand Down Expand Up @@ -70,3 +72,5 @@
</div>
{/if}
</div>
{crmRegion name="crm-event-userdashboard-post"}
{/crmRegion}
4 changes: 4 additions & 0 deletions templates/CRM/Member/Page/UserDashboard.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{crmRegion name="crm-member-userdashboard-pre"}
{/crmRegion}
<div class="view-content">
{if $activeMembers}
<div id="memberships">
Expand Down Expand Up @@ -92,3 +94,5 @@
</div>
{/if}
</div>
{crmRegion name="crm-member-userdashboard-post"}
{/crmRegion}
4 changes: 4 additions & 0 deletions templates/CRM/Pledge/Page/UserDashboard.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{crmRegion name="crm-pledge-userdashboard-pre"}
{/crmRegion}
{if $context eq 'user'}
<div class="view-content">
{if $pledge_rows}
Expand Down Expand Up @@ -99,3 +101,5 @@
</div>
{* main if close*}
{/if}
{crmRegion name="crm-pledge-userdashboard-post"}
{/crmRegion}

0 comments on commit 43aeabc

Please sign in to comment.