Revision 0ec60642
Added by Lukas Zapletal about 9 years ago
app/views/common/os_selection/_operatingsystem.html.erb | ||
---|---|---|
<%= fields_for item do |f| %>
|
||
<%= select_f f, :medium_id, os_media, :id, :to_label,
|
||
{:include_blank => blank_or_inherit_f(f, :medium), :selected => item.medium_id},
|
||
{:id => type + "_medium_id", :name => type + "[medium_id]", :label => _("Media"), :disabled => os_media.empty?,
|
||
{:label => _("Media"), :disabled => os_media.empty?,
|
||
:help_inline => :indicator, :onchange => 'medium_selected(this);', :'data-url' => method_path('medium_selected'),
|
||
:'data-type' => controller_name, :required => true }
|
||
%>
|
||
<%= select_f f, :ptable_id, os_ptable, :id, :to_label,
|
||
{:include_blank => blank_or_inherit_f(f, :ptable), :selected => item.ptable_id},
|
||
{:id => type + "_ptable_id", :name => type + "[ptable_id]", :label => _("Partition table"), :disabled => os_ptable.empty?,
|
||
:required => true}
|
||
{:label => _("Partition table"), :disabled => os_ptable.empty?, :required => true}
|
||
%>
|
||
|
||
<% if @operatingsystem and @operatingsystem.supports_image %>
|
Also available in: Unified diff
Fixes #5701 - removed extra id/name HTML attributes
(cherry picked from commit 00bce0c73d5ad3d06c369f39099bd660244c8d42)