Sha256: e3059943d85cc4aeb66bc7c42539863869932537deb41fdc79a429cb6073e587

Contents?: true

Size: 625 Bytes

Versions: 12

Compression:

Stored size: 625 Bytes

Contents

module KonoUtils
  module Object
    module Cell
      module Forms # namespace
        # La cella base dei componenti della form contiene sempre la form come model
        class Fields::Base < Base

          ##
          # Campo del record da visualizzare nella form
          def attribute_name
            model.name
          end

          def field_options
            base_field_options.merge(options[:field_options] || {})
          end

          def base_field_options
            out = {}

            out[:as] = :hidden if model.is_hidden?

            out
          end

        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kono_utils_bootstrap_view4-0.3.2 app/concepts/kono_utils/object/cell/forms/fields/base.rb
kono_utils_bootstrap_view4-0.3.1 app/concepts/kono_utils/object/cell/forms/fields/base.rb
kono_utils_bootstrap_view4-0.3 app/concepts/kono_utils/object/cell/forms/fields/base.rb
kono_utils_bootstrap_view4-0.2.3 app/concepts/kono_utils/object/cell/forms/fields/base.rb
kono_utils_bootstrap_view4-0.2.2 app/concepts/kono_utils/object/cell/forms/fields/base.rb
kono_utils_bootstrap_view4-0.2.1 app/concepts/kono_utils/object/cell/forms/fields/base.rb
kono_utils_bootstrap_view4-0.2 app/concepts/kono_utils/object/cell/forms/fields/base.rb
kono_utils_bootstrap_view4-0.1.2 app/concepts/kono_utils/object/cell/forms/fields/base.rb
kono_utils_bootstrap_view4-0.1.1 app/concepts/kono_utils/object/cell/forms/fields/base.rb
kono_utils_bootstrap_view4-0.1.0 app/concepts/kono_utils/object/cell/forms/fields/base.rb
kono_utils_bootstrap_view4-0.1.0.pre.rc.7 app/concepts/kono_utils/object/cell/forms/fields/base.rb
kono_utils_bootstrap_view4-0.1.0.pre.rc.4 app/concepts/kono_utils/object/cell/forms/fields/base.rb