Complete new interface
This commit is contained in:
1 parent
ca51ebc08c
commit
46b1d55ff6
17 files changed
+178
-57
No files matched your search
@@ -390,4 +390,19 @@ namespace :migrate do
|
||||
end
|
||||
|
||||
|
||||
task :correct_gallery_and_web_resoure_config => :environment do
|
||||
a = ModuleApp.where(:key=>'web_resource').first
|
||||
a.widgets = {}
|
||||
a.widgets[:web_links] = []
|
||||
a.widgets[:home_list] = []
|
||||
a.save
|
||||
|
||||
a = ModuleApp.where(:key=>'gallery').first
|
||||
a.widgets = {}
|
||||
a.widgets[:widget1] = []
|
||||
a.widget_options_fields_i18n = {"widget1"=>{"vertical"=>"gallery.widget_option.vertical", "horizontal"=>"gallery.widget_option.horizontal", "album_id"=>"gallery.widget_option.album"}}
|
||||
a.widget_options = {"widget1"=>{"vertical"=>[1, 2], "horizontal"=>[1, 2, 3, 4, 5, 6], "album_id"=>{"query"=>"GalleryAlbum.all", "value"=>:id, "label"=>:name}}}
|
||||
a.save
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user