Sha256: 2ae061aa255ab0d05d224a0ff7182115b852ac3cd6002c9e1168bff6d204a3f3

Contents?: true

Size: 694 Bytes

Versions: 1

Compression:

Stored size: 694 Bytes

Contents

<h2><%= t(:'adva.categories.titles.new') %></h2>
  
<%= form_for [:admin, @section, @category] do |f| %>
  <% f.field_set do %>
    <div class="col">
    	<%= f.text_field :title, :label => true, :hint => :'adva.hints.categories' %>
		</col>
		
		<% unless @section.categories.size < 2 %>
      <div class="col">
	    	<%= f.select :parent_id, @section.categories.collect {|p| [p.title, p.id] unless p == @category }.compact, { :include_blank => true, :label => true } %>
				<span class="hint" for="category_parent_id"><%= t :'adva.categories.hints.parent_setting' %></span>
      </col>
		<% end %>
	<% end %>

  <% save_or_cancel_links(f, :cancel_url => admin_categories_path) %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adva-0.1.0 app/views/admin/page/categories/new.html.erb