EvoBal/app/views/operations/_form.html.erb

34 lines
864 B
Plaintext

<%= form_with(model: [ operation.filter, operation ],
data: { controller: "reset_form", operation: "turbo:submit-end->reset_form#reset" }) do |form| %>
<% if operation.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(operation.errors.count, "error") %> prohibited this operation from being saved:</h2>
<ul>
<% operation.errors.each do |error| %>
<li><%= error.full_message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= form.label :enabled %>
<%= form.check_box :enabled %>
</div>
<div class="field">
<%= form.label :class_name %>
<%= form.text_field :class_name %>
</div>
<div class="field">
<%= form.label :argument %>
<%= form.text_field :argument %>
</div>
<div class="operations">
<%= form.submit %>
</div>
<% end %>