Added awRequiredWhen directive. Make fields required only when an expression evaluates to true. Used on Permissions detail page to toggle Project required attribute based on permission type.

This commit is contained in:
chouseknecht
2013-06-26 12:03:10 -04:00
parent c649aedc8b
commit cfb638e8e1
8 changed files with 83 additions and 14 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ function JobsListCtrl ($scope, $rootScope, $location, $log, $routeParams, Rest,
if ($routeParams['inventory__int']) {
scope[list.iterator + 'SearchField'] = 'inventory';
scope[list.iterator + 'SearchValue'] = $routeParams['inventory__int'];
scope[list.iterator + 'SearchFieldLabel'] = 'Inventory';
scope[list.iterator + 'SearchFieldLabel'] = 'Inventory ID';
}
scope.search(list.iterator);