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

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

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

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