- if params[:controller] == "admin/p_article_serial_nums"
  =semantic_form_for [:admin, @p_article_serial_num], :remote => true do |f|

    .content
      =f.inputs do
        = f.input :p_article, as: :select, collection: PArticle.all ,:label => f.object.label_for(:p_article_id), member_label: :member_label
        = f.input :p_serial_num_type_id, :label => "type", as: :select, collection: PSerialNumType.pluck(:name, :id)

        = f.input :value


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

- else
  .p_article_serial_nums_form.field
    =form.inputs do
      = form.input :p_serial_num_type_id, :label => "type", as: :select, collection: PSerialNumType.pluck(:name, :id)
      = form.input :value

