Sha256: 5c610bd3a5f3bcefd61292318a00ea6ebdc44a5d2d9f7152fb506e7c558e94c5

Contents?: true

Size: 704 Bytes

Versions: 16

Compression:

Stored size: 704 Bytes

Contents

module Adminpanel
  class Salesman < ActiveRecord::Base
    include Adminpanel::Base
    include Adminpanel::Facebook
    include Adminpanel::Twitter

    belongs_to :product

    def self.form_attributes
      [
      {
        'name' => {
          'type' => 'text_field',
          'label' => 'name',
          'placeholder' => 'name'
        }
      },
      {
        'product_id' => {
          'type' => 'belongs_to',
          'model' => 'Adminpanel::Product',
          'label' => 'product',
          'placeholder' => 'product'
        }
      },
      ]
    end

    def self.display_name
      'Agente' #singular
    end

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
adminpanel-2.5.3 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.5.2 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.5.1 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.5.0 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.4.3 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.4.2 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.4.1 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.4.0 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.3.1 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.3.0 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.2.5 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.2.4 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.2.3 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.2.2 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.2.1 test/dummy/app/models/adminpanel/salesman.rb
adminpanel-2.2.0 test/dummy/app/models/adminpanel/salesman.rb