Sha256: b6b3a47044a40925d12aa2d581b555f5afeb355537f778cb686d9492f2701518
Contents?: true
Size: 1.01 KB
Versions: 7
Compression:
Stored size: 1.01 KB
Contents
<h2><%= t(:'adva.sections.titles.create') %></h2> <%= form_for @section, as: :section, url: admin_sections_path do |f| %> <fieldset> <div class="col"> <%= f.text_field :title, label: "Title" %> </div> <div class="col"> <%= f.collection_select :type, Section.types, :to_s, :to_s, {}, label: "Type" %> </div> </fieldset> <% unless @site.sections.size < 2 %> <fieldset> <h3><%= t(:'adva.titles.parent_settings')%></h3> <%= f.select :parent_id, @site.sections.collect {|s| s == @section ? nil : [ s.title, s.id ]}.compact, { include_blank: true, label: true } %> <span class="hint" for="section_parent_id"><%= t :'adva.sections.hints.parent_setting' %></span> </fieldset> <% end %> <p class="buttons"> <%= submit_tag t(:'adva.common.save'), id: 'commit' %> <%= submit_tag t(:'adva.sections.links.save_and_create_new'), id: 'save_and_create_new' %> <%= t(:'adva.common.connector.or') %> <%= link_to(t(:'adva.common.cancel'), admin_sections_path) %> </p> <% end %>
Version data entries
7 entries across 7 versions & 2 rubygems