mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 03:17:39 -02:30
Labels expects the iterator to be template not job_template
This commit is contained in:
@@ -267,7 +267,7 @@ export default [{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
params: {
|
params: {
|
||||||
job_template_search: {
|
template_search: {
|
||||||
value: {
|
value: {
|
||||||
project__organization: null
|
project__organization: null
|
||||||
}
|
}
|
||||||
@@ -299,27 +299,23 @@ export default [{
|
|||||||
list.listTitle = N_('Job Templates');
|
list.listTitle = N_('Job Templates');
|
||||||
list.emptyListText = "This list is populated by job templates added from the <a ui-sref='templates.addJobTemplate'>Job Templates</a> section";
|
list.emptyListText = "This list is populated by job templates added from the <a ui-sref='templates.addJobTemplate'>Job Templates</a> section";
|
||||||
list.searchSize = "col-lg-12 col-md-12 col-sm-12 col-xs-12";
|
list.searchSize = "col-lg-12 col-md-12 col-sm-12 col-xs-12";
|
||||||
list.iterator = 'job_template';
|
list.iterator = 'template';
|
||||||
list.name = 'job_templates';
|
list.name = 'job_templates';
|
||||||
list.basePath = "job_templates";
|
list.basePath = "job_templates";
|
||||||
list.fields.smart_status.ngInclude = "'/static/partials/organizations-job-template-smart-status.html'";
|
list.fields.smart_status.ngInclude = "'/static/partials/organizations-job-template-smart-status.html'";
|
||||||
list.fields.name.ngHref = '#/templates/job_template/{{job_template.id}}';
|
list.fields.name.ngHref = '#/templates/job_template/{{template.id}}';
|
||||||
list.fieldActions.submit.ngClick = 'submitJob(job_template.id)';
|
list.fieldActions.submit.ngClick = 'submitJob(template.id)';
|
||||||
list.fieldActions.submit.ngShow = 'job_template.summary_fields.user_capabilities.start';
|
list.fieldActions.schedule.ngClick = 'scheduleJob(template.id)';
|
||||||
list.fieldActions.schedule.ngClick = 'scheduleJob(job_template.id)';
|
list.fieldActions.copy.ngClick = 'copyTemplate(template.id)';
|
||||||
list.fieldActions.copy.ngClick = 'copyTemplate(job_template.id)';
|
list.fieldActions.edit.ngClick = "editJobTemplate(template.id)";
|
||||||
list.fieldActions.copy.ngShow = 'job_template.summary_fields.user_capabilities.copy';
|
list.fieldActions.view.ngClick = "editJobTemplate(template.id)";
|
||||||
list.fieldActions.edit.ngClick = "editJobTemplate(job_template.id)";
|
|
||||||
list.fieldActions.edit.ngShow = 'job_template.summary_fields.user_capabilities.edit';
|
|
||||||
list.fieldActions.view.ngClick = "editJobTemplate(job_template.id)";
|
|
||||||
list.fieldActions.view.ngShow = '!job_template.summary_fields.user_capabilities.edit';
|
|
||||||
return list;
|
return list;
|
||||||
}],
|
}],
|
||||||
OrgJobTemplateDataset: ['OrgJobTemplateList', 'QuerySet', '$stateParams', 'GetBasePath',
|
OrgJobTemplateDataset: ['OrgJobTemplateList', 'QuerySet', '$stateParams', 'GetBasePath',
|
||||||
function(list, qs, $stateParams, GetBasePath) {
|
function(list, qs, $stateParams, GetBasePath) {
|
||||||
let path = GetBasePath(list.name);
|
let path = GetBasePath(list.name);
|
||||||
$stateParams.job_template_search.project__organization = $stateParams.organization_id;
|
$stateParams.template_search.project__organization = $stateParams.organization_id;
|
||||||
return qs.search(path, $stateParams.job_template_search);
|
return qs.search(path, $stateParams.template_search);
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user