<% @page_title = 'Check Headers' %>
<% if @import_job.failed? %>
<div class="row-fluid">
  <%= render(:partial => "import_jobs/issues", :locals => { :issues => @import_job.validation_issues, :issue_type => :headers}) %>
</div>
<% elsif @import_job.validated_headers? %>
<div class="row-fluid">
  <p class="alert alert-success">Headers are valid in <%= @import_job.file_name %>, continue to parse rows</p>
</div>
<div class="row-fluid">
  <%= link_to("Next", next_wizard_path, :class => 'btn') %>
</div>
<% elsif @import_job.running? || @import_job.counted_rows? %>
<div class="row-fluid">
  <p class="alert alert-info">Validating Headers, reload to check status</p>
</div>
<div class="row-fluid">
  <%= link_to("Reload", wizard_path, :class => 'btn') %>
</div>
<% end %>


<% @page_title = 'Check Headers' %>
<% if @import_job.failed? %>
<div class="row-fluid">
  <%= render(:partial => "import_jobs/issues", :locals => { :issues => @import_job.validation_issues, :issue_type => :headers}) %>
  <%= link_to("Discard Dataset", {:action => 'delete', :id => @import_job.csv_dataset.id}, :class => 'btn btn-danger', :method => :delete) %>
</div>
<% elsif @import_job.validated_headers? %>
<div class="row-fluid">
  <p class="alert alert-success">Headers are valid in <%= @import_job.file_name %>, continue to parse rows</p>
</div>
<div class="row-fluid">
  <%= link_to("Next", next_wizard_path, :class => 'btn') %>
</div>
<% elsif @import_job.running? || @import_job.counted_rows? %>
<div class="row-fluid">
  <p class="alert alert-info">Validating Headers, reload to check status</p>
</div>
<div class="row-fluid">
  <%= link_to("Reload", wizard_path, :class => 'btn') %>
</div>
<% end %>


Add discard button to validate headers
Add discard button to validate headers
