new.html.erb 1010 B

12345678910111213141516171819202122232425262728293031323334
  1. <% content_for :title, "Import Scenario" -%>
  2. <div class='container scenario-import'>
  3. <div class="row">
  4. <div class="col-md-12">
  5. <% if @scenario_import.errors.any? %>
  6. <div class="row well">
  7. <h2><%= pluralize(@scenario_import.errors.count, "error") %> prohibited this Scenario from being imported:</h2>
  8. <% @scenario_import.errors.full_messages.each do |msg| %>
  9. <p class='text-warning'><%= msg %></p>
  10. <% end %>
  11. </div>
  12. <% end %>
  13. </div>
  14. </div>
  15. <%= form_for @scenario_import, :multipart => true do |f| %>
  16. <%= f.hidden_field :data %>
  17. <% if @scenario_import.step_one? %>
  18. <%= render 'step_one', :f => f %>
  19. <% elsif @scenario_import.step_two? %>
  20. <%= render 'step_two', :f => f %>
  21. <% end %>
  22. <% end %>
  23. <hr />
  24. <div class="row">
  25. <div class="col-md-12">
  26. <%= link_to icon_tag('glyphicon-chevron-left') + ' Back'.html_safe, scenarios_path, class: "btn btn-default" %>
  27. </div>
  28. </div>
  29. </div>