Project

General

Profile

Download (1.47 KB) Statistics
| Branch: | Tag: | Revision:
<% form_for @hostgroup do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :parent_id, "Parent", :class => "span-3" %>
<%= f.collection_select(:parent_id, accessible_hostgroups, :id, :to_label, { :include_blank => true },
{ :class => "span-3" }) %>

<%= f.label :name, nil, :class => "span-3" %>
<%= f.text_field :name, :class => "span-3" %>
</p>

<br>

<% field_set_tag 'Host Defaults' do -%>

<% field_set_tag 'Primary Settings' do %>
<%= f.label :environment_id, nil, :class => "span-3" %>
<%= f.collection_select :environment_id, Environment.all, :id, :to_label, { :include_blank => true } , { :class => "span-3" } %>
<div class="push-2 span-7 last">
<%= puppetmaster_field @hostgroup, f %>
</div>
<% end -%>

<% if (SETTINGS[:unattended].nil? or SETTINGS[:unattended]) -%>
<% field_set_tag 'Operating System Settings' do %>
<div class="span-24 last">
<%= render "common/os_selection/initial", { :f => f, :item=> @hostgroup } -%>
</div>
<div class="span-24 last">
<%= f.label :root_pass, "Root Password", :class => "span-3" %>
<%= f.password_field :root_pass, :class => "span-3 last" %>
</div>
<% end -%>

<% end -%>
<% end -%>

<%= render 'puppetclasses/class_selection', :obj => @hostgroup %>

<%= render "common_parameters/parameters", { :f => f, :type => :group_parameters } %>

<p><%= f.submit "Submit" %></p>
<% end %>
(1-1/5)