Sha256: 680de170ced105d5f0464fbb33a8948323dfdea8b56ac545faefa63c0e243c53

Contents?: true

Size: 819 Bytes

Versions: 3

Compression:

Stored size: 819 Bytes

Contents

<%= form_for @post_category, :url => (@post_category.new_record? ? admin_post_categories_path : 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

3 entries across 3 versions & 1 rubygems

Version Path
tb_blog-1.1.2 app/views/admin/post_categories/_form.html.erb
tb_blog-1.1.1 app/views/admin/post_categories/_form.html.erb
tb_blog-1.1.0 app/views/admin/post_categories/_form.html.erb