Sha256: 0112a830ace28128620eac6801e7f5b0014154f7dd93fa9ac94a9f246950aec9

Contents?: true

Size: 662 Bytes

Versions: 19

Compression:

Stored size: 662 Bytes

Contents

%h2 User Information
= 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

19 entries across 19 versions & 1 rubygems

Version Path
effective_orders-3.2.3 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-3.2.2 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-3.2.1 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-3.2.0 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-3.1.7 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-3.1.6 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-3.1.4 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-3.1.3 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-3.1.0 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-3.0.4 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-3.0.3 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-3.0.2 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-3.0.1 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-3.0.0 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-2.2.4 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-2.2.3 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-2.2.2 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-2.2.1 app/views/effective/orders/_order_user_fields.html.haml
effective_orders-2.2.0 app/views/effective/orders/_order_user_fields.html.haml