Skip to content

Commit

Permalink
Refs #22285 - disable cr fields on hosts form
Browse files Browse the repository at this point in the history
These fields are only used to determine in JS what capabilities the
current compute resource allows, they don't need to be sent to the
server.
  • Loading branch information
tbrisker committed Feb 1, 2018
1 parent 57a0d07 commit 14e6b91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/hosts/_compute.html.erb
Expand Up @@ -17,7 +17,7 @@
:text => _("Errors: %s") % compute_resource.errors.full_messages.to_sentence) %>
<% end %>
<% end%>
<%= hidden_field_tag 'capabilities', compute_resource.capabilities %>
<%= hidden_field_tag 'provider', compute_resource.provider %>
<%= hidden_field_tag 'capabilities', compute_resource.capabilities, :disabled => true %>
<%= hidden_field_tag 'provider', compute_resource.provider, :disabled => true %>
<%= content_tag(:div,'', :id => :'supports_update', :data=>{:'supports-update'=> compute_resource.supports_update? || (@host && @host.new_record?)}) %>
<% end if compute_resource %>

0 comments on commit 14e6b91

Please sign in to comment.