Project

General

Profile

Download (1.19 KB) Statistics
| Branch: | Tag: | Revision:
<% title "Changed environments and puppet classes" -%>
<%= form_tag "/#{controller_path}/obsolete_and_new" do -%>
<fieldset>
<legend>Accept these environment changes found in puppet? </legend>
<table class="table table-striped">
<th>Environment</th><th>Operation</th><th>Puppet Modules</th>
<% for kind in ["new", "obsolete", "updated"] -%>
<% unless (envs = @changed[kind]).empty? -%>
<% for env in envs.keys.sort -%>
<tr>
<td>
<%= check_box_tag "changed[#{kind}][#{env}]", @changed[kind][env].to_json, true %>
<%= env -%>
</td>
<td>
<%= {"new" => "Add:", "obsolete" => "Remove:", "updated" => "Update:"}[kind] -%>
</td>
<td>
<% pcs = @changed[kind][env] -%>
<%= class_update_text pcs, env %>
</td>
</tr>
<% end -%>
<% end -%>
<% end -%>
</table>
</fieldset>
<div>
<%= link_to "Cancel","/" + controller_path, :class => "btn" %>
<%= submit_tag "Update", :class => "btn btn-primary" %>
</div>
<% end -%>
(9-9/11)