1234567891011121314151617181920212223242526272829 |
- <div class='container'>
- <div class='row'>
- <div class='col-md-12'>
- <div class="page-header">
- <h2><%= scenario_label(@scenario) %> <%= "Public" if @scenario.public? %> Scenario</h2>
- </div>
- <% if @scenario.description.present? %>
- <blockquote><%= markdown(@scenario.description) %></blockquote>
- <% end %>
- <%= render 'agents/table', :returnTo => scenario_path(@scenario) %>
- <br/>
- <div class="btn-group">
- <%= link_to '<span class="glyphicon glyphicon-chevron-left"></span> Back'.html_safe, scenarios_path, class: "btn btn-default" %>
- <%= link_to '<span class="glyphicon glyphicon-random"></span> View Diagram'.html_safe, scenario_diagram_path(@scenario), class: "btn btn-default" %>
- <%= link_to '<span class="glyphicon glyphicon-edit"></span> Edit'.html_safe, edit_scenario_path(@scenario), class: "btn btn-default" %>
- <% if @scenario.source_url.present? %>
- <%= link_to '<span class="glyphicon glyphicon-plus"></span> Update'.html_safe, new_scenario_imports_path(:url => @scenario.source_url), class: "btn btn-default" %>
- <% end %>
- <%= link_to '<span class="glyphicon glyphicon-share-alt"></span> Share'.html_safe, share_scenario_path(@scenario), class: "btn btn-default" %>
- <%= link_to '<span class="glyphicon glyphicon-trash"></span> Delete'.html_safe, scenario_path(@scenario), method: :delete, data: { confirm: "This will remove the '#{@scenario.name}' Scenerio from all Agents and delete it. Are you sure?" }, class: "btn btn-default" %>
- </div>
- </div>
- </div>
- </div>
|