.qi_header
  %h1
    Détail d'un bon d'achat
    %span
      =@v_bda.v_contact.prenom
      =@v_bda.v_contact.nom
    %span
      =@v_bda.token
      


.qi_row
  .qi_pannel.qi_plain.padding
  
    %table.table.table-striped.table-hover.table-bordered
      
    
      %tr
        %td Carte
        %td
          =link_to @v_bda.v_contact.codemanaginn, [:admin, @v_bda.v_contact]
  
      %tr
        %td Méthode d'envoi
        %td
          =@v_bda.send_via
          
      
      %tr
        %td Email d'envoi
        %td
          =@v_bda.email
      
  
    =#debug @v_bda.v_contact.societe.send_via
  
    -debug @v_bda.generate_ba
    
    =image_tag @v_bda.ba_url+"?j=#{Time.now.to_s.to_slug}"
    
    -debug @v_bda.generate_pdf
    %br
    %br
    
    =link_to "Télécharger le courrier", @v_bda.ba_pdf_url, :class => "btn btn-primary", :target => "_blank"
    