<% content_for :subnavigation do %> <%= link_to 'metadata', '#', :id => 'button', :class => "unselected" %> <%= link_to 'Show', @node %> <%= link_to 'Preview', preview_page_path(@draft) %> <%= link_to 'Publish', publish_node_path, :method => :put, :confirm => "Publish this draft?" %> <%= link_to 'Revisions', revision_path(params[:id]) %> <% end %>
<% form_for(@node) do |f| %> <%= f.error_messages %>
<% fields_for @draft do |d| %>
Event <%= event_information %>
Slug <%= f.text_field :slug %>
Tags - comma seperated <%= text_field_tag :tag_list, @draft.tag_list %>
Publish at <%= d.datetime_select :published_at %>
Template <%= d.select :template_name, custom_page_templates, {:prompt => 'Select Template'} %>
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 %>