Sha256: d2e5a58fea255679551727bf3d20b15ff1b8943f9bb17980b959d01dbd20f3fd

Contents?: true

Size: 409 Bytes

Versions: 34

Compression:

Stored size: 409 Bytes

Contents

module PushType
  module FieldsHelper

    def render_field(field, f, html_options = {})
      field.instance_variable_get(:@opts)[:html_options].merge! html_options
      content_tag :div, class: field.kind do
        render "push_type/fields/#{ field.template }", f: f, field: field
      end
    end

    def field_classes(field)
      [field.css_class, 'columns end'].compact.join(' ')
    end

  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
push_type_admin-0.12.1 app/helpers/push_type/fields_helper.rb
push_type_admin-0.12.0 app/helpers/push_type/fields_helper.rb
push_type_admin-0.12.0.beta.1 app/helpers/push_type/fields_helper.rb
push_type_admin-0.11.2 app/helpers/push_type/fields_helper.rb
push_type_admin-0.11.1 app/helpers/push_type/fields_helper.rb
push_type_admin-0.11.0.beta.2 app/helpers/push_type/fields_helper.rb
push_type_admin-0.11.0.beta.1 app/helpers/push_type/fields_helper.rb
push_type_admin-0.10.4 app/helpers/push_type/fields_helper.rb
push_type_admin-0.10.3 app/helpers/push_type/fields_helper.rb
push_type_admin-0.10.2 app/helpers/push_type/fields_helper.rb
push_type_admin-0.10.1 app/helpers/push_type/fields_helper.rb
push_type_admin-0.10.0 app/helpers/push_type/fields_helper.rb
push_type_admin-0.10.0.beta.5 app/helpers/push_type/fields_helper.rb
push_type_admin-0.10.0.beta.3 app/helpers/push_type/fields_helper.rb
push_type_admin-0.9.5 app/helpers/push_type/fields_helper.rb
push_type_admin-0.9.3 app/helpers/push_type/fields_helper.rb
push_type_admin-0.9.2 app/helpers/push_type/fields_helper.rb
push_type_admin-0.9.1 app/helpers/push_type/fields_helper.rb
push_type_admin-0.9.0 app/helpers/push_type/fields_helper.rb
push_type_admin-0.9.0.beta.4 app/helpers/push_type/fields_helper.rb