Sha256: 72d5a1902a67854b6a41414f1d1f4e47a8382743ddb232df5e90ba77a3e05009
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true class SunriseCompanyLocation < Sunrise::AbstractModel self.resource_name = 'CompanyLocation' available_index_views [:thumbs] index :thumbs do scope { CompanyLocation.all } field :title field :place_title field :sort_order end form do field :title field :shortname field :description, as: :text, translate: true, input_html: { rows: 2 } field :place_title, as: :text, translate: true, input_html: { rows: 1 } field :place_location, as: :text, translate: true, input_html: { rows: 3 } # field :notes, as: :text # json_microdata_enabled = true if TranslationCms.json_microdata_enable field :country, as: :text, input_html: { rows: 1 } field :city, as: :text, input_html: { rows: 1 } field :street, as: :text, input_html: { rows: 1 } field :postal_code, as: :text, input_html: { rows: 1 } end field :location_id field :sort_order nested_attributes :phones, multiply: true do field :phone field :title end nested_attributes :emails, multiply: true do field :email field :title end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/sunrise/sunrise_company_location.rb |