独立搜索框"
This commit is contained in:
parent
189b60a152
commit
f781742961
|
@ -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>
|
|
@ -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">
|
||||
|
|
|
@ -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| %>
|
||||
|
|
Loading…
Reference in New Issue