small improvement

This commit is contained in:
Barnabé 2021-10-08 19:24:31 +02:00
parent 296e4aef5f
commit 63d1069be5
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
=#debug form.object.errors.messages =#debug form.object.errors.messages
=# form.input :ref, :label => "Ref :" =# form.input :ref, :label => "Ref :"
.qi_row.field .qi_row.field{id: dom_id(form.object)}
.qi_pannel.qi_plain.padding .qi_pannel.qi_plain.padding
%table.form-table %table.form-table
@ -19,7 +19,7 @@
= form.input :ct_price_ht, :label => "Prix vente HT :" = form.input :ct_price_ht, :label => "Prix vente HT :"
%td %td
=form.input :p_product_color_id, :label => "Couleur :", :collection => PProductColor.all, :as => :select, :include_blank => true =form.input :p_product_color_id, :label => "Couleur :", :collection => PProductColor.all, :as => :select, :include_blank => true, input_html: {class: "custom-select"}
%td %td
=form.input :ct_sorecop, :label => "Sorecop personalisée :" =form.input :ct_sorecop, :label => "Sorecop personalisée :"
%td %td
@ -44,7 +44,7 @@
%tr %tr
%td{:colspan => 2} %td{:colspan => 2}
%td{:colspan => 4} %td{:colspan => 4}
= form.input :description, :label => "Désignation longue :" , :input_html => {:style => "height:100px;"} = form.input :description, :label => "Désignation longue :" , :input_html => {rows: 1}
-if false -if false
%tr %tr

View File

@ -37,10 +37,10 @@
= link_to i(:"check"), "#",:onclick => "send_manager_product('"+p_product_ref.id.to_s+"', '"+escape_javascript(p_product_ref.member_label.to_s)+"');return false;" = link_to i(:"check"), "#",:onclick => "send_manager_product('"+p_product_ref.id.to_s+"', '"+escape_javascript(p_product_ref.member_label.to_s)+"');return false;"
-else -else
= link_to i(:pencil), edit_admin_p_product_path(p_product_ref.p_product), :remote => false = link_to i(:pencil), edit_admin_p_product_path(p_product_ref.p_product, anchor: dom_id(p_product_ref)), :remote => false
= link_to i(:eye), admin_p_product_ref_path(p_product_ref), :remote => false = link_to i(:eye), admin_p_product_ref_path(p_product_ref), :remote => false
=render :partial => "qi/qi_ordered_table_object", :locals => {:tr => tr, :object => p_product_ref} =render :partial => "qi/qi_ordered_table_object", :locals => {:tr => tr, :object => p_product_ref}