AC-910 Fixed project status icons. AC-915 Fixed permission form.

This commit is contained in:
chris Houseknecht 2014-01-15 02:14:29 -05:00
parent 902008d17e
commit 46e5e078b6
4 changed files with 21 additions and 18 deletions

View File

@ -30,9 +30,12 @@ angular.module('PermissionFormDefinition', [])
fields: {
category: {
label: 'Permission Type',
type: 'radio',
options: [{ label: 'Inventory', value: 'Inventory' }, { label: 'Deployment', value: 'Deploy'}],
label: '* Permission Type',
type: 'radio_group',
options: [
{ label: 'Inventory', value: 'Inventory', selected: true },
{ label: 'Deployment', value: 'Deploy'}
],
ngChange: 'selectCategory()'
},
name: {
@ -74,17 +77,15 @@ angular.module('PermissionFormDefinition', [])
awRequiredWhen: {variable: "inventoryrequired", init: "true" }
},
permission_type: {
label: 'Permission',
type: 'radio',
label: '* Permission',
type: 'radio_group',
options: [
{label: 'Admin', value: 'admin', ngShow: "category == 'Inventory'" },
{label: 'Read', value: 'read', ngShow: "category == 'Inventory'" },
{label: 'Write', value: 'write', ngShow: "category == 'Inventory'" },
{label: 'Admin', value: 'admin', ngShow: "category == 'Inventory'" },
{label: 'Run', value: 'run', ngShow: "category == 'Deploy'" },
{label: 'Check', value: 'check', ngShow: "category == 'Deploy'" }
],
addRequired: true,
editRequired: true,
helpCollapse: [{ hdr: 'Permission', ngBind: 'permissionTypeHelp' }]
}
},

View File

@ -18,12 +18,12 @@ angular.module('PermissionsHelper', [])
scope.projectrequired = false;
scope.permissionTypeHelp =
"<dl>\n" +
"<dt>Admin</dt>\n" +
"<dd>Allow the user or team full access to the inventory. This includes reading, writing, deletion of the inventory and inventory sync operations.</dd>\n" +
"<dt>Read</dt>\n" +
"<dd>Only allow the user or team to view the inventory.</dd>\n" +
"<dt>Write</dt>\n" +
"<dd>Allow the user or team to modify hosts and groups contained in the inventory, add new hosts and groups, and perform inventory sync operations.\n" +
"<dt>Admin</dt>\n" +
"<dd>Allow the user or team full access to the inventory. This includes reading, writing, deletion of the inventory and inventory sync operations.</dd>\n" +
"</dl>\n";
}
else {
@ -40,7 +40,7 @@ angular.module('PermissionsHelper', [])
}
if (reset) {
scope.permission_type = null;
scope.permission_type = (scope.category == 'Inventory') ? 'read' : 'run'; //default to the first option
}
}

View File

@ -41,7 +41,7 @@ angular.module('ProjectsListDefinition', [])
ngClick: 'showSCMStatus(\{\{ project.id \}\})',
awToolTip: 'View details of last SCM Update',
dataPlacement: 'top',
badgeIcon: "\{\{ 'icon-failures-' + project.badge \}\}",
badgeIcon: "\{\{ 'fa icon-failures-' + project.badge \}\}",
badgePlacement: 'left',
searchType: 'select',
searchOptions: [], // will be set by Options call to projects resource

View File

@ -217,12 +217,14 @@ hr {
}
.collapsible-help {
dl {
margin-left: 15px;
}
dt {
margin-top: 15px;
}
margin-top: 20px;
margin-bottom: 20px;
dl {
margin-left: 15px;
}
dt {
margin-top: 15px;
}
}
th.actions-column,