=semantic_form_for [:admin, @p_article], :remote => true do |f|

  .content
    =f.inputs do
      = f.input :p_product_ref, as: :select, collection: PProductRef.all.distinct, :label => f.object.label_for(:p_product_ref)
      = f.input :p_grade, as: :select, collection: PGrade.pluck(:grade, :id), :label => "Grade"
      %h4 Numero de série :
      .p_article_serial_nums_form
        = f.semantic_fields_for :p_article_serial_nums do |form|
          =render :partial => "admin/p_article_serial_nums/form", :locals => {:form => form}
      %p= link_to_add_fields "Ajouter un numéro de série", f, :p_article_serial_nums, {:class => "btn btn-primary"}

            
      
      
      
      
  .actions=f.submit "sauvegarder", :class => "btn btn-primary"
  
