From 6c01527ffd1753b36431438ae890b1bf75dcd135 Mon Sep 17 00:00:00 2001 From: Bernie Chiu Date: Tue, 24 Dec 2013 14:18:21 +0800 Subject: [PATCH] Makes Default Widget available for Survey Frontend --- vendor/built_in_modules/survey/init.rb | 28 +++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/vendor/built_in_modules/survey/init.rb b/vendor/built_in_modules/survey/init.rb index e91c4af4..38b19e33 100644 --- a/vendor/built_in_modules/survey/init.rb +++ b/vendor/built_in_modules/survey/init.rb @@ -11,26 +11,26 @@ module Faq update_info 'some update_info' front_end do - app_page 'survey' do - frontend_i18n "survey.frontend.survey" - end + # app_page 'survey' do + # frontend_i18n "survey.frontend.survey" + # end end authorizable data_count 1..20 - # widgets do - # default_widget do - # enable ["typeA"] - # query 'Survey.any_of( {:postdate.lte => Time.now} )' - # link_field :title, {:method => 'panel_survey_front_end_survey_path',:args=>:self} - # field :time_range - # field :write - # field :result - # link_to_more 'panel_survey_front_end_survey_path', :title_i18n=> 'faq.default_widget.to_more' - # end - # end + widgets do + default_widget do + enable ["typeA"] + query 'Survey.any_of( {:postdate.lte => Time.now} )' + link_field :title, {:method => 'panel_survey_front_end_survey_path',:args=>:self} + field :time_range + field :write + field :result + link_to_more 'panel_survey_front_end_survey_path', :title_i18n=> 'faq.default_widget.to_more' + end + end side_bar do