-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86c0e6d
commit d34b820
Showing
8 changed files
with
93 additions
and
5 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 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
(function () { | ||
'use strict'; | ||
|
||
angular.module('selfService') | ||
.controller('AboutUsCtrl', ['$scope', '$rootScope', '$state', '$stateParams', 'AboutUsService', AboutUsCtrl]); | ||
|
||
function AboutUsCtrl ($scope, $rootScope, $state, $stateParams, AboutUsService) { | ||
|
||
var vm=this; | ||
vm.org = null; // it is an array, when data is available then vm.org = {JSON data}; | ||
vm.getDetails = getDetails; | ||
|
||
function getDetails() { | ||
AboutUsService.getOrgDetails.get().$promise.then(function (data){ | ||
vm.org =data; | ||
}) | ||
} | ||
} | ||
})(); |
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,39 @@ | ||
<div> | ||
<md-content> | ||
<div ng-if="!vm.org"> | ||
<md-card> | ||
<md-card-title> | ||
<md-card-title-text> | ||
<span class="md-title">No details to show</span> | ||
</md-card-title-text> | ||
</md-card-title> | ||
</md-card> | ||
</div> | ||
<div layout="column" ng-if="vm.org"> | ||
<div layout="row" layout-xs="column"> | ||
<div flex="40"> | ||
<md-card> | ||
<md-whiteframe class="md-whiteframe-7dp" layout layout-align="center center"> | ||
<img ng-src="vm.org.logo" class="md-media-sm org-logo-height"> | ||
</md-whiteframe> | ||
</md-card> | ||
</div> | ||
<div class="org-name" flex> | ||
<md-card> | ||
<md-whiteframe class="md-whiteframe-7dp" layout layout-align="center center" flex> | ||
<h2>{{vm.org.name}}</h2> | ||
</md-whiteframe> | ||
</md-card> | ||
</div> | ||
</div> | ||
<div class="org-descripion" flex> | ||
<md-card> | ||
<md-whiteframe class="md-whiteframe-7dp" layout="column" layout-align="center center"> | ||
<h2>{{'label.heading.aboutUs' | translate}}</h2> | ||
<p class="org-description-contents">{{vm.org.description}}</p> | ||
</md-whiteframe> | ||
</md-card> | ||
</div> | ||
</div> | ||
</md-content> | ||
</div> |
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,13 @@ | ||
(function (){ | ||
'use strict'; | ||
|
||
angular.module('selfService') | ||
.service('AboutUsService', ['$q', '$http', '$rootScope', '$state', '$resource', AboutUsService]); | ||
|
||
function AboutUsService($q,$http,$rootScope,$state,$resource){ | ||
|
||
this.getOrgDetails = function () { | ||
return $resource(''); // enter the URL of the organisations details. | ||
}; | ||
} | ||
})(); |
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