_step_one.html.erb 910 B

12345678910111213141516171819202122232425262728293031
  1. <div class="row">
  2. <div class="page-header">
  3. <h2>
  4. Import a Public Scenario
  5. </h2>
  6. </div>
  7. </div>
  8. <div class='row'>
  9. <blockquote>You can import Scenarios, either from a <code>.json</code> file, or via a public
  10. Scenario URL. When you import a Scenario, Huginn will keep track of where it came from and
  11. later let you update it.</blockquote>
  12. </div>
  13. <div class='row'>
  14. <div class="col-md-4">
  15. <div class="form-group">
  16. <%= f.label :url, 'Option 1: Provide a Public Scenario URL' %>
  17. <%= f.text_field :url, :class => 'form-control', :placeholder => "Public Scenario URL" %>
  18. </div>
  19. <div class="form-group">
  20. <%= f.label :file, 'Option 2: Upload a Scenario JSON File' %>
  21. <%= f.file_field :file, :class => 'form-control' %>
  22. </div>
  23. <div class='form-actions'>
  24. <%= f.submit "Start Import", :class => "btn btn-primary" %>
  25. </div>
  26. </div>
  27. </div>