Sha256: 453cbf6981d8bca519fa85f5331dba677ea332a2af5042b3ca16634fe1e50cc5
Contents?: true
Size: 964 Bytes
Versions: 12
Compression:
Stored size: 964 Bytes
Contents
module Adminpanel class RandomPage < Page def self.instance first || create!(name: 'Random Page', type: 'Adminpanel::RandomPage') end mount_images :random_pagefiles store :fields, accessors: [ :header, :slogan, :body, ] def self.form_attributes [ { 'header' => { 'type' => 'text_field', 'label' => 'Cabecera' } }, { 'slogan' => { 'type' => 'text_field', 'label' => 'Slogan' } }, { 'body' => { 'type' => 'wysiwyg_field', 'label' => 'Contenido' } }, { 'random_pagefiles' => { 'type' => 'adminpanel_file_field', 'label' => 'GalerĂa' } } ] end def self.display_name 'Random Page' end def self.icon 'puzzle-piece' end end end
Version data entries
12 entries across 12 versions & 1 rubygems