Sha256: 9d7a8e8665689ee0055f6d219dc4b20a16acf8550fde9278ff8944a6a001d201

Contents?: true

Size: 1.99 KB

Versions: 1

Compression:

Stored size: 1.99 KB

Contents

<%= form_for @discovery_rule, :url => (@discovery_rule.new_record? ? discovery_rules_path : discovery_rule_path(:id => @discovery_rule.id)) do |f| %>
    <%= base_errors_for @discovery_rule %>

        <ul class="nav nav-tabs" data-tabs="tabs">
          <li class="active"><a href="#primary" data-toggle="tab"><%= _('Primary') %></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">
            <%= text_f f, :name %>
            <%= autocomplete_f f, :search,
                               :path             => "discovered_hosts",
                               :control_group_id => 'search_group', :size => 'col-md-9' %>
            <%= select_f f, :hostgroup_id, accessible_hostgroups, :id, :to_label, { :include_blank => false },
                         { :help_inline => _('Target host group for this rule with all properties set') } %>
            <%= text_f f, :hostname, :help_inline => popover(
                                _("Template"),
                                render('discovery_rules/template_inline'),
                                :title => _("Hostname for provisioned hosts"), :'data-placement' => 'bottom').html_safe %>
            <%= text_f f, :max_count, :label => _('Hosts limit'), :help_inline => _('Maximum hosts provisioned with this rule (0 = unlimited)') %>
            <%= text_f f, :priority, :help_inline => _('Rule priority (lower integer means higher priority)') %>
            <%= checkbox_f f, :enabled %>
          </div>
          <% if show_taxonomy_tabs? %>
            <%= render 'taxonomies/loc_org_tabs', :f => f, :obj => @discovery_rule %>
          <% end %>
        </div>
    <%= submit_or_cancel f %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_discovery-6.0.0 app/views/discovery_rules/_form.html.erb