foreman/app/views/puppetclasses/index.html.erb @ 69f8d207
af6e2624 | Ohad Levy | <% title "Puppet classes" %>
|
|
<table class="list">
|
|||
<tr>
|
|||
69f8d207 | Ohad Levy | <th><%= order @search, :by => :name %></th>
|
|
<th>Operating Systems</th>
|
|||
<th><%= order @search, :by => :environments_name, :as => "Environments" %></th>
|
|||
<th>Host Group</th>
|
|||
d995ecb4 | Paul Kelly | <th></th>
|
|
af6e2624 | Ohad Levy | </tr>
|
|
<% for puppetclass in @puppetclasses %>
|
|||
4487bd21 | Ohad Levy | <tr class="<%= cycle("even", "odd") -%>">
|
|
af6e2624 | Ohad Levy | <td><%=link_to h(puppetclass.name), edit_puppetclass_path(puppetclass) %></td>
|
|
<td><%=h puppetclass.operatingsystems.to_sentence %></td>
|
|||
<td><%=h puppetclass.environments.to_sentence %></td>
|
|||
<td><%=h puppetclass.hostgroups.to_sentence %></td>
|
|||
d995ecb4 | Paul Kelly | <td align="right">
|
|
<%= link_to "Destroy", puppetclass, :confirm => "Delete #{puppetclass.name}?", :method => :delete %>
|
|||
</td>
|
|||
af6e2624 | Ohad Levy | </tr>
|
|
<% end %>
|
|||
</table>
|
|||
4487bd21 | Ohad Levy | <%= page_entries_info @puppetclasses %>
|
|
af6e2624 | Ohad Levy | <%= will_paginate @puppetclasses %>
|
|
69f8d207 | Ohad Levy | <span class=title_action>
|
|
<%= link_to "New Puppetclass", new_puppetclass_path %> |
|
|||
<%= link_to "Import new puppet classes and environments", import_environments_puppetclasses_path %>
|
|||
</span>
|