<% if @content_block.errors.any? %>
This from could not be sumbmitted:
<% end %> <%= form_for [:manifest, @content_block] do |f| %>
<%= f.label :title %> <%= f.text_field :title %>
<%= f.label :page_id %> <%= f.select :page_id, Page.all.collect { |p| [p.title, p.id] }, :include_blank => true %>
<%= f.label :allow_html, 'Allow HTML' %> <%= f.check_box :allow_html %>
<%= f.label :content %> <% if @content_block.allow_html %> <%= f.text_area :content, :class => 'tinymce' %> <% else %> <%= f.text_area :content %> <% end %>
<%= f.submit %>
<% end %>