Sha256: 02d4db309d8f653895754dbe3267a5d6a1b2562a54eef133eaf5f3c0f0995761
Contents?: true
Size: 1008 Bytes
Versions: 2
Compression:
Stored size: 1008 Bytes
Contents
<%= render :partial => 'admin/content_parts/sub_menu' %> <div class="new_resource"> <% form_for @new_category, :url => admin_content_categories_path do |f| %> <%= f.label :name %> <%= f.text_field :name %> <%= f.label :show_image %> <%= f.check_box :show_image %> <%= f.label :paginated %> <%= f.check_box :paginated %> <%= f.submit %> <% end %> </div> <table class="index" border="0" cellspacing="5" cellpadding="5"> <tr> <th>Name</th> <th>Show Image?</th> <th>Paginated?</th> <th>Part Count</th> <th></th> </tr> <tbody> <% @content_categories.each do |category|%> <tr> <td><%= category.name %></td> <td><%= category.show_image %></td> <td><%= category.paginated %></td> <td><%= category.content_parts.count %></td> <td><%= link_to "Edit", edit_admin_content_category_path(category) %> | <%= link_to "Destroy", admin_content_category_path(category), :method => :delete, :confirm => "Are you sure?"%></td> </tr> </tbody> <% end %> </table> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree-cms-0.2.1 | app/views/admin/content_categories/index.html.erb |
spree-cms-0.2.0 | app/views/admin/content_categories/index.html.erb |