Skip to content

Instantly share code, notes, and snippets.

@victordarras
Created December 17, 2014 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victordarras/33b90e2b7ea7c3382dfd to your computer and use it in GitHub Desktop.
Save victordarras/33b90e2b7ea7c3382dfd to your computer and use it in GitHub Desktop.
- 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