fix search incalid byte sequence in utf-8

This commit is contained in:
yanxd 2014-01-15 21:00:07 +08:00
parent 8d788fac45
commit 76f69973b4
3 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@
<html lang="<%= current_language %>">
<head>
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title><%= h html_title %></title>
<meta name="description" content="<%= Redmine::Info.app_name %>" />
<meta name="keywords" content="issue,bug,tracker" />

View File

@ -1,6 +1,6 @@
<% content_for :top_field do%>
<div style="margin: 10px 5%;vertical-align: bottom;">
<%= form_tag( search_stores_path, method: 'get') do %>
<%= form_tag( search_stores_path, method: 'post') do %>
<%= text_field_tag 'name', nil, size:"100", placeholder:'请输入要搜索的关键字', :class => 'blueinputbar' %>
<%= submit_tag l(:label_search), :class => "enterprise"%>
<% end %>

View File

@ -1,6 +1,6 @@
<% content_for :top_field do%>
<div style="margin: 10px 5%;">
<%= form_tag( search_stores_path, method: 'get') do %>
<%= form_tag( search_stores_path, method: 'post') do %>
<%= text_field_tag 'name', nil, size:"100", placeholder:'请输入要搜索的关键字', :value => params[:name] , :class => 'blueinputbar'%>
<%= submit_tag l(:label_search), :class => "enterprise"%>
<% end %>