<% tmp = render_view %> <% @params = @index_controller.instance_variable_get(:@params) rescue {} @enable_search_flag = @index_controller.instance_variable_get(:@enable_search_flag) rescue false %> <% if @enable_search_flag %>
<% cats = Array(@page.categories) if cats.include? 'all' cats = ModuleApp.where(key: 'announcement').first.categories else cats = cats.map{|v| Category.where(id: v).first}.compact end all_cat = [[t('announcement.all'),'all']] %>
<%= select_tag('category',options_for_select(all_cat.concat(cats.map{|v| [v.title,v.id.to_s]}),:selected => @params['category'].to_s),:id=>"category_select_box",:prompt => t('announcement.select_prompt')) %> " placeholder="<%= t('announcement.keywords') %>">
" placeholder="<%= t('announcement.stime') %>" data-format="yyyy/mm/dd">
~
" placeholder="<%= t('announcement.etime') %>" data-format="yyyy/mm/dd">
<% end %> <%= tmp %>