<%= bootstrap_form_for(@fileset, url: url, method: method, layout: :horizontal, label_col: 'col-xs-3', control_col: 'col-xs-8') do |f| %>
<%= f.text_field :name %> <% no_remove_sign = @fileset.include_directions['file'].length <= 1 %> <% @fileset.include_directions['file'].each do |file| %> <%= text_with_errors_and_remove( @fileset, :fileset, :include_files, 'Files', '/', file, no_remove_sign) %> <% end %>

<%= link_to '#', class: 'include_files-plus-sign', title: 'New File' do %> <% end %>

<% @fileset.exclude_directions.each do |file| %> <%= text_with_errors_and_remove(@fileset, :fileset, :exclude_directions, 'Exclude', '/an_exluded_dir', file) %> <% end %>

<%= link_to '#', class: 'exclude_directions-plus-sign', title: 'New Excluded File' do %> <% end %>
<%= (hidden_field_tag :job_id, @job_id) if @job_id%>
<%= f.submit class: 'btn btn-success' %>
<%= link_to 'Cancel', @job_id.present? ? edit_host_job_path(@host, @job_id) : new_host_job_path(@host), role: 'button', class: 'btn btn-danger'%>
<% end %>