Project

General

Profile

Download (968 Bytes) Statistics
| Branch: | Tag: | Revision:
<% title "Subnets" %>

<% title_actions display_link_if_authorized("New Subnet", hash_for_new_subnet_path) %>

<table class="list">
<tr>
<th><%= sort :name %></th>
<th><%= sort :network %></th>
<th><%= sort :domains %></th>
<th><%= sort :vlanid, :as => 'VLAN' %></th>
<th>DHCP Proxy</th>
<th></th>
</tr>
<% for subnet in @subnets %>
<tr class="<%= cycle("even", "odd") -%>">
<td><%=link_to_if_authorized h(subnet.name), hash_for_edit_subnet_path(:id => subnet)%></td>
<td><%=subnet.to_label%></td>
<td><%=subnet.domains.to_sentence %></td>
<td><%=subnet.vlanid %></td>
<td><%=subnet.dhcp %></td>
<td align="right">
<%= display_link_if_authorized "Delete", hash_for_subnet_path(:id => subnet, :auth_action => :destroy), :confirm => "Delete #{subnet.name}?", :method => :delete %>
</td>
</tr>
<% end %>
</table>
<%= page_entries_info @subnets %>
<%= will_paginate @subnets %>
(5-5/6)