2017-10-09 07:52:09 +02:00
|
|
|
class CustomWizard::Field
|
|
|
|
def self.types
|
2019-07-26 10:59:21 +02:00
|
|
|
@types ||= ['checkbox', 'composer', 'dropdown', 'tag', 'category', 'image', 'text', 'textarea', 'text-only', 'upload', 'user-selector']
|
2017-10-09 07:52:09 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.require_assets
|
|
|
|
@require_assets ||= {}
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.add_assets(type, plugin = nil, asset_paths = [])
|
|
|
|
if type
|
|
|
|
types.push(*type)
|
|
|
|
end
|
|
|
|
|
|
|
|
if plugin && asset_paths
|
|
|
|
require_assets[plugin] = asset_paths
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|