Sha256: 4d7cb7442c884a7d6f11d966e31b0d1ed625de663ce04616d1a3835f0d0dd18d

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

<%= render :partial => 'left' %>
<% content_for :head do -%>
  <%= stylesheet_link_tag '/admin/stylesheets/wysiwyg.css' %>
<% end -%>
<% wrap_admin_form do -%>
  <div class="field">
    <%= form.label :parent_id %>
    <%#= form.collection_select :parent_id, Page.tree, :id, :tree_name %>
  </div>
  <div class="field">
    <%= form.label :name %>
    <%= form.text_field :name, :class => 'oversized text' %>
    <%= errors_on :page, :name %>
  </div>
  <div class="tabset">
    <ul class="tabs">
    <%= form.fields_for :page_sections do |page_section_form| %>
    <% page_section_id = page_section_form.object.id || page_section_form.object.object_id -%>
      <li>
        <a href="#page-section-<%= page_section_id %>"><%= page_section_form.object.section.try(:titleize) %></a>
        <%= page_section_form.hidden_field :section %>
      </li>
      <% content_for :page_sections do -%>

    <div class="page-section" id="page-section-<%= page_section_id %>">
      <%= page_section_form.text_area :content, :class => :wysiwyg %>
    </div>
    <% end -%>
    <% end =%>
    </ul>
    <%= yield :page_sections %>
  </div>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grandstand-0.2.4 app/views/admin/pages/_form.html.erb
grandstand-0.2.3 app/views/admin/pages/_form.html.erb
grandstand-0.2.2 app/views/admin/pages/_form.html.erb
grandstand-0.2.1 app/views/admin/pages/_form.html.erb