Project

General

Profile

« Previous | Next » 

Revision 4d4b84f6

Added by Ohad Levy almost 13 years ago

  • ID 4d4b84f6b722874504f508fa92802f6ddee37c11

fixes #35 - Allow hostgroup nesting for puppet classes and parameters

View differences:

app/views/hosts/_form.html.erb
<%= f.label :name %>
<%= f.text_field :name, :value => @host.shortname, :title => @host.to_s, :size => 12 %>
</div>
<div class="span-6">
<div class="span-3">
<%= f.label :hostgroup_id, "Host group" %>
<%= image_tag "spinner.gif", :id => "indicator1", :style => "display:none;" %>
<%= f.collection_select(:hostgroup_id, accessible_hostgroups, :id, :name, { :include_blank => true },
{ :onchange => update_details_from_hostgroup }) %>
</div>
<%= f.collection_select(:hostgroup_id, accessible_hostgroups, :id, :to_label, { :include_blank => true },
{ :onchange => update_details_from_hostgroup, :class => "span-3" }) %>
<div class="span-6">
<%= f.label :environment_id %>
<%= f.collection_select :environment_id, Environment.all, :id, :to_label, { :include_blank => true } %>

Also available in: Unified diff