1
0

new.html.erb 964 B

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