Sha256: bd730dfdd22ad7cc77a9f6de685d53b34d9c96cb509e68e017cbb28e27eacdc5
Contents?: true
Size: 1.16 KB
Versions: 17
Compression:
Stored size: 1.16 KB
Contents
<%# popup search form. = INPUTS @search:: search model params[:id_target]:: target DOM id for hidden 'belongs_to' id %> <div id=edgarj_popup_search> <!-- edgarj/popup/_search.html.erb --> <% pf = Edgarj::PopupHelper::PopupField.new(params[:id_target]) %> <%= form_for(@search, as: 'search_form', remote: true, method: :get, url: {action: 'search'}) do |f| %> <table> <tr> <td><%= v('search') %></td> <td> <%= f.select("col", popup_drawer.columns_for(popup_drawer.list_columns, :list).map{|col| [model.human_attribute_name(col.name), col.name]}) %> </td> <td><%= f.text_field("val") %></td> <td> <% if @search.errors.any? %> <div class="error_explanation"> <ul> <% @search.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> </td> </tr> </table> <%= hidden_field_tag :model, model.to_s %> <%= hidden_field_tag :id_target, pf.id_target %> <% end %> </div>
Version data entries
17 entries across 17 versions & 1 rubygems