Sha256: fd5c27507b5295af27b84ba480e3f2406e0da6feca784d298f2fccdfb6868601

Contents?: true

Size: 877 Bytes

Versions: 6

Compression:

Stored size: 877 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 %>
    </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

6 entries across 6 versions & 1 rubygems

Version Path
sunrise-core-0.1.5 app/views/manage/structures/_form.html.erb
sunrise-core-0.1.4 app/views/manage/structures/_form.html.erb
sunrise-core-0.1.3 app/views/manage/structures/_form.html.erb
sunrise-core-0.1.2 app/views/manage/structures/_form.html.erb
sunrise-core-0.1.1 app/views/manage/structures/_form.html.erb
sunrise-core-0.1.0 app/views/manage/structures/_form.html.erb