Sha256: 7f7136b5e3fc33db887e6e1c21064a2f2cd55df2910ad73842b51bee566d63bd

Contents?: true

Size: 586 Bytes

Versions: 10

Compression:

Stored size: 586 Bytes

Contents

- if policy(@invoice).update?
  = update_button dorsale.edit_billing_machine_invoice_path(@invoice)

  - unless @invoice.paid?
    = dorsale_button dorsale.pay_billing_machine_invoice_path(@invoice), icon: :check, action: :paid, method: :patch

- if policy(@invoice).download?
  = download_button dorsale.billing_machine_invoice_path(@invoice, format: :pdf)

- if policy(@invoice).copy?
  = copy_button dorsale.copy_billing_machine_invoice_path(@invoice)

- if policy(@invoice).email?
  = dorsale_button dorsale.email_billing_machine_invoice_path(@invoice), icon: :send, action: :email

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dorsale-3.4.0 app/views/dorsale/billing_machine/invoices/_show_actions.html.slim
dorsale-3.3.0 app/views/dorsale/billing_machine/invoices/_show_actions.html.slim
dorsale-3.2.0 app/views/dorsale/billing_machine/invoices/_show_actions.html.slim
dorsale-3.1.7 app/views/dorsale/billing_machine/invoices/_show_actions.html.slim
dorsale-3.1.6 app/views/dorsale/billing_machine/invoices/_show_actions.html.slim
dorsale-3.1.5 app/views/dorsale/billing_machine/invoices/_show_actions.html.slim
dorsale-3.1.4 app/views/dorsale/billing_machine/invoices/_show_actions.html.slim
dorsale-3.1.3 app/views/dorsale/billing_machine/invoices/_show_actions.html.slim
dorsale-3.1.2 app/views/dorsale/billing_machine/invoices/_show_actions.html.slim
dorsale-3.1.1 app/views/dorsale/billing_machine/invoices/_show_actions.html.slim