27 lines
646 B
Text
27 lines
646 B
Text
<%= form_with(model: execution) do |form| %>
|
|
<% if execution.errors.any? %>
|
|
<div style="color: red">
|
|
<h2><%= pluralize(execution.errors.count, "error") %> prohibited this execution from being saved:</h2>
|
|
|
|
<ul>
|
|
<% execution.errors.each do |error| %>
|
|
<li><%= error.full_message %></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div>
|
|
<%= form.label :command_id, style: "display: block" %>
|
|
<%= form.text_field :command_id %>
|
|
</div>
|
|
|
|
<div>
|
|
<%= form.label :value, style: "display: block" %>
|
|
<%= form.text_field :value %>
|
|
</div>
|
|
|
|
<div>
|
|
<%= form.submit %>
|
|
</div>
|
|
<% end %>
|