Sha256: 69621aef5c9585424f95f7025d004f313be3ff82ac2c2a8845d3a57148bdf635

Contents?: true

Size: 1.18 KB

Versions: 9

Compression:

Stored size: 1.18 KB

Contents

<div class="page-header">
  <h2>Listing Simulations</h2>
</div>

<table class="table">
  <thead>
    <tr>
      <th>#</th>
      <th>Status</th>
      <th>Name</th>
      <th>Pressure</th>
      <th colspan="4"></th>
    </tr>
  </thead>

  <tbody>
    <% @simulations.each do |simulation| %>
      <tr>
        <td><%= simulation.id %></td>
        <td><%= status_label(simulation) %></td>
        <td><%= simulation.name %></td>
        <td><%= simulation.pressure %></td>
        <td><%= link_to 'Submit', submit_simulation_path(simulation), method: :put, class: 'btn btn-success btn-sm' unless simulation.submitted? %></td>
        <td><%= link_to 'Show', simulation, class: 'btn btn-primary btn-sm' %></td>
        <td><%= link_to 'Edit', edit_simulation_path(simulation), class: 'btn btn-default btn-sm' unless simulation.submitted? %></td>
        <td><%= link_to 'Copy', copy_simulation_path(simulation), method: :put, class: 'btn btn-default btn-sm' %></td>
        <td><%= link_to 'Destroy', simulation, method: :delete, class: 'btn btn-danger btn-sm', data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Simulation', new_simulation_path %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
osc_machete_rails-2.1.2 test/dummy/app/views/simulations/index.html.erb
osc_machete_rails-2.1.0 test/dummy/app/views/simulations/index.html.erb
osc_machete_rails-2.0.0 test/dummy/app/views/simulations/index.html.erb
osc_machete_rails-1.3.1 test/dummy/app/views/simulations/index.html.erb
osc_machete_rails-1.3.0 test/dummy/app/views/simulations/index.html.erb
osc_machete_rails-1.2.2 test/dummy/app/views/simulations/index.html.erb
osc_machete_rails-2.0.0.pre1 test/dummy/app/views/simulations/index.html.erb
osc_machete_rails-1.2.1 test/dummy/app/views/simulations/index.html.erb
osc_machete_rails-1.2.0 test/dummy/app/views/simulations/index.html.erb