Sha256: 7d5701cbbc1ac22f63f8582bd5ddaf900792b0831b8daf75e04bb7809fb4afea

Contents?: true

Size: 1.69 KB

Versions: 5

Compression:

Stored size: 1.69 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" %>
    
    <%= cookie_content_tag(:div, :id=>"block_filter", :class=>"filt") do %>
      <%= form_for @search, :as => :search, :url=>manage_structure_posts_path(@structure.id), :html=>{:method=>:get, :id=>"form_filter"} do |f| %>
        <%= f.label :title, t('activerecord.attributes.post.title') %>
        <%= f.text_field :title, :class=>"text" %>
        
        <div class="buts">
          <%= f.submit t('manage.model_filter.search'), :style=>"display:none;" %>
          <%= link_to_function content_tag(:span, t('manage.model_filter.search')), "$('#form_filter').submit()", :class=>"gr" %>                
          <%= link_to t('manage.model_filter.clear'), manage_structure_posts_path(@structure.id), :class=>"erase" %>
        </div>
      <% end %>
    <% end %>
  </div>
  <div class="sort">
  	<label><%= t('manage.sort') %></label>
    <div class="select"><%= link_to_function t("manage.posts.sort.#{@search.order_column}_#{@search.next_order_type}"), "SelectList.toggle(event)", :class=>"corn", :id=>'sort_select' %></div>
    <div id='sort_select_list' class="select-list" style='display:none;'>
      <%= link_to_sort(t('manage.posts.sort.created_at_desc'), :name => "created_at", :order_type => 'desc') %>
      <%= link_to_sort(t('manage.posts.sort.created_at_asc'), :name=>"created_at", :order_type=>'asc') %>
      
      <%= link_to_sort(t('manage.posts.sort.title_desc'), :name=>"title", :order_type=>'desc') %>
      <%= link_to_sort(t('manage.posts.sort.title_asc'), :name=>"title", :order_type=>'asc') %>
    </div>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
freeberry-0.3.0 lib/generators/freeberry/base/templates/views/manage/posts/_model_filter.html.erb
freeberry-0.2.9 lib/generators/freeberry/base/templates/views/manage/posts/_model_filter.html.erb
freeberry-0.2.7 lib/generators/freeberry/base/templates/views/manage/posts/_model_filter.html.erb
freeberry-0.2.6 lib/generators/freeberry/base/templates/views/manage/posts/_model_filter.html.erb
freeberry-0.2.5 lib/generators/freeberry/base/templates/views/manage/posts/_model_filter.html.erb