diff --git a/app/views/filesets/_form.html.erb b/app/views/filesets/_form.html.erb index b909bd2..6b9d95f 100644 --- a/app/views/filesets/_form.html.erb +++ b/app/views/filesets/_form.html.erb @@ -1,19 +1,22 @@ <%= 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 %> <% @fileset.include_directions['file'].each do |file| %> <%= text_with_errors_and_plus(@fileset, :fileset, :include_files, 'Files', '/', file) %> <% end %> - <%= text_with_errors_and_plus(@fileset, :fileset, :exclude_directions, 'Exclude', '/a_restore_location') %> +
+ <% @fileset.exclude_directions.each do |file| %> + <%= text_with_errors_and_plus(@fileset, :fileset, :exclude_directions, 'Exclude', '/an_exluded_dir', file) %> + <% end %> <%= (hidden_field_tag :job_id, @job_id) if @job_id%>
<%= f.submit class: 'btn btn-success' %>
<% end %>