Skip to content

Commit

Permalink
Mark dialog selection as a required field
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed May 11, 2018
1 parent 393d218 commit 7b7f01c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -17,7 +17,7 @@ ManageIQ.angular.app.controller('catalogItemFormController', ['$scope', 'catalog
provisioning_vault_credential_id: '',
provisioning_execution_ttl: '',
provisioning_inventory: 'localhost',
provisioning_dialog_existing: '',
provisioning_dialog_existing: 'existing',
provisioning_dialog_id: '',
provisioning_dialog_name: '',
provisioning_key: '',
Expand Down
Expand Up @@ -261,12 +261,12 @@
%span{:class => "pficon pficon-delete"}

- if prefix == "provisioning"
.form-group{"ng-if" =>"#{ng_model}.#{prefix}_dialog_existing!==undefined"}
.form-group
%label.col-md-3.control-label
= _("Dialog")
.col-md-3
%label.radio-inline
%input{"ng-model" => "vm.#{prefix}_dialog_existing", :type => "radio", :value => "existing", "ng-click" => "vm.toggleDialogSelection('#{prefix}', 'existing')", "ng-checked" => "#{ng_model}.#{prefix}_dialog_existing == 'existing'"}
%input{"ng-model" => "vm.#{prefix}_dialog_existing", :type => "radio", :value => "existing", "ng-value" => "existing", "ng-click" => "vm.toggleDialogSelection('#{prefix}', 'existing')", "ng-checked" => "#{ng_model}.#{prefix}_dialog_existing == 'existing'"}
= _("Use Existing")
.col-md-6{"ng-class" => "{'has-error': angularForm.#{prefix}_dialog_id.$invalid}", "ng-if" => "#{ng_model}.#{prefix}_dialog_existing == 'existing'"}
%select{"ng-model" => "vm._#{prefix}_dialog",
Expand All @@ -281,11 +281,11 @@
%span.help-block{"ng-show" => "angularForm.#{prefix}_dialog_id.$error.$invalid"}
= _("Required")

.form-group{"ng-if" =>"#{ng_model}.#{prefix}_dialog_existing!==undefined"}
.form-group
%label.col-md-3.control-label
.col-md-3
%label.radio-inline
%input{"ng-model" => "vm.#{prefix}_dialog_existing", :type => "radio", :value => "create", "ng-click" => "vm.toggleDialogSelection('#{prefix}', 'create')", "ng-checked" => ("#{ng_model}.#{prefix}_dialog_existing == 'create'")}
%input{"ng-model" => "vm.#{prefix}_dialog_existing", :type => "radio", :value => "create", :ng-value => "create", "ng-click" => "vm.toggleDialogSelection('#{prefix}', 'create')", "ng-checked" => ("#{ng_model}.#{prefix}_dialog_existing == 'create'")}
= _("Create New")
.col-md-6{"ng-class" => "{'has-error': angularForm.#{prefix}_dialog_name.$invalid}", "ng-if" => "#{ng_model}.#{prefix}_dialog_existing == 'create'"}
%input.form-control{:type => "text",
Expand Down

0 comments on commit 7b7f01c

Please sign in to comment.