Sha256: 5bd5ea0390ccee99d3b6d11ff5b75da91b5f76967496c657d7f6e55c3b1c89f9

Contents?: true

Size: 1.63 KB

Versions: 5

Compression:

Stored size: 1.63 KB

Contents

<div class="modal fade" id="<%= "fixedPropertiesSelector-#{host.id}" %>" tabindex="-1" role="dialog" aria-labelledby="fixedPropertiesSelectorLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title" id="fixedPropertiesSelectorLabel">Select initial host properties</h4>
      </div>
      <%= form_for host, :url => edit_discovered_host_path(host), :method => :get do |f| %>
        <div class="modal-body">
          <%= select_f f, :hostgroup_id, accessible_resource_records(:hostgroup, :title).to_a, :id, :to_label,
                      { :include_blank => true },
                      { :help_inline => :indicator, :size => 'col-md-10' } %>

          <% if show_organization_tab?  %>
            <%= select_f f, :organization_id, Organization.my_organizations, :id, :to_label, {}, {:size => 'col-md-10'} %>
          <% end %>

          <% if show_location_tab? %>
            <%= select_f f, :location_id, Location.my_locations, :id, :to_label, {}, {:size => 'col-md-10'} %>
          <% end %>

          <div>Changing the Host's Subnet is not possible via Customize Host form, use Create Host or Auto provisioning and set the desired Subnet in the Hostgroup.</div>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
          <input type="submit" class="btn btn-default" value="<%= _('Customize Host') %>" />
          <input type="submit" class="btn btn-primary" value="<%= _('Create Host') %>" name="quick_submit" />
        </div>
      <% end %>
    </div>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-16.1.3 app/views/discovered_hosts/_discovered_host_modal.html.erb
foreman_discovery-16.1.2 app/views/discovered_hosts/_discovered_host_modal.html.erb
foreman_discovery-16.1.0 app/views/discovered_hosts/_discovered_host_modal.html.erb
foreman_discovery-16.0.1 app/views/discovered_hosts/_discovered_host_modal.html.erb
foreman_discovery-16.0.0 app/views/discovered_hosts/_discovered_host_modal.html.erb