Sha256: 3487133f6b38ad1385ebcea95b8b4e5b73b1dfcd35ffa680690e4a92e3185ac5

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

class SunrisePopularLanguage < Sunrise::AbstractModel
  self.resource_name = 'PopularLanguage'

  available_index_views [:thumbs]

  index :thumbs do
    field :country_code
    field :sort_order
  end

  form do
    field :title, as: :text, input_html: { rows: 2 }, translate: true

    field :country_code, as: :select, collection: TranslationCms::Country.all.map { |c| [c.title, c.alpha2.downcase] }
    field :sort_order
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/sunrise/sunrise_popular_language.rb