Sha256: fcb0b639a718e762f28d0a24e4b90106007553803b5c94d0dddfa92d9a036b0e
Contents?: true
Size: 703 Bytes
Versions: 4
Compression:
Stored size: 703 Bytes
Contents
<h2><%= t(:'adva.categories.titles.new') %></h2> <%= form_for [:admin, @section, @category] do |f| %> <fieldset> <div class="col"> <%= f.text_field :title, :label => true, :hint => :'adva.hints.categories' %> </div> <% 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> </div> <% end %> </fieldset> <% save_or_cancel_links(f, cancel_url: [:admin, @section, :categories]) %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems