From 1b8ebc57e43b6b86e99b4728656769634435cc81 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Wed, 8 Oct 2014 11:56:24 -0400 Subject: [PATCH] added extra validation for integers, specifically for min/max, and for valid integer added ng-min and ng-max directive, and made adjustments to question form for new directives --- awx/ui/static/js/forms/SurveyMaker.js | 16 +++++--- awx/ui/static/lib/ansible/directives.js | 52 +++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 6 deletions(-) diff --git a/awx/ui/static/js/forms/SurveyMaker.js b/awx/ui/static/js/forms/SurveyMaker.js index 507713ead9..6e732e556b 100644 --- a/awx/ui/static/js/forms/SurveyMaker.js +++ b/awx/ui/static/js/forms/SurveyMaker.js @@ -38,10 +38,14 @@ angular.module('SurveyMakerFormDefinition', []) // ''+ // '
'+ // ''+ - '
'+ - '
'+ - ''+ - '
' + '
'+ + ''+ + '
'+ + '
'+ + ''+ + '
'+ + '
'+ + ''//' // label: 'Survey Name', // type: 'text', // addRequired: true, @@ -52,7 +56,7 @@ angular.module('SurveyMakerFormDefinition', []) }, - buttons: { //for now always generates