= semantic_form_for [:admin,@product_order_document_type], :remote => true do |form| 
  
  .content
    = form.input :public, :label => "Visible des clients ?"
    = form.input :label, :label => "Label :"
    = form.input :name, :label => "Nom :"
    = form.input :prefix, :label => "Prefix :"
    = form.input :reseaux_id, :label => "Réseau :", :collection => Reseaux.where(:parent_id => nil).all, :as => :select, :include_blank => true
    =form.input :fournisseur_id, :label => "Fournisseur :", :collection => Fournisseur.all, :as => :select, :include_blank => true
    
    %p
      %table.form_table
    
      
    
        %tr
          %td{:style => "vertical-align:top;padding-right:10px;"}
            -r = rand(1000000000000000000000000000)  
            %strong PDF de fond :
          %td
            #name{:id => r}
              -if form.object.data_file
                =form.object.data_file.abstract_file_name if form.object.data_file
                =link_to "Supprimer", "#", :onclick => "$('#input_"+r.to_s+"').val('');$('#name_"+r.to_s+"').html('');return false;"
            
            =form.hidden_field :data_file_id, :id => "input_"+r.to_s

            =link_to "Modifier ce fichier", "#", :onclick => "select_file_from_manager('"+r.to_s+"');return false;"
    
  .actions
    = form.submit "Sauvegarder"
  