Sha256: 48d16942bea4fdd6ea4354d4e0727ea960595dba4f899fcd222ad2b84682fda8

Contents?: true

Size: 869 Bytes

Versions: 189

Compression:

Stored size: 869 Bytes

Contents

.effective-orders-stripe-plan{data: plan}
  .d-flex.justify-content-around.align-top
    = f.integer_field :quantity, autocomplete: 'off', required: true, label: 'Total People', maxlength: 3,
      class: 'effective-orders-subscripter-plan-quantity form-control-lg'

    .subscripter-math-symbol= 'x'

    = f.static_field :price_per_person, label: 'Price Per Person' do
      = price_to_currency(plan[:amount])

      - if plan[:savings]
        .subscripter-savings.text-danger
          Save #{price_to_currency(plan[:savings])}/person

    .subscripter-math-symbol= '='

    = f.static_field :total_amount, label: 'Total Amount' do
      = price_to_currency(plan[:amount] * f.object.quantity.to_i)

      - if plan[:savings]
        .subscripter-total-savings.text-danger
          Save
          %span #{price_to_currency(f.object.quantity.to_i * plan[:savings])}

Version data entries

189 entries across 189 versions & 1 rubygems

Version Path
effective_orders-4.3.0 app/views/effective/subscripter/_plan.html.haml
effective_orders-4.2.7 app/views/effective/subscripter/_plan.html.haml
effective_orders-4.2.6 app/views/effective/subscripter/_plan.html.haml
effective_orders-4.2.5 app/views/effective/subscripter/_plan.html.haml
effective_orders-4.2.4 app/views/effective/subscripter/_plan.html.haml
effective_orders-4.2.3 app/views/effective/subscripter/_plan.html.haml
effective_orders-4.2.2 app/views/effective/subscripter/_plan.html.haml
effective_orders-4.2.1 app/views/effective/subscripter/_plan.html.haml
effective_orders-4.2.0 app/views/effective/subscripter/_plan.html.haml