foreman/app/views/subnets/index.html.erb @ fe3d8f82
06823dc7 | Ohad Levy | <% title "Subnets" %>
|
|
05ab4c16 | Ohad Levy | <% title_actions display_link_if_authorized("New Subnet", hash_for_new_subnet_path) %>
|
|
cdf02336 | Ohad Levy | ||
06823dc7 | Ohad Levy | <table class="list">
|
|
<tr>
|
|||
8104eced | Ohad Levy | <th><%= sort :name %></th>
|
|
<th><%= sort :network %></th>
|
|||
fa62ea80 | Ohad Levy | <th><%= sort :domains %></th>
|
|
fe3d8f82 | Ohad Levy | <th><%= sort :vlanid, :as => 'VLAN' %></th>
|
|
cdf02336 | Ohad Levy | <th>DHCP Proxy</th>
|
|
ad3d61b7 | Paul Kelly | <th></th>
|
|
06823dc7 | Ohad Levy | </tr>
|
|
ad3d61b7 | Paul Kelly | <% for subnet in @subnets %>
|
|
06823dc7 | Ohad Levy | <tr class="<%= cycle("even", "odd") -%>">
|
|
ad3d61b7 | Paul Kelly | <td><%=link_to_if_authorized h(subnet.name), hash_for_edit_subnet_path(:id => subnet)%></td>
|
|
cdf02336 | Ohad Levy | <td><%=subnet.to_label%></td>
|
|
fa62ea80 | Ohad Levy | <td><%=subnet.domains.to_sentence %></td>
|
|
fe3d8f82 | Ohad Levy | <td><%=subnet.vlanid %></td>
|
|
06823dc7 | Ohad Levy | <td><%=subnet.dhcp %></td>
|
|
<td align="right">
|
|||
b916586a | Florian Koch | <%= display_link_if_authorized "Delete", hash_for_subnet_path(:id => subnet, :auth_action => :destroy), :confirm => "Delete #{subnet.name}?", :method => :delete %>
|
|
06823dc7 | Ohad Levy | </td>
|
|
</tr>
|
|||
<% end %>
|
|||
</table>
|
|||
<%= page_entries_info @subnets %>
|
|||
<%= will_paginate @subnets %>
|