%= form_with(model: operation) do |form| %>
<% if operation.errors.any? %>
<%= pluralize(operation.errors.count, "error") %> prohibited this operation from being saved:
<% operation.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<%= form.label :name, style: "display: block" %>
<%= form.text_field :name %>
<%= form.submit %>
<% end %>