Sha256: 0f262c3a306dfa9567efb4c51d0c3434bcb09f71cfecc8ef510fae925ce992f3

Contents?: true

Size: 1.08 KB

Versions: 36

Compression:

Stored size: 1.08 KB

Contents

.billing_machine
  h1 = t("actions.email")
  .well
    = horizontal_form_for :email do |f|
      = f.input(:subject,
        :as => :string,
        :label => t("attributes.subject"),
        :input_html => {value: @subject},
      )

      = f.input(:to,
        :disabled => true,
        :label => t("attributes.to"),
        :input_html => {value: "#{@invoice.customer} <#{@invoice.customer.email}>"},
      )

      = f.input(:attachment,
        :disabled => true,
        :label => t("attributes.attachment"),
        :input_html => {value: "#{@invoice.class.t}_#{@invoice.tracking_id}.pdf"},
      )

      = f.input(:body,
        :as => :text,
        :label => t("attributes.body"),
        :input_html => {value: @body},
      )


      .actions
        button.btn.btn-success type="submit"
          = icon(:send)
          = " "
          = t("actions.send")

        a.btn.btn-default href=dorsale.billing_machine_invoice_path(@invoice)
          = icon(:times)
          = " "
          = t("actions.cancel")

  hr

  = render "dorsale/billing_machine/invoices/details", document: @invoice

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
dorsale-3.0.3 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-3.0.2 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-3.0.1 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-3.0.0 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.7.3 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.7.2 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.7.1 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.7.0 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.6.8 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.6.7 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.6.6 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.6.5 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.6.4 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.6.3 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.6.2 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.6.1 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.6.0 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.5.0 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.4.3 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-2.4.2 app/views/dorsale/billing_machine/invoices/email.html.slim