Sha256: 4d80e57c09d3f8d020172b890f15caf34fc9a6a4b1a4ce2b0651f27bd82f519e

Contents?: true

Size: 1019 Bytes

Versions: 5

Compression:

Stored size: 1019 Bytes

Contents

<% title _("Subnets") %>

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

<table class="table table-bordered table-striped">
  <tr>
    <th><%= sort :name, :as => s_("Subnet|Name") %></th>
    <th><%= sort :network, :as => s_("Subnet|Network") %></th>
    <th><%= sort :domains, :as => _("Domains") %></th>
    <th><%= sort :vlanid, :as => s_('Subnet|Vlanid') %></th>
    <th><%= _("DHCP Proxy") %></th>
    <th></th>
  </tr>
  <% for subnet in @subnets %>
    <tr>
      <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_delete_if_authorized hash_for_subnet_path(:id => subnet), :confirm => _("Delete %s?") % subnet.name %>
      </td>
    </tr>
  <% end %>
</table>
<%= page_entries_info @subnets %>
<%= will_paginate     @subnets %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/subnets/index.html.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/subnets/index.html.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/subnets/index.html.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/subnets/index.html.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/subnets/index.html.erb