Sha256: 8ac6e923574dc193405a361f4437bdef761d55366c691db09bf9955cd41d53c6

Contents?: true

Size: 655 Bytes

Versions: 33

Compression:

Stored size: 655 Bytes

Contents

module Adminpanel
  class FileResource < ActiveRecord::Base
    include Adminpanel::Base

		mount_images :file_resourcefiles

    def self.form_attributes
      [
        {
          'name' => {
            'type' => 'text_field',
            'label' => 'name',
            'placeholder' => 'name',
          }
        },
        {
          'file_resourcefiles' => {
            'type' => 'adminpanel_file_field',
            'label' => 'name',
            'placeholder' => 'name'
          }
        }
      ]
    end

    def self.display_name
      'FileResource' #singular
    end

    # def self.icon
    #   "truck" # fa-{icon}
    # end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
adminpanel-2.6.0 test/dummy/app/models/adminpanel/file_resource.rb
adminpanel-2.5.5 test/dummy/app/models/adminpanel/file_resource.rb
adminpanel-2.5.4 test/dummy/app/models/adminpanel/file_resource.rb
adminpanel-2.5.3 test/dummy/app/models/adminpanel/file_resource.rb
adminpanel-2.5.2 test/dummy/app/models/adminpanel/file_resource.rb
adminpanel-2.5.1 test/dummy/app/models/adminpanel/file_resource.rb
adminpanel-2.5.0 test/dummy/app/models/adminpanel/file_resource.rb
adminpanel-2.4.3 test/dummy/app/models/adminpanel/file_resource.rb
adminpanel-2.4.2 test/dummy/app/models/adminpanel/file_resource.rb
adminpanel-2.4.1 test/dummy/app/models/adminpanel/file_resource.rb
adminpanel-2.4.0 test/dummy/app/models/adminpanel/file_resource.rb
adminpanel-2.3.1 test/dummy/app/models/adminpanel/file_resource.rb
adminpanel-2.3.0 test/dummy/app/models/adminpanel/file_resource.rb