diff --git a/app/helpers/admin/asks_helper.rb b/app/helpers/admin/asks_helper.rb index c735dd1..fb2c483 100644 --- a/app/helpers/admin/asks_helper.rb +++ b/app/helpers/admin/asks_helper.rb @@ -148,7 +148,7 @@ module Admin::AsksHelper hidden_style = value['disabled'] == 'true' ? {style: 'display:none;'} : {} "#{multiple_lang_tag(k,'text_field',"options][#{key}",value,{placeholder: t('ask.option_name')},tmp,hidden_style)}" end.join - active_class = Array(v['options']).count !=0 ? ' active' : '' + active_class = ['select','radio_button','checkbox'].include?(v['type']) ? ' active' : '' active_prompt_class = ['date','radio_button','checkbox'].exclude?(v['type']) ? ' active' : '' multi_lang_prompt_tag = "