Sha256: ce9c653bc4bd0841955883400f36f58a863415ba7a3cc7fa59df17d5e7030302

Contents?: true

Size: 1.85 KB

Versions: 8

Compression:

Stored size: 1.85 KB

Contents

#quotation.edit
  = horizontal_form_for @quotation, as: :quotation do |f|
    .well
      - if @quotation.persisted?
        .form-group
          label.control-label.col-sm-3
            = @quotation.t(:tracking_id)
          .col-sm-9
            .form-control-static.quotation-unique-index
              = @quotation.tracking_id

      = f.input :label
      = f.input :state, collection: billing_machine_quotation_states_for_select
      = f.input :date, html5: true
      = f.input :expires_at, html5: true
      = f.association :payment_term, collection: @payment_terms
      = f.input :customer_guid, collection: @people.map{ |e| [e.name, e.guid] }
      = f.input :vat_rate, as: :string
      = f.input :commercial_discount, as: :string

      - if @id_cards.one?
        = f.hidden_field :id_card_id
      - else
        = f.input :id_card_id, collection: @id_cards

      = f.input :comments

    #quotation-lines
      = f.simple_fields_for :lines do |l|
        = render "line_fields", f: l

      p.center
        = link_to_add_association t("actions.add_line"), f, :lines, class: "btn btn-primary", id: "add-new-line"

    .total.well
      .row
        label.col-sm-3.control-label
          = @quotation.t(:commercial_discount)
          = " : "
        .col-sm-9
          .form-control-static#quotation-commercial_discount

      .row
        label.col-sm-3.control-label
          = @quotation.t(:total_duty)
          = " : "
        .col-sm-9
          .form-control-static#quotation-total_duty

      .row
        label.col-sm-3.control-label
          = @quotation.t(:vat_rate)
          = " : "
        .col-sm-9
          .form-control-static#quotation-vat_amount

      .row
        label.col-sm-3.control-label
          = @quotation.t(:total_all_taxes)
          = " : "
        .col-sm-9
          .form-control-static#quotation-total_all_taxes

    = form_buttons

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dorsale-2.1.15 app/views/dorsale/billing_machine/quotations/_form.html.slim
dorsale-2.1.14 app/views/dorsale/billing_machine/quotations/_form.html.slim
dorsale-2.1.13 app/views/dorsale/billing_machine/quotations/_form.html.slim
dorsale-2.1.12 app/views/dorsale/billing_machine/quotations/_form.html.slim
dorsale-2.1.11 app/views/dorsale/billing_machine/quotations/_form.html.slim
dorsale-2.1.10 app/views/dorsale/billing_machine/quotations/_form.html.slim
dorsale-2.1.9 app/views/dorsale/billing_machine/quotations/_form.html.slim
dorsale-2.1.8 app/views/dorsale/billing_machine/quotations/_form.html.slim