-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added resolve dependency to the parent dashboard state to make the
organization contact information available to all states. - Added error page for invalid contact IDs. - Updated page title to include the name of the organization contact (note: for the crmPageTitle directive to work, the AngularJS base page cannot have a custom title -- it must be named "CiviCRM"; see civicrm/civicrm-core#13337). - Updated file name for DashCtrl to match conventions.
- Loading branch information
1 parent
ac9fe95
commit 1d73ae1
Showing
8 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(function(angular, $, _) { | ||
|
||
angular.module('orgdash') | ||
.controller('DashCtrl', function($scope, orgContact) { | ||
$scope.name = orgContact.display_name; | ||
}); | ||
|
||
})(angular, CRM.$, CRM._); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<crm-profile-form | ||
name="orgDetails" | ||
profile-id="profileId" | ||
contact-id="orgContact.id"> | ||
contact-id="orgId"> | ||
</crm-profile-form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<h1 crm-page-title>{{ts('Error')}}</h1> | ||
|
||
<p>{{ts('Could not access requested organization dashboard. Likely causes:')}}</p> | ||
<ul> | ||
<li>{{ts('The contact does not exist.')}}</li> | ||
<li>{{ts("The contact exists but does not represent an organization.")}}</li> | ||
<li>{{ts("The contact exists, but you don't have permission to access it.")}}</li> | ||
</ul> |