Created
December 17, 2014 14:02
-
-
Save victordarras/33b90e2b7ea7c3382dfd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- content_for :title, "Aperçu de cette facture" | |
h2= t('titles.show_bill') | |
= actions_toolbar(@bill, { :additional => [ | |
{ :label => image_tag("pdf.png"), :url => bill_path(@bill, :format => 'pdf'), :html => { :title => t("views.bill_pdf") } }, | |
{ :label => image_tag("email_go.png"), :url => send_bill_bill_path(@bill), :html => { :title => t("titles.send_bill") } }, | |
{ :label => image_tag("copy.png"), :url => duplicate_bill_path(@bill), :html => { :method => :post, :title => t("actions.duplicate") } } | |
]}) | |
- if @bill.parent_id | |
p Récurrence de la facture #{ link_to @bill.parent.reference, bill_path(@bill.parent) } | |
= Liquid::Template.parse(@theme.src).render( | |
{ "object" => @bill, "me" => current_customer, "format" => request.format.to_s }, :filters => [LiquidFilters]).html_safe | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment