Sha256: c49035b01ae15114302419ab3600791f1d9ae64370cbb534c2322a58244cd7f9

Contents?: true

Size: 1.27 KB

Versions: 9

Compression:

Stored size: 1.27 KB

Contents

<%= form_for @scaptimony_scap_content,
    :url => (@scaptimony_scap_content.id? ?
        scaptimony_scap_content_path(:id => @scaptimony_scap_content.id) : scaptimony_scap_contents_path),
    :html => { :multipart => true } do |f| %>

  <%= base_errors_for @scaptimony_scap_content %>

  <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, :title) %>
      <%= file_field_f f, :scap_file, :help_block  => _("Upload SCAP DataStream file") %>
      <p class="alert alert-info"><%= (_('Notice: You need to %s OpenSCAP on your hosts, and upload this content to the hosts as well.') % link_to(_('install'), 'http://www.open-scap.org/page/Documentation#Installation', :target => '_blank')).html_safe %></p>
    </div>
    <%= render 'taxonomies/loc_org_tabs', :f => f, :obj => @scaptimony_scap_content %>
    <%= submit_or_cancel f %>
  </div>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
foreman_openscap-0.4.3 app/views/scaptimony_scap_contents/_form.html.erb
foreman_openscap-0.4.2 app/views/scaptimony_scap_contents/_form.html.erb
foreman_openscap-0.4.1 app/views/scaptimony_scap_contents/_form.html.erb
foreman_openscap-0.3.4 app/views/scaptimony_scap_contents/_form.html.erb
foreman_openscap-0.4.0 app/views/scaptimony_scap_contents/_form.html.erb
foreman_openscap-0.3.3 app/views/scaptimony_scap_contents/_form.html.erb
foreman_openscap-0.3.2 app/views/scaptimony_scap_contents/_form.html.erb
foreman_openscap-0.3.1 app/views/scaptimony_scap_contents/_form.html.erb
foreman_openscap-0.3.0 app/views/scaptimony_scap_contents/_form.html.erb