Makes Default Widget available for Survey Frontend
This commit is contained in:
parent
99bf4137e2
commit
6c01527ffd
|
@ -11,26 +11,26 @@ module Faq
|
||||||
update_info 'some update_info'
|
update_info 'some update_info'
|
||||||
|
|
||||||
front_end do
|
front_end do
|
||||||
app_page 'survey' do
|
# app_page 'survey' do
|
||||||
frontend_i18n "survey.frontend.survey"
|
# frontend_i18n "survey.frontend.survey"
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
|
|
||||||
authorizable
|
authorizable
|
||||||
|
|
||||||
data_count 1..20
|
data_count 1..20
|
||||||
|
|
||||||
# widgets do
|
widgets do
|
||||||
# default_widget do
|
default_widget do
|
||||||
# enable ["typeA"]
|
enable ["typeA"]
|
||||||
# query 'Survey.any_of( {:postdate.lte => Time.now} )'
|
query 'Survey.any_of( {:postdate.lte => Time.now} )'
|
||||||
# link_field :title, {:method => 'panel_survey_front_end_survey_path',:args=>:self}
|
link_field :title, {:method => 'panel_survey_front_end_survey_path',:args=>:self}
|
||||||
# field :time_range
|
field :time_range
|
||||||
# field :write
|
field :write
|
||||||
# field :result
|
field :result
|
||||||
# link_to_more 'panel_survey_front_end_survey_path', :title_i18n=> 'faq.default_widget.to_more'
|
link_to_more 'panel_survey_front_end_survey_path', :title_i18n=> 'faq.default_widget.to_more'
|
||||||
# end
|
end
|
||||||
# end
|
end
|
||||||
|
|
||||||
|
|
||||||
side_bar do
|
side_bar do
|
||||||
|
|
Loading…
Reference in New Issue