32 lines
729 B
Plaintext
32 lines
729 B
Plaintext
<p id="notice"><%= notice %></p>
|
|
|
|
<h1>Operations</h1>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Enabled</th>
|
|
<th>Class name</th>
|
|
<th>Argument</th>
|
|
<th colspan="3"></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% @operations.each do |operation| %>
|
|
<tr>
|
|
<td><%= operation.enabled %></td>
|
|
<td><%= operation.class_name %></td>
|
|
<td><%= operation.argument %></td>
|
|
<td><%= link_to 'Show', operation %></td>
|
|
<td><%= link_to 'Edit', edit_operation_path(operation) %></td>
|
|
<td><%= link_to 'Destroy', operation, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<%= link_to 'New Operation', new_operation_path %>
|