Sha256: c348c7836cec90da564fedde694f50c1a9a66bf33ce6b8c38e52747918d316f4

Contents?: true

Size: 1.22 KB

Versions: 8

Compression:

Stored size: 1.22 KB

Contents

.billing_machine
  .panel.panel-default
    .panel-heading: .panel-title = t("actions.email")

    .panel-body
      = horizontal_form_for :email do |f|
        = f.input(:subject,
          :as => :string,
          :label => t("attributes.email_subject"),
          :input_html => {value: @subject},
        )

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

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

        = f.input(:body,
          :as => :text,
          :label => t("attributes.email_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

8 entries across 8 versions & 1 rubygems

Version Path
dorsale-3.1.7 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-3.1.6 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-3.1.5 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-3.1.4 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-3.1.3 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-3.1.2 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-3.1.1 app/views/dorsale/billing_machine/invoices/email.html.slim
dorsale-3.1.0 app/views/dorsale/billing_machine/invoices/email.html.slim