%div{:class => ("error has-error" if form.object.errors["#{field}_id".to_sym].size > 0 )}
  %label=label
  %input.form-control{:class => "#{field}_autocomplete_input", :type => "text", :value => ("#{eval("form.object.#{field}.member_label")}" if eval("form.object.#{field}"))}


  = form.hidden_field "#{field}_id".to_sym, :class => "#{field}_id"
  =#=debug "#{form.object_name}[p_fournisseur_id]"
  :javascript
    qi_autocomplete('#{field}');