% content_for :header do %> <%= javascript_include_tag 'lightwindow' %> <%= stylesheet_link_tag 'lightwindow' %> <% end -%>
<%= f.label :title %>
<%= f.text_field :title, :class => 'title' %>
<%= f.label :permalink, "URL" %>
<%= root_url %><%= f.text_field :permalink %>
URLs are most efficient if they closely reflect the title or main subject of this content. Changing the permalink will make search engines think it is a different page resulting in a loss of page rank, only change if very necessary. Leave blank to use the title.
<%= f.label :description, "Description for search engines" %>
<%= f.text_area :description, "rows" => 4 %>
<%= f.label :tag_list, "Keywords (comma seperated) - used by search engines" %>
<%= f.text_field :tag_list, :class => 'long' %>
<%= f.label :template %> <%= f.select :template, get_template_names.collect{|t| [ t.titleize, t ] } %>
<%= f.label :body %>
<%= f.text_area 'body', :class => 'editor' %>
<%= preview_link(@page) %> <%= f.submit 'Publish', :name => 'page[publish]' %> <%= f.submit 'Save as draft', :name => 'page[hide]' %> or <%= link_to 'Cancel', admin_articles_path %>
<% end %> <% content_for :sub_content do %> <%= asset_list(@page) %>