Project base path now displayed on Project detail page. Project path (the subdir under base path) is now selected from a drop-down. Using /api/v1/config to determine base path and drop-down values. Added help text pop-overs that should eliminate confussion around how to setup project directory structure.

This commit is contained in:
chouseknecht
2013-06-21 13:36:31 -04:00
parent d5705ffdd0
commit 5495709a61
6 changed files with 80 additions and 13 deletions

View File

@@ -30,11 +30,29 @@ angular.module('ProjectFormDefinition', [])
addRequired: false,
editRequired: false
},
base_dir: {
label: 'Project Base Path',
type: 'textarea',
"class": 'span6',
showonly: true,
awPopOver: '<p>Base path used for locating playbooks. Directories found inside this path will be listed in the Project Path drop-down. ' +
'Together the base path and selected project path provide the full path used to locate playbooks for this project.</p>' +
'<p>Use PROJECTS_ROOT in your environment settings file to determine the base path value.</p>',
dataTitle: 'Project Base Path',
dataPlacement: 'right'
},
local_path: {
label: 'Local Path',
type: 'text',
label: 'Project Path',
type: 'select',
id: 'local-path-select',
ngOptions: 'path for path in project_local_paths',
addRequired: true,
editRequired: true
editRequired: true,
awPopOver: '<p>Select from the list of directories found in the base path.' +
'Together the base path and selected project path provide the full path used to locate playbooks for this project.</p>' +
'<p>Use PROJECTS_ROOT in your environment settings file to determine the base path value.</p>',
dataTitle: 'Project Path',
dataPlacement: 'right'
}
},