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

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

  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :introduction %><br />
    <%= f.text_area :introduction %>
  </div>
  <div class="field">
    <%= f.label :notice %><br />
    <%= f.text_area :notice %>
  </div>
  <div class="field">
    <%= f.label :logo %><br />
    <%= f.text_field :logo %>
  </div>
  <div class="field">
    <%= f.label :banner %><br />
    <%= f.text_field :banner %>
  </div>
  <div class="field">
    <%= f.label :readperm %><br />
    <%= f.text_field :readperm %>
  </div>
  <div class="field">
    <%= f.label :topicperm %><br />
    <%= f.text_field :topicperm %>
  </div>
  <div class="field">
    <%= f.label :postperm %><br />
    <%= f.text_field :postperm %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
