Revision 75478097
Added by Martin Matuška over 10 years ago
app/views/compute_resources_vms/form/_vmware.html.erb | ||
---|---|---|
|
||
<!--TODO # Move to a helper-->
|
||
<% checked = params[:host] && params[:host][:compute_attributes] && params[:host][:compute_attributes][:start] || '1' %>
|
||
<%= checkbox_f f, :start, { :checked => (checked == '1'), :help_inline => _("Power ON this machine"), :label => _('Start') } if new and show_vm_name? %>
|
||
<%= checkbox_f f, :start, { :checked => (checked == '1'), :help_inline => _("Power ON this machine"), :label => _('Start') } if new and controller_name != 'compute_attributes' %>
|
Also available in: Unified diff
Fixes #4196 "Power ON this machine" disappeared for new VMWare hosts
(cherry picked from commit 39505a60be16d5af7f1c42e5ef175bec27607190)