Project

General

Profile

Download (2.42 KB) Statistics
| Branch: | Tag: | Revision:
82e47ae0 Amos Benari
<div class="tab-pane" id="compute_resource">
66afbc33 Joseph Mitchell Magen
<%= render('hosts/compute', :compute_resource => @host.compute_resource) if @host.compute_resource %>
334d0359 Amos Benari
</div>

82e47ae0 Amos Benari
<div class="tab-pane" id="network">
77f70152 Stephen Benjamin
<%= field_set_tag _("General Settings"), :id => "general_settings" do %>
<%= select_f f, :domain_id, accessible_domains, :id, :to_label, {:include_blank => true},
571614ae Joseph Magen
{:help_inline => :indicator, :required => true,
77f70152 Stephen Benjamin
: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),
:id, :to_label, { :include_blank => true }, {:help_inline => :indicator} %>
<% end %>

4d4557e9 Joseph Magen
<%= field_set_tag _("Primary Interface"), :id => "primary_interface" do %>
8838eb42 Ohad Levy
<div id="mac_address" <%= display? @host.compute_resource_id %> >
571614ae Joseph Magen
<%= text_f f, :mac, :help_inline => _("MAC address for this host"), :autocomplete => 'off', :required => true %>
8838eb42 Ohad Levy
</div>
dd42df0a Ohad Levy
beed05de Mark O'Shea
<div id='manage_network'>
</div>

8838eb42 Ohad Levy
<% if @host.capabilities.include?(:build) %>
beed05de Mark O'Shea
<div id='manage_network_build'>
dd42df0a Ohad Levy
<span id="subnet_select">
<%= render 'common/domain', :item => @host %>
</span>
62a72467 Tomer Brisker
<%= text_f f, :ip, :autocomplete => 'off', :help_block => link_to(_("Suggest new"), '#', :id => 'suggest_new_ip'),
1fa42669 Amos Benari
:help_inline => popover(_("IP address auto-suggest"), _("An IP address will be auto-suggested if you have a DHCP-enabled Smart Proxy on the subnet selected above.<br/><br/>The IP address can be left blank when:<br/><ul><li>provisioning tokens are enabled</li><li>the domain does not manage DNS</li><li>the subnet does not manage reverse DNS</li><li>and the subnet does not manage DHCP reservations</li></ul>"), :title => _("IP address for this host")).html_safe %>
8838eb42 Ohad Levy
<%= f.fields_for :interfaces do |interfaces| %>
d455f32c Marek Hulan
<%= render :partial => interfaces.object, :layout => 'nic/interface_layout', :locals => {:f => interfaces} %>
8838eb42 Ohad Levy
<% end %>
d455f32c Marek Hulan
<%= new_child_fields_template(f, :interfaces, {:partial => Nic::Managed.new, :layout => 'nic/interface_layout'}) %>
bfbf7ed8 Lukas Zapletal
<%= add_child_link "+ " + _("Add Interface"), :interfaces, { :class => "info", :title => _('add new network interface') } %>
dd42df0a Ohad Levy
</div>
8838eb42 Ohad Levy
<% end %>
dd42df0a Ohad Levy
<% end %>
05ab4c16 Ohad Levy
</div>

82e47ae0 Amos Benari
<div class="tab-pane" id="os">
796352ed Greg Sutcliffe
<%= render 'hosts/operating_system', :host => @host, :f => f %>
05ab4c16 Ohad Levy
</div>