mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
added breadcrumbs to adhoc form page
This commit is contained in:
parent
d262ce22a0
commit
65d20e646d
@ -22,7 +22,21 @@ export function AdhocCtrl($scope, $rootScope, $location, $routeParams,
|
||||
form = AdhocForm,
|
||||
master = {},
|
||||
id = $routeParams.inventory_id,
|
||||
choicesReadyCount = 0;
|
||||
choicesReadyCount = 0,
|
||||
data;
|
||||
|
||||
$scope.inv_id = id;
|
||||
|
||||
Rest.setUrl(GetBasePath('inventory') + $routeParams.inventory_id + '/');
|
||||
Rest.get(data)
|
||||
.success(function (data) {
|
||||
$scope.inv_name = data.name;
|
||||
})
|
||||
.error(function (data, status) {
|
||||
ProcessErrors($scope, data, status, form, { hdr: 'Error!',
|
||||
msg: 'Failed to get inventory name. POST returned ' +
|
||||
'status: ' + status });
|
||||
});
|
||||
|
||||
// inject the adhoc command form
|
||||
generator.inject(form, { mode: 'edit', related: true, scope: $scope });
|
||||
|
@ -1,3 +1,8 @@
|
||||
<breadcrumbs>
|
||||
<breadcrumb path="/inventories" title="Inventories"></breadcrumb>
|
||||
<breadcrumb path="/inventories/{{inv_id}}/manage" title="{{inv_name}}"></breadcrumb>
|
||||
<breadcrumb path="/inventories/{{inv_id}}/adhoc" title="Run Command"></breadcrumb>
|
||||
</breadcrumbs>
|
||||
<div class="tab-pane" id="credentials">
|
||||
<div ng-cloak id="htmlTemplate">
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user