Sha256: a722918fe75ac3fd28bd393b2c8a51edcbd4fbbf3fd67a407ae58ce149b02f29
Contents?: true
Size: 2 KB
Versions: 1
Compression:
Stored size: 2 KB
Contents
<div class="bot-bg"> <div class="filt-bl"> <%%= link_to_function t('manage.model_filter.title'), "Manage.toggle_element('block_filter')", :class=>"dark-arr" %> <%%= t('manage.model_filter.total_count') %>: <%%= @<%= plural_name %>.total_count %> <%%= cookie_content_tag(:div, :id=>"block_filter", :class=>"filt") do %> <%%= form_for search_filter, :url=>manage_<%= parent_singular_name %>_<%= plural_name %>_path(@<%= parent_singular_name %>.id), :html=>{:method=>:get} do |f| %> <%% controller.scopes_configuration.each do |key, value| %> <%%= f.label value[:as], t(value[:as], :scope => "activerecord.attributes.<%= singular_name %>") %> <%%= f.text_field value[:as], :class => "text", :name => value[:as] %> <%% end %> <div class="buts"> <%%= content_tag(:button, :value=>"search", :type=>"submit", :name=>"commit", :class=>"gr cupid-green") do %> <%%= t('manage.model_filter.search') %> <%% end %> <%%= link_to t('manage.model_filter.clear'), manage_<%= parent_singular_name %>_<%= plural_name %>_path(@<%= parent_singular_name %>.id), :class=>"erase" %> </div> <%% end %> <%% end %> </div> <div class="sort"> <label><%%= t('manage.sort') %></label> <div class="select-input"><%%= link_to_function t("<%= plural_name %>.#{@search.order_column}_#{@search.order_type}", :scope => [:manage, :sort_columns], :default => :"#{@search.order_column}_#{@search.order_type}"), "SelectList.toggle(event)", :class=>"corn", :id=>'sort_select' %></div> <div id='sort_select_list' class="select-list" style='display:none;'> <%% controller.orders_configuration.each do |key, value| %> <%%= link_to_sort(t("#{key}_desc", :scope => "manage.<%= plural_name %>.sort"), :name => key, :order_type=>'desc') %> <%%= link_to_sort(t("#{key}_asc", :scope => "manage.<%= plural_name %>.sort"), :name => key, :order_type=>'asc') %> <%% end %> </div> </div> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sunrise-scaffold-0.2.0 | lib/generators/sunrise/scaffold/templates/multiplay/views/model_filter.html.erb |