EvoBal/app/views/conditions/index.html.erb
2021-03-04 22:28:47 +01:00

38 lines
995 B
Plaintext

<%= render(FlashNoticeComponent.new) { notice } if notice.present? %>
<h1>Conditions</h1>
<table>
<thead>
<tr>
<th>Enabled</th>
<th>Property type</th>
<th>Property value</th>
<th>Test method</th>
<th>Test value</th>
<th>Inverted</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @conditions.each do |condition| %>
<tr>
<td><%= condition.enabled %></td>
<td><%= condition.property_type %></td>
<td><%= condition.property_value %></td>
<td><%= condition.test_method %></td>
<td><%= condition.test_value %></td>
<td><%= condition.inverted %></td>
<td><%= link_to 'Show', condition %></td>
<td><%= link_to 'Edit', edit_condition_path(condition) %></td>
<td><%= link_to 'Destroy', condition, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Condition', new_condition_path %>