%= form_for(@order_state) do |f| %>
<% if @order_state.errors.any? %>
<%= pluralize(@order_state.errors.count, "error") %> prohibited this order_state from being saved:
<% @order_state.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :order_id %>
<%= f.number_field :order_id %>
<%= f.label :local_id %>
<%= f.number_field :local_id %>
<%= f.label :client_id %>
<%= f.number_field :client_id %>
<%= f.label :perm_id %>
<%= f.number_field :perm_id %>
<%= f.label :parent_id %>
<%= f.number_field :parent_id %>
<%= f.label :status %>
<%= f.text_field :status %>
<%= f.label :filled %>
<%= f.number_field :filled %>
<%= f.label :remaining %>
<%= f.number_field :remaining %>
<%= f.label :price %>
<%= f.text_field :price %>
<%= f.label :average_price %>
<%= f.text_field :average_price %>
<%= f.label :why_held %>
<%= f.text_field :why_held %>
<%= f.label :warning_text %>
<%= f.text_field :warning_text %>
<%= f.label :commission_currency %>
<%= f.text_field :commission_currency %>
<%= f.label :commission %>
<%= f.text_field :commission %>
<%= f.label :min_commission %>
<%= f.text_field :min_commission %>
<%= f.label :max_commission %>
<%= f.text_field :max_commission %>
<%= f.label :init_margin %>
<%= f.text_field :init_margin %>
<%= f.label :maint_margin %>
<%= f.text_field :maint_margin %>
<%= f.label :equity_with_loan %>
<%= f.text_field :equity_with_loan %>
<%= f.submit %>
<% end %>