demo site widget
This commit is contained in:
1 parent
f223e4bb1e
commit
c0cac812c5
19 files changed
+312
-593
No files matched your search
@@ -16,6 +16,7 @@ class ModuleApp
|
||||
field :app_pages ,type: Array
|
||||
# field :widgets ,type: Array
|
||||
field :widgets ,type: Hash
|
||||
field :widget_fields ,type: Array
|
||||
|
||||
has_many :managers,as: :managing_app ,:class_name => "AppManager" #,:dependent => :destroy,:foreign_key => "managing_app_id",:inverse_of => :managing_app
|
||||
has_many :sub_managers,as: :sub_managing_app ,:class_name => "AppManager"#, :dependent => :destroy,:foreign_key => "sub_managing_app_id",:inverse_of => :sub_managing_app
|
||||
|
||||
@@ -11,6 +11,7 @@ class PagePart
|
||||
field :public_r_tag_option, :default => nil
|
||||
field :widget_path
|
||||
field :widget_style
|
||||
field :widget_field , :type => Array
|
||||
field :widget_data_count
|
||||
|
||||
has_one :i18n_variable, :class_name => "I18nVariable", :as => :language_value, :autosave => true, :dependent => :destroy
|
||||
|
||||
@@ -17,6 +17,8 @@ class Site
|
||||
|
||||
field :school
|
||||
field :department
|
||||
|
||||
mount_uploader :default_image, ImageUploader
|
||||
|
||||
has_one :title, :class_name => "I18nVariable", :as => :language_value, :autosave => true, :dependent => :destroy
|
||||
has_one :footer, :class_name => "I18nVariable", :as => :language_value, :autosave => true, :dependent => :destroy
|
||||
|
||||
Reference in new issue
Block a user