default widget link.

make sure to run
rake migrate:make_default_widget_work_config
for changing announcement module app
This commit is contained in:
Fu Matthew authored and chris committed 2013-01-07 17:20:37 +08:00
1 parent a34da20e48
commit 5793f0fe5d
16 files changed
+100 -50

No files matched your search

+11
View File
@@ -8,4 +8,15 @@ module Admin::PagePartsHelper
res.html_safe
end
end
def widget_field_options(i)
options = @module_app.widget_fields.collect{|widget_field| [I18n.t(widget_field[1]), widget_field[0]]}
options_for_select(options, (@part[:widget_field][i][0] if (@part && !@part[:widget_field].blank? && !@part[:widget_field][i].blank?)) )
end
def widget_fiield_type_options(i)
options = LIST[:widget_field_type].collect{|widget_field| [widget_field.humanize, widget_field]}
options_for_select(options, (@part[:widget_field][i][1] if (@part && !@part[:widget_field].blank? && !@part[:widget_field][i].blank?)) )
end
end