Sha256: 7fb31ee68513d317850e75b03fee52ebbadff90e301ff7d890cd26479604d4ff

Contents?: true

Size: 472 Bytes

Versions: 9

Compression:

Stored size: 472 Bytes

Contents

- f.object.shipping_address ||= (f.object.owner.try(:shipping_address) || f.object.owner.try(:billing_address))
- f.object.name ||= f.object.owner.to_s

= f.text_field :name
= f.text_field :name_confirmation, hint: 'must match name'

- collection = EffectiveProducts.stamp_categories

- if collection.length == 1
  = f.hidden_field :category, value: collection.first
- else
  = f.select :category, collection

%h4 Shipping address
= effective_address_fields(f, :shipping)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
effective_products-0.3.6 app/views/effective/stamps/_fields.html.haml
effective_products-0.3.5 app/views/effective/stamps/_fields.html.haml
effective_products-0.3.4 app/views/effective/stamps/_fields.html.haml
effective_products-0.3.3 app/views/effective/stamps/_fields.html.haml
effective_products-0.3.2 app/views/effective/stamps/_fields.html.haml
effective_products-0.3.1 app/views/effective/stamps/_fields.html.haml
effective_products-0.3.0 app/views/effective/stamps/_fields.html.haml
effective_products-0.2.1 app/views/effective/stamps/_fields.html.haml
effective_products-0.2.0 app/views/effective/stamps/_fields.html.haml