Skip to content

Commit

Permalink
Added pre and post regions to each entitys userdashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
clnlf committed Nov 3, 2017
1 parent 7314917 commit 6b3ac13
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 6b3ac13

Please sign in to comment.