=semantic_form_for [:admin, @file_tunel], html: { multipart: true }, :remote => false do |f|

  .content
    =f.inputs do
      .qi_row
        .qi_pannel.qi_plain.padding
          = f.input :p_customer, :label => "Client :" 
      
          = f.input :name, :label => "Nom :" 
          = f.input :description, :label => "Description :" 
          = f.input :slug, :label => "Permalien :" 
          = f.input :start_at, :label => "Date de début :", :as => :date
          = f.input :end_at, :label => "Date de fin :" , :as => :date
          = f.input :fili_text, :label => "Texte filigrame :" 
      
      
      .qi_row
        .qi_pannel.qi_plain.padding
          Fichiers à télécharger :
          %hr
    
          .file_tunel_files_form
            =f.semantic_fields_for :file_tunel_files do |form|
              =render :partial => "admin/file_tunel_files/form", :locals => {:form => form}
  
          %p= link_to_add_fields ic(:plus)+" Ajouter un fichier demandé", f, :file_tunel_files
          
      
      .qi_row
        .qi_pannel.qi_plain.padding
          Mails à contacter :
          %hr
    
          .file_tunel_sends_form
            =f.semantic_fields_for :file_tunel_sends do |form|
              =render :partial => "admin/file_tunel_sends/form", :locals => {:form => form}
  
          %p= link_to_add_fields ic(:plus)+" Ajouter un mail", f, :file_tunel_sends
      
      .qi_row
        .qi_pannel.qi_plain.padding
    
          = f.input :from_email, :label => "Email d'envoi :" 
    
          Mails types :
          %hr
    
          .mail_types_form
            =f.semantic_fields_for :mail_types do |form|
              =render :partial => "admin/mail_types/form", :locals => {:form => form}
  
          %p= link_to_add_fields ic(:plus)+" Ajouter un mail type", f, :mail_types
      
      
  .actions=f.submit "sauvegarder", :class => "btn btn-primary"
  