share.html.erb 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <div class='container'>
  2. <div class='row'>
  3. <div class='col-md-12'>
  4. <div class="page-header">
  5. <h2>Share <%= scenario_label(@scenario) %> with the world</h2>
  6. </div>
  7. <p>
  8. <strong>Please be sure that none of the Agents in this Scenario have sensitive data in their settings before sharing!</strong>
  9. </p>
  10. <% if @scenario.public? %>
  11. <p>
  12. This Scenario is public. You can <%= link_to "download and share your export file", export_scenario_path(@scenario, :format => :json) %>, or give out this URL:
  13. </p>
  14. <form onsubmit='return false;'>
  15. <input type='text' class='form-control' value='<%= export_scenario_url(@scenario, :format => :json) %>' onclick="return this.select();"/>
  16. </form>
  17. <% else %>
  18. This Scenario is not public. You can share it by <%= link_to "downloading and sharing your export file", export_scenario_path(@scenario, :format => :json) %>.
  19. <% end %>
  20. <hr>
  21. <div class="row">
  22. <div class="col-md-12">
  23. <%= link_to icon_tag('glyphicon-chevron-left') + ' Back'.html_safe, scenario_path(@scenario), class: "btn btn-default" %>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. </div>