Revision 571614ae
Added by Joseph Magen over 9 years ago
app/views/hosts/_unattended.html.erb | ||
---|---|---|
<div class="tab-pane" id="network">
|
||
<%= field_set_tag _("General Settings"), :id => "general_settings" do %>
|
||
<%= select_f f, :domain_id, accessible_domains, :id, :to_label, {:include_blank => true},
|
||
{:help_inline => :indicator,
|
||
{:help_inline => :indicator, :required => true,
|
||
:onchange => 'domain_selected(this);', :'data-url' => domain_selected_hosts_path} %>
|
||
|
||
<%= select_f f, :realm_id, Realm.with_taxonomy_scope_override(@location,@organization).authorized(:view_realms),
|
||
... | ... | |
|
||
<%= field_set_tag _("Primary Interface"), :id => "primary_interface" do %>
|
||
<div id="mac_address" <%= display? @host.compute_resource_id %> >
|
||
<%= text_f f, :mac, :help_inline => _("MAC address for this host"), :autocomplete => 'off' %>
|
||
<%= text_f f, :mac, :help_inline => _("MAC address for this host"), :autocomplete => 'off', :required => true %>
|
||
</div>
|
||
|
||
<div id='manage_network'>
|
Also available in: Unified diff
fixes #7560 - add :required => true on host fields that have conditional validation if host.managed?