Sha256: ba63fa6a9cafef0b1740606bcf67e871c7f94ace00115bcc1e3f6a670abb3958
Contents?: true
Size: 1.18 KB
Versions: 29
Compression:
Stored size: 1.18 KB
Contents
<% type ||= index %> <div class='categories_widget'> <div class='label'><%= t('.label') %></div> <%= link_to t('.edit'), '#', :class => 'action_link edit', 'data-state' => 'edit' %> <%= link_to t('.done'), '#', :class => 'action_link done', 'data-state' => 'done', :style => 'display:none' %> <div class='categories read'> <div class='category all <%= (params[:category].blank?? 'active' : nil ) %>'> <%= link_to t('.all'), :category => nil %> </div> <% @site.categories.of_type(type).each do |category| %> <%= render :partial => 'cms_admin/categories/show', :object => category, :locals => { :read => true } %> <% end %> </div> <div class='categories editable' style='display:none'> <% @site.categories.of_type(type).each do |category| %> <%= render :partial => 'cms_admin/categories/show', :object => category %> <% end %> <div class='category new'> <%= form_for :category, :url => cms_admin_site_categories_path(@site), :remote => true do |form| %> <%= form.hidden_field :categorized_type, :value => type %> <%= form.text_field :label %> <%= form.submit t('.add') %> <% end %> </div> </div> </div>
Version data entries
29 entries across 29 versions & 1 rubygems