Sha256: dc554e2b5f31a24a06cc2e1b22dd1134742897a6a8878339d5e42ebe050565e5

Contents?: true

Size: 641 Bytes

Versions: 64

Compression:

Stored size: 641 Bytes

Contents

= form.simple_fields_for :user, user do |fa|
  - if (EffectiveOrders.collect_user_fields || []).include?(:salutation) && fa.object.respond_to?(:salutation)
    - if defined?(fa.object.class::SALUTATIONS)
      = fa.input :salutation, :as => :select, :collection => fa.object.class::SALUTATIONS, :include_blank => false, :required => true
    - else
      = fa.input :salutation, :required => true, :placeholder => 'Salutation'

  - (EffectiveOrders.collect_user_fields || []).reject { |x| x == :salutation }.each do |field|
    - if fa.object.respond_to?(field)
      = fa.input field, :required => true, :placeholder => field.to_s.humanize

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
effective_orders-1.8.1 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.8.0 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.7.5 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.7.4 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.7.3 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.7.2 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.7.1 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.7.0 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.6.6 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.6.5 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.6.4 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.6.3 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.6.1 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.6.0 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.5.9 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.5.8 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.5.7 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.5.5 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.5.4 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-1.5.3 app/views/effective/orders/_order_user_fields.html.haml