Commit 6272aa5c by Vishal Kadam

Merge pull request #9 from MPR-Global/HDPDGI-43

Added back to result in details page
parents 57fa7b9a 4d597088
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
'use strict'; 'use strict';
angular.module('dgc.details').controller('DetailsController', ['$scope', '$stateParams', 'DetailsResource', angular.module('dgc.details').controller('DetailsController', ['$window', '$scope', '$stateParams', 'DetailsResource',
function($scope, $stateParams, DetailsResource) { function($window, $scope, $stateParams, DetailsResource) {
$scope.tableName = false; $scope.tableName = false;
DetailsResource.get({ DetailsResource.get({
...@@ -41,5 +41,10 @@ angular.module('dgc.details').controller('DetailsController', ['$scope', '$state ...@@ -41,5 +41,10 @@ angular.module('dgc.details').controller('DetailsController', ['$scope', '$state
tableName: $scope.tableName tableName: $scope.tableName
}); });
}; };
$scope.goBack = function() {
$window.history.back();
};
} }
]); ]);
...@@ -16,8 +16,11 @@ ...@@ -16,8 +16,11 @@
~ limitations under the License. ~ limitations under the License.
--> -->
<div class="row"> <div class="row" data-ng-controller="DetailsController">
<div role="tabpanel" class="col-lg-12" data-ng-controller="DetailsController"> <ul class="breadcrumb">
<li><button class="btn btn-link" data-ng-click="goBack()">Back To Result</button> </li>
</ul>
<div role="tabpanel" class="col-lg-12">
<h2>Name: {{details.values.name}}</h2> <h2>Name: {{details.values.name}}</h2>
<h4>Description: {{details.values.description}}</h4> <h4>Description: {{details.values.description}}</h4>
<tabset> <tabset>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment