diff --git a/app/models/p_customer.rb b/app/models/p_customer.rb index df6515a..6c388cf 100644 --- a/app/models/p_customer.rb +++ b/app/models/p_customer.rb @@ -129,7 +129,7 @@ class PCustomer < ApplicationRecord end - after_create :do_import + #after_create :do_import after_update do #self.do_import if self.refresh_import diff --git a/app/views/public/m_odr_files/_form.html.haml b/app/views/public/m_odr_files/_form.html.haml index 0409fb4..dcb160e 100644 --- a/app/views/public/m_odr_files/_form.html.haml +++ b/app/views/public/m_odr_files/_form.html.haml @@ -15,8 +15,6 @@ = f.input :buy_at, :label => "Date de l'achat :",:as => :string, :input_html => {:autocomplete => "off", :class => "year_date_picker"} - -if true - %p= public_link_to_add_fields ic(:plus)+" Ajouter un ou plusieurs pneus", f, :m_odr_file_products @@ -24,6 +22,10 @@ =render :partial => "public/m_odr_file_products/form", :locals => {:form => form} + -if true + %p= public_link_to_add_fields ic(:plus)+" Ajouter un ou plusieurs pneus", f, :m_odr_file_products + + %br %br @@ -32,12 +34,14 @@ -else %table.m_odr_file_roulages_form.form-table{:style => "width:100%;"} - -if true - %p= public_link_to_add_fields ic(:plus)+" Ajouter une journée de roulage", f, :m_odr_file_roulages - + =f.semantic_fields_for :m_odr_file_roulages do |form| =render :partial => "public/m_odr_file_roulages/form", :locals => {:form => form} + + -if true + %p= public_link_to_add_fields ic(:plus)+" Ajouter une journée de roulage", f, :m_odr_file_roulages +