独立搜索框"

This commit is contained in:
yanxd 2014-01-17 15:05:50 +08:00
parent 189b60a152
commit f781742961
3 changed files with 8 additions and 12 deletions

View File

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

View File

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

View File

@ -2,12 +2,7 @@
</style>
<% content_for :top_field do%>
<div style="margin: 10px 5%;">
<%= form_tag( search_stores_path, method: 'post') do %>
<%= text_field_tag 'name', nil, size:"100", placeholder:'请输入要搜索的关键字', :value => params[:name] , :class => 'blueinputbar', :required => true %>
<%= submit_tag l(:label_search), :class => "enterprise"%>
<% end %>
</div>
<%= render 'search_bar' %>
<% end %>
<% @searched_attach.each do |result| %>