Sha256: ca866d23bfd40ce84b9a3f1779689bb3a13a73f247733a278eaf1789fdbb931d

Contents?: true

Size: 1.04 KB

Versions: 5

Compression:

Stored size: 1.04 KB

Contents

<%= form_for @subnet do |f| %>
  <%= base_errors_for @subnet %>
  <ul class="nav nav-tabs" data-tabs="tabs">
    <li class="active"><a href="#primary" data-toggle="tab"><%= _("Subnet") %></a></li>
    <% if show_location_tab? %>
      <li><a href="#locations" data-toggle="tab"><%= _("Locations") %></a></li>
    <% end %>
    <% if show_organization_tab? %>
      <li><a href="#organizations" data-toggle="tab"><%= _("Organizations") %></a></li>
    <% end %>
  </ul>

  <div class="tab-content">

    <div class="tab-pane active" id="primary">
      <%= render 'fields', :f => f %>
    </div>

    <% if show_location_tab? %>
      <div class="tab-pane" id="locations">
        <%= multiple_checkboxes f, :locations, @subnet, Location, :label => _("Locations") %>
      </div>
    <% end %>

    <% if show_organization_tab? %>
      <div class="tab-pane" id="organizations">
        <%= multiple_checkboxes f, :organizations, @subnet, Organization, :label => _("Organizations") %>
      </div>
    <% end %>

  </div>

  <%= submit_or_cancel f %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

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