This commit is contained in:
Nicolas Bally 2020-06-26 16:35:01 +02:00
parent 9274f989ee
commit 5f0dbd2ff0

View File

@ -20,7 +20,7 @@
-if f.object.m_odr_file_type_id == 2
%table.m_odr_file_products_form.form-table
= f.input :buy_at, :label => "Date de l'achat", :as => :date
= f.input :m_odr_place, :label => "Revendeur :", :as => :date, :collection => MOdrPlace.order("name ASC").all, :member_label => :member_label, :as => :select
= f.input :m_odr_place, :label => "Revendeur :", :as => :date, :collection => MOdrPlace.order("name ASC, city ASC").all, :member_label => :member_label, :as => :select
=f.semantic_fields_for :m_odr_file_products do |form|
=render :partial => "admin/m_odr_file_products/form", :locals => {:form => form}