Revision 55528
Added by Michele Artini almost 5 years ago
modules/dnet-data-transformation-service/trunk/src/main/resources/eu/dnetlib/functionality/modular/ui/views/ui/transform.st | ||
---|---|---|
21 | 21 |
</div> |
22 | 22 |
|
23 | 23 |
<button class="btn btn-sm btn-primary" ng-click="transform(rule, inputRecord)" ng-disabled="!rule || !inputRecord">transform</button> |
24 |
<button class="btn btn-sm btn-default pull-right" ng-click="showProfile(rule)" ng-disabled="!rule">show transformation rule</button> |
|
24 |
|
|
25 |
<button disabled="disabled" class="btn btn-sm btn-default pull-right" ng-if="!rule">show transformation rule</button> |
|
26 |
<a ng-href="./isManager.do#/profile/{{rule | encodeURIComponent}}" class="btn btn-sm btn-default pull-right" ng-if="rule" >show transformation rule</a> |
|
27 |
|
|
25 | 28 |
</form> |
26 | 29 |
|
27 | 30 |
<br /> |
modules/dnet-data-transformation-service/trunk/src/main/resources/eu/dnetlib/web/resources/js/transform/transform.js | ||
---|---|---|
21 | 21 |
}); |
22 | 22 |
|
23 | 23 |
} |
24 |
|
|
25 |
$scope.showProfile = function(rule) { |
|
26 |
location.href = './isManager.do#/profile/' + encodeURIComponent(rule); |
|
27 |
} |
|
28 |
|
|
29 | 24 |
}); |
25 |
|
|
26 |
module.filter('encodeURIComponent', function() { |
|
27 |
return window.encodeURIComponent; |
|
28 |
}); |
Also available in: Unified diff
show rule in a new tab