Sha256: d6349ffa1288bb0382135debf32e5e682446afeed3fed23517d0915af1a3b8d5

Contents?: true

Size: 1 KB

Versions: 22

Compression:

Stored size: 1 KB

Contents

# -*- encoding : utf-8 -*-
module Admin
  class CountryPresenter < Carnival::BaseAdminPresenter
    field :id,
          :actions => [:index, :show, :csv, :pdf], :sortable => false,
          :searchable => true,
          :advanced_search => {:operator => :equal}
    field :name,
          :actions => [:index, :new, :edit, :show],
          :searchable => true,
          :advanced_search => {:operator => :like}
    field :code,
          :actions => [:index, :new, :edit, :show],
          :searchable => true,
          :advanced_search => {:operator => :like}
    field :states,
          :actions => [:index, :show, :edit, :new],
          :nested_form => true, :nested_form_allow_destroy => true
    field :cities,
          :actions => [:index, :show, :edit, :new],
          :nested_form => true, :nested_form_allow_destroy => true
    field :created_at, :actions => [:index, :show]
    field :updated_at, :actions => [:index, :show]

    action :show
    action :edit
    action :destroy
    action :new
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
carnival-0.0.59 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.58 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.57 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.56 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.55 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.54 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.53 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.52 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.51 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.50 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.49 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.48 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.47 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.45 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.44 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.43 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.42 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.41 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.40 test/dummy/app/presenters/admin/country_presenter.rb
carnival-0.0.39 test/dummy/app/presenters/admin/country_presenter.rb