Sha256: 8c766af63dc39f2ddcc70d8a41d480d4b4f898fe2ad06383a0377706ed17cde3
Contents?: true
Size: 662 Bytes
Versions: 19
Compression:
Stored size: 662 Bytes
Contents
%h3 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