Fixed several schedule action buttons that were defining href's. Got the job templates schedule view rendering so that other features can be worked on until this view is fully updated.

This commit is contained in:
Michael Abashian 2016-01-27 11:47:44 -05:00
parent 56d0cbfeff
commit dfb02aea4f
6 changed files with 10 additions and 8 deletions

View File

@ -236,6 +236,10 @@ export function JobTemplatesList($scope, $rootScope, $location, $log,
$scope.submitJob = function (id) {
PlaybookRun({ scope: $scope, id: id });
};
$scope.scheduleJob = function (id) {
$state.transitionTo('jobTemplateSchedules', {id: id});
}
}
JobTemplatesList.$inject = ['$scope', '$rootScope', '$location', '$log',

View File

@ -711,7 +711,7 @@ export default
scope: scope,
searchSize: (searchSize) ? searchSize : 'col-lg-6 col-md-6 col-sm-6 col-xs-12',
showSearch: true,
title: false
title: true
});
SearchInit({

View File

@ -65,7 +65,7 @@ export default
schedule: {
label: 'Schedule',
mode: 'all',
ngHref: '#/job_templates/{{ job_template.id }}/schedules',
ngClick: 'scheduleJob(job_template.id)',
awToolTip: 'Schedule future job template runs',
dataPlacement: 'top',
},

View File

@ -52,7 +52,7 @@ export default
schedule: {
label: 'Schedule',
mode: 'all',
ngHref: '#/job_templates/{{ job_template.id }}/schedules',
ngClick: 'scheduleJob(job_template.id)',
awToolTip: 'Schedule future job template runs',
dataPlacement: 'top',
},

View File

@ -13,7 +13,7 @@ export default
iterator: 'schedule',
selectTitle: '',
editTitle: 'Schedules',
well: false,
listTitle: 'Schedules',
index: false,
hover: true,

View File

@ -1,7 +1,5 @@
<div class="row">
<div class="col-sm-12">
<div id="schedule-list-target"></div>
</div>
<div class="Panel">
<div id="schedule-list-target"></div>
</div>
<div ng-include="'/static/partials/schedule_dialog.html'"></div>