Sha256: c69d128b32a5754a4c8108cc8d0d0c8b1ef4ced8bfb1ed9aefbd730e5051e792
Contents?: true
Size: 685 Bytes
Versions: 1
Compression:
Stored size: 685 Bytes
Contents
# frozen_string_literal: true class SunriseContentStorage < Sunrise::AbstractModel self.resource_name = 'ContentStorage' available_index_views [:thumbs] index :thumbs do field :type_title group :search do field :title field :type field :key end end form do field :title, as: :text, input_html: { rows: 2 }, translate: true field :type_id, unless: ->(rec) { rec.persisted? }, include_blank: false, collection: lambda { ids = ContentStorage.pluck(:type_id) ContentStorageType.all.reject { |t| ids.include?(t.id) } } field :content, as: :ckeditor, input_html: { height: 400, width: 900 }, translate: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/sunrise/sunrise_content_storage.rb |