Makes Default Widget available for Survey Frontend

This commit is contained in:
Bernie Chiu 2013-12-24 14:18:21 +08:00 committed by saurabhbhatia
parent 99bf4137e2
commit 6c01527ffd
1 changed files with 14 additions and 14 deletions

View File

@ -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