Sha256: 2c753d7eced7aa2b7b2980840d4e22040844de8522aa7ab39c1e618ecf979643
Contents?: true
Size: 1.42 KB
Versions: 33
Compression:
Stored size: 1.42 KB
Contents
<%- set_title 'Blog-Category Details' -%> <div class="form_container"> <%= legend_tag 'About This Blog Category' -%> <div class="form_column"> <%= faux_field 'Name', @blog_category.name %> <%= faux_field 'Description', @blog_category.description %> </div> <div class="form_column"> <%- if @blog_category.parent_id -%> <%= faux_field 'Parent', @blog_category.parent.name %> <%- end -%> </div> <br style="clear: both;" /> </div> <div class="link_block attached"> <%= link_to 'Edit', edit_admin_blog_category_path(@blog_category), :class => 'link_button' -%> <%= link_to 'Back', admin_blog_categories_path, :class => 'link_button' -%> </div> <div class="form_container"> <%= legend_tag 'Subcategories' -%> <%- if @blog_category.children.empty? -%> <p><em>No subcategories have been created yet.</em></p> <%- else -%> <table class="standard"> <tr> <th><%= sort_link('blog_categories', 'name', params) -%></th> <th><%= sort_link('blog_categories', 'description', params) -%></th> <th> </th> </tr> <%= render :partial => 'blog_category', :collection => @blog_category.children -%> </table> <%- end -%> </div> <div class="link_block attached"> <%= link_to 'Add Subcategory', new_admin_blog_category_path(:parent_id => @blog_category.id), :class => 'link_button' -%> <%= link_to 'Back', admin_blog_categories_path, :class => 'link_button' -%> </div>
Version data entries
33 entries across 33 versions & 1 rubygems