<h1>New <%= @page.class.model_name.human %> Portlet</h1>

<%= cms_new_button_dropdown(CMS::Portlet) %>

<% if @page.is_a?(LatestForumPostsPortlet)  %>
  <audio autoplay="autoplay">
    <source src="/audio/provider/tada.mp3" type="audio/mp3" />
  </audio>
<% end %>

<%= cms_form_for(@page) do |f| %>
  <%= render 'form', :f => f %>

  <%= f.input :draft, :as => :codemirror, :value => f.object.draft %>
  <%= f.buttons :commit %>
<% end %>
