

.qi_header
  %h1
    Primes
    %span
      Factures
    %span Modifier une facture
      


.left{:style => "float:left;width:30%;"}
  =render :partial => "form"

#show{:style => "margin-left:31%;"}
  =link_to ic(:download)+" Télécharger le document", download_admin_m_odr_file_path(@m_odr_file, :disposition => "attachment")


  -if File.extname(@m_odr_file.file.path) == ".pdf" || File.extname(@m_odr_file.file.path) == ".PDF"
    
    %iframe{:src => @m_odr_file.file.url, :style => "width:100%;height:800px;border:1px solid gray;"}

  -else
    &nbsp;&nbsp;
    =link_to ic(:"rotate-left"), rotate_admin_m_odr_file_path(:id => @m_odr_file.id, :direction => "right"), :remote => true
    &nbsp;&nbsp;
    =link_to ic(:"rotate-right"), rotate_admin_m_odr_file_path(@m_odr_file), :remote => true
    #image_previ{:style => "width:100%;height:800px;border:1px solid gray;overflow:auto;"}
      =render :partial => "admin/m_odr_files/image", :locals => {:file => @m_odr_file}

