fix error

This commit is contained in:
邱博亞 2022-09-01 10:57:00 +08:00
parent 864ca46126
commit 2b88b6d34f
1 changed files with 2 additions and 2 deletions

View File

@ -51,10 +51,10 @@
else else
cats = cats.map{|v| Category.where(id: v).first}.compact cats = cats.map{|v| Category.where(id: v).first}.compact
end end
all_cat = [[t('announcement.all'),'all']] all_cat = [[t('announcement.select_prompt'),'all'],[t('announcement.all'),'all']]
%> %>
<div class="search_widget" style="display: flex;flex-wrap: wrap;font-size: 1.1em;"> <div class="search_widget" style="display: flex;flex-wrap: wrap;font-size: 1.1em;">
<%= 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')) %> <%= 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") %>
<input class="search_box" type="text" name="keywords" value="<%= @params['keywords'].to_s.gsub(/\"/,'') %>" placeholder="<%= t('announcement.keywords') %>"> <input class="search_box" type="text" name="keywords" value="<%= @params['keywords'].to_s.gsub(/\"/,'') %>" placeholder="<%= t('announcement.keywords') %>">
<div style="display: flex;flex-wrap: wrap;"> <div style="display: flex;flex-wrap: wrap;">
<div class="default_picker"> <div class="default_picker">