<%= form_for(@post) do |f| %>
  <% if @post.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:</h2>

      <ul>
      <% @post.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :topic %><br />
    <%= f.text_field :topic %>
  </div>
  <div class="field">
    <%= f.label :user %><br />
    <%= f.text_field :user %>
  </div>
  <div class="field">
    <%= f.label :content %><br />
    <%= f.text_area :content %>
  </div>
  <div class="field">
    <%= f.label :displayorder %><br />
    <%= f.text_field :displayorder %>
  </div>
  <div class="field">
    <%= f.label :readperm %><br />
    <%= f.text_field :readperm %>
  </div>
  <div class="field">
    <%= f.label :private %><br />
    <%= f.check_box :private %>
  </div>
  <div class="field">
    <%= f.label :anonymous %><br />
    <%= f.check_box :anonymous %>
  </div>
  <div class="field">
    <%= f.label :ubb %><br />
    <%= f.check_box :ubb %>
  </div>
  <div class="field">
    <%= f.label :html %><br />
    <%= f.check_box :html %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
