Sha256: 0dca323ed3e99faf2af369cde040ed7f5913fa6d4bcb443e502ec571659c9122

Contents?: true

Size: 1023 Bytes

Versions: 71

Compression:

Stored size: 1023 Bytes

Contents

<%= form_for @tailoring_file,
    :url => (@tailoring_file.id? ?
        tailoring_file_path(:id => @tailoring_file.id) : tailoring_files_path),
    :html => { :multipart => true } do |f| %>

  <%= base_errors_for @tailoring_file %>

  <ul class="nav nav-tabs" data-tabs="tabs">
    <li class="active"><a href="#primary" data-toggle="tab"><%= _("File Upload") %></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) %>
      <%= file_field_f f, :scap_file, :file_name => @tailoring_file.original_filename, :label_help => _("DataStream Tailoring file") %>
    </div>
    <%= render 'taxonomies/loc_org_tabs', :f => f, :obj => @tailoring_file %>
    <%= submit_or_cancel f %>
  </div>
<% end %>

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
foreman_openscap-0.11.1 app/views/tailoring_files/_form.html.erb
foreman_openscap-0.11.0 app/views/tailoring_files/_form.html.erb
foreman_openscap-0.10.4 app/views/tailoring_files/_form.html.erb
foreman_openscap-0.10.3 app/views/tailoring_files/_form.html.erb
foreman_openscap-0.10.2 app/views/tailoring_files/_form.html.erb
foreman_openscap-0.10.1 app/views/tailoring_files/_form.html.erb
foreman_openscap-0.9.3 app/views/tailoring_files/_form.html.erb
foreman_openscap-0.10.0 app/views/tailoring_files/_form.html.erb
foreman_openscap-0.9.2 app/views/tailoring_files/_form.html.erb
foreman_openscap-0.9.1 app/views/tailoring_files/_form.html.erb
foreman_openscap-0.9.0 app/views/tailoring_files/_form.html.erb