<%= error_messages_for 'cms_layout' %>

<div class="box tabular">

  <div class="splitcontent">
    <div class="splitcontentleft">
      <p><%= f.text_field :name, :size => 30, :required => true, :label => l(:label_cms_name)  %></p>
    </div>
    <div class="splitcontentright">
      <p><%= f.text_field :content_type, :label => l(:label_cms_content_type) %></p>
    </div>
  </div>



<p id="attachments_form"><label><%= l(:label_attachment_plural) %></label><%= render :partial => 'attachments/form', :locals => {:container => @cms_layout} %></p>

<%= text_area_tag 'cms_layout[content]', @cms_layout.content, :cols => 100, :rows =>  30, :class => 'wiki-edit' %>

<%= javascript_tag "editor = activateCodeMirror('cms_layout_content');" %>
<%= javascript_tag "$('.contextual.page-edit').draggable();" %>

</div>


<% content_for :header_tags do %>
  <%= code_mirror_tags %>
  <%= javascript_include_tag 'redmine_cms', :plugin => 'redmine_cms'  %>
<% end %>