<% content_for :subnavigation do %> <%= link_to 'metadata', '#', :id => 'button', :class => "unselected" %> <%= link_to 'Show', @node %> <%= link_to 'Preview', preview_page_path(@draft) %> <%= button_to 'Publish', publish_node_path(@node), method: :put, form: { data: { confirm: "Publish this draft?" } } %> <%= link_to 'Revisions', node_revisions_path(@node) %> <% end %>
<%= form_for(@node) do |f| %> <% if @node.errors.any? %>
<% end %>
Event
<%= event_information %>
Slug
<%= f.text_field( :staged_slug, :value => @node.staged_slug || @node.slug ) %>
parent
<%= text_field_tag :move_to_search_term, @node.parent.title rescue "" %>
<%= f.hidden_field( :staged_parent_id, :value => @node.staged_parent_id || @node.parent_id ) %>
<%= fields_for @draft do |d| %>
Tags - comma seperated
<%= text_field_tag :tag_list, @draft.tag_list %>
Publish at
<%= d.datetime_select :published_at, :value => @draft.published_at %>
Template
<%= d.select :template_name, custom_page_templates, {:prompt => 'Select Template'} %>
Author
<%= d.select :user_id, user_list %>
Images
    <% @draft.assets.images.each do |image| %>
  • <%= image_tag(image.upload.url(:thumb)) %>
  • <% end %>
    <% Asset.images.each do |image| %>
  • <%= image_tag(image.upload.url(:thumb)) %>
  • <% end %>
Title
<%= d.text_field :title %>
Abstract
<%= d.text_area :abstract %>
Body
<%= d.text_area :body, :class => 'with_editor' %>
<%= d.submit 'save' %>
<% end %> <% end %>