Sha256: 43030488a8958fd9aecbcaa0284feb087870c9df7d2b950b1f94c75ddf1b432b

Contents?: true

Size: 904 Bytes

Versions: 3

Compression:

Stored size: 904 Bytes

Contents

<%= manage_form_for @structure do |f| %>
  <div class="edit-cont">   
    <div class="inputs-bl">
      <%= f.input :title, :input_html => { :class => 'name text' } %>
      <%= f.input :redirect_url %>
      <%= f.input :slug %>
    </div>
  </div>
  
  <%= render :partial => 'manage/headers/form', :object => f %>
  
  <div class="edit-cont">   
    <div class="inputs-bl">
      <% if @structure.moveable? %>
        <%= f.input :parent_id, :collection => nested_set_options(Structure) {|i| "#{'–' * i.depth} #{i.title}"}, :include_blank => false %>
      <% end %>
      
      <%= f.input :kind, :collection => StructureType.all, :include_blank => false %>
      
      <%= f.input :position, :collection => PositionType.all, :include_blank => false %>
      
      <div class="radio-bl">
        <%= f.input :is_visible %>
      </div>
    </div>
  </div>
  
  <%= f.button :submit %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sunrise-core-0.2.2 app/views/manage/structures/_form.html.erb
sunrise-core-0.2.1 app/views/manage/structures/_form.html.erb
sunrise-core-0.2.0 app/views/manage/structures/_form.html.erb