mirror of
https://github.com/ansible/awx.git
synced 2026-04-11 21:19:22 -02:30
added breadcrumbs to adhoc form page
This commit is contained in:
@@ -22,7 +22,21 @@ export function AdhocCtrl($scope, $rootScope, $location, $routeParams,
|
|||||||
form = AdhocForm,
|
form = AdhocForm,
|
||||||
master = {},
|
master = {},
|
||||||
id = $routeParams.inventory_id,
|
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
|
// inject the adhoc command form
|
||||||
generator.inject(form, { mode: 'edit', related: true, scope: $scope });
|
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 class="tab-pane" id="credentials">
|
||||||
<div ng-cloak id="htmlTemplate">
|
<div ng-cloak id="htmlTemplate">
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user