From f53149ad6b0066ee413c6de98928a8f0488f0d19 Mon Sep 17 00:00:00 2001 From: Harpreet Kataria Date: Thu, 16 Feb 2017 18:31:04 -0500 Subject: [PATCH] Fixed form buttons on edit form. Made changes to disable save/reset form button on initial load of Edit form https://www.pivotaltracker.com/story/show/138302747 --- .../layouts/angular/_ansible_form_options_angular.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/angular/_ansible_form_options_angular.html.haml b/app/views/layouts/angular/_ansible_form_options_angular.html.haml index 16eb5b0d8bbe..6698306cab30 100644 --- a/app/views/layouts/angular/_ansible_form_options_angular.html.haml +++ b/app/views/layouts/angular/_ansible_form_options_angular.html.haml @@ -13,7 +13,7 @@ %option{"value" => ""} = "<#{_('Choose')}>" - #playbook_div{"ng-if" => "vm.#{prefix}_repository_selected()"} + #playbook_div{"ng-show" => "vm.#{prefix}_repository_selected()"} .form-group{"ng-class" => "{'has-error': angularForm.#{prefix}_playbook_id.$invalid}"} %label.col-md-2.control-label{"for" => "#{prefix}_playbook_id"} = _('Playbook') @@ -63,7 +63,7 @@ "name" => "#{prefix}_cloud_type", 'ng-options' => "cloud_type for cloud_type in #{ng_model}.cloud_types", "ng-change" => "cloudTypeChanged('#{prefix}')", - :checkchange => "", + :checkchange => true, "pf-select" => true} %option{"value" => ""} = "<#{_('Choose')}>"