Sha256: 721a87821a0138d3750bd4faccf5b11cf42e22136676c65f3cf9feee0101f6bf
Contents?: true
Size: 829 Bytes
Versions: 18
Compression:
Stored size: 829 Bytes
Contents
<%= form_for @post_category, :url => (@post_category.new_record? ? spud_admin_post_categories_path : spud_admin_post_category_path(@post_category)), :html => {:class => 'form-horizontal spud_post_category_form'} do |f| %> <%= error_messages_for(f.object) %> <fieldset> <div class="control-group"> <%= f.label :name,"Name",:class => "control-label" %> <div class="controls"> <%= f.text_field :name %> </div> </div> <div class="control-group"> <%= label_tag :parent,'Parent',:class => "control-label" %> <div class="controls"> <select name="spud_post_category[parent_id]"> <option value="">No Parent</option> <%= options_for_select(SpudPostCategory.options_for_categories(:filter => @post_category.id), @post_category.parent_id) %> </select> </div> </div> </fieldset> <% end %>
Version data entries
18 entries across 18 versions & 2 rubygems