=semantic_form_for [:admin, @m_odr_file], :remote => false, :multipart => true do |f|
  -if current_admin.id == 1
    =debug f.object.errors.messages
  .content
    =f.inputs do
      = f.input :file, :label => "Fichier :"

      = f.input :admin_ok, :label => "Décision :", :collection => [["Validé",true], ["Refusé", false]], :as => :select
      = f.input :reject_reason, :label => "Motif du rejet :", :collection => ["Mauvais document","Mauvaise qualité rendant le fichier illisible"]
      
      = f.input :reject_reason_description, :label => "Précisions sur le rejet"
      
      
      
  .actions=f.submit "sauvegarder", :class => "btn btn-primary"
  