From f5e9e68260160fd2e9f218d70a51c03dde6afaa2 Mon Sep 17 00:00:00 2001 From: puppe1990 Date: Mon, 2 Sep 2024 13:23:15 -0300 Subject: [PATCH] update the edit of productions --- app/views/productions/edit.html.erb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/views/productions/edit.html.erb b/app/views/productions/edit.html.erb index d19c60a4..a28a6a25 100644 --- a/app/views/productions/edit.html.erb +++ b/app/views/productions/edit.html.erb @@ -63,22 +63,18 @@
<%= form.fields_for :production_products do |pp_form| %>
-
+
<%= pp_form.label :product_id, Product.model_name.human, class: 'form-label' %> <%= pp_form.collection_select :product_id, Product.all, :id, :name, { include_blank: true }, { class: 'form-control', required: true } %>
-
+
<%= pp_form.label :quantity, ProductionProduct.human_attribute_name(:quantity), class: 'form-label' %> <%= pp_form.number_field :quantity, class: 'form-control', readonly: true %>
-
+
<%= pp_form.label :pieces_delivered, ProductionProduct.human_attribute_name(:pieces_delivered), class: 'form-label' %> <%= pp_form.number_field :pieces_delivered, class: 'form-control' %>
-
- <%= pp_form.label :pieces_missing, ProductionProduct.human_attribute_name(:pieces_missing), class: 'form-label' %> - <%= pp_form.number_field :pieces_missing, class: 'form-control', readonly: true %> -
<% end %>