<% @table_fields.each do |f| %> <% tmp = f.to_s.gsub(/ask\./,'') %> <% if @ask_setting.default_setting[tmp].nil? || @ask_setting.default_setting[tmp] %> <%= thead(f) %> <% end %> <% end %> <% @askquestions.each do |b| %> <% if @ask_setting.default_setting['phone'] %> <% end %> <% if @ask_setting.default_setting['appointment'] %> <% end %> <% end %>
<% if b.situation == 'is_waiting' %> <%= t('ask.is_waiting') %> <% elsif b.situation == 'is_processed' %> <%= t('ask.is_processed') %> <% elsif b.situation == 'is_referral' %> <%= t('ask.is_referral') %> <% elsif b.situation == 'is_published' %> <%= t('ask.is_published') %> <% end %> <%= b.category.title %>
<% if b.situation == 'is_published' %> <%= link_to b.title,((Page.where(:module=>'ask').first.url+"?item=#{b.id}") rescue "javascript:alert('#{t('ask.no_index_page')}')") %> <% else %> <%= b.title %> <% end %> <%= b.name %> <%= b.phone %><%= b.appointment.strftime("%Y-%m-%d %H:%M") rescue nil %>
<%= content_tag :div, class: "bottomnav clearfix" do content_tag :div, paginate(@askquestions), class: "pagination pagination-centered" end %>