This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/app/views/admin/v_bdas/show.html.haml
2021-08-23 10:26:02 +02:00

46 lines
877 B
Plaintext

.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"