Sha256: 0313555988ab4378d089aae5c8287d45fda7fb3a5b305f6119c06f19d2ec5b33
Contents?: true
Size: 551 Bytes
Versions: 2
Compression:
Stored size: 551 Bytes
Contents
module FieldTypes module Core class AssetCell < FieldTypes::Core::Cell include UtilityHelper def input render end private def input_classes @options[:input_options]&.[](:display)&.[](:classes) end def input_styles cssify(@options[:input_options]&.[](:display)&.[](:styles)) end def render_label @options[:form].label 'data[asset]', field.name end def render_input @options[:form].file_field 'data[asset]' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cortex-field_types-core-0.2.3 | app/cells/field_types/core/asset_cell.rb |
cortex-field_types-core-0.2.2 | app/cells/field_types/core/asset_cell.rb |