Sha256: 68656d90053a19e72a15a6057042a9ba26b974e3a557793200682fb67156114d
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
# frozen_string_literal: true class SunrisePage < Sunrise::AbstractModel self.resource_name = 'Structure' index false form do nested_attributes :service_info, html: { class: 'service_info_holder' }, if: ->(s) { s.service_page? } do field :items_title, as: :string, translate: true field :prices_title, as: :string, translate: true field :description, as: :text, translate: true field :welcome_description, as: :text, translate: true field :items_description, as: :text, translate: true field :items_ids, input_html: { multiple: true }, collection: -> { Structure.visible.select(&:service_page?) } field :related_posts_ids, collection: -> { Post.recently }, input_html: { multiple: true } field :crm_params, as: :hidden, input_html: { class: 'crm_params' }, price_form: true field :badge_id, collection: -> { FeatureBadge.all }, include_blank: true field :show_on_main field :cover, as: :uploader end field :title, as: :text, translate: true, input_html: { rows: 2, style: 'width:800px;' } field :main, as: :ckeditor, translate: true, input_html: { height: 400, width: 900 } field :footer, as: :ckeditor, translate: true, input_html: { height: 300, width: 900 } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/sunrise/sunrise_page.rb |