Sha256: dbe7467f4614e1eee2310fd9b6a244fc3231c0e7c1175eaadd57cd1d322b240c

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

<%= render :partial => 'left' %>
<% content_for :head do -%>
  <%= stylesheet_link_tag '/grandstand/stylesheets/wysiwyg.css' %>
<% end -%>
<% wrap_grandstand_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

2 entries across 2 versions & 1 rubygems

Version Path
grandstand-0.2.7 app/views/grandstand/pages/_form.html.erb
grandstand-0.2.6 app/views/grandstand/pages/_form.html.erb