<h2><%=l(:label_cms_page_new)%></h2>

<%= labelled_form_for :page, @page, :url => { :action => 'create', :project_id => @project },
  :html => { :id => 'page-form', :multipart => true }  do |f| %>
<%= error_messages_for 'page' %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_create) %>
<% end %>

<% content_for :header do %>
  <div class="contextual page-edit" id="float_buttons" style="display:none;">
    <%= link_to l(:label_cms_apply), "#", :class => "icon icon-checked", :remote => true, :onclick => "editor.save(); $.ajax({url: '#{escape_javascript cms_pages_path}', type: \'post\', data: $(\'#page_form\').serialize()});return false;"%>
  </div>
<% end %>

<% html_title(l(:label_cms_page_new)) -%>