<%= error_messages_for :admin_user %>

<% form_for [:admin, @admin_user] do |f| %>
<p class="req"><span class="pnt">※</span>は必須入力です</p>
<table class="data" cellspacing="1">
  <tr>
    <th>名前 <span class="pnt">※</span></th>
    <td><%= f.text_field :name, :class => "data_m" %></td>
  </tr>
  <tr>
    <th>所属</th>
    <td><%= f.text_field :belongs_to, :class => "data_m" %></td>
  </tr>
  <tr>
    <th>ログインID <span class="pnt">※</span></th>
    <td>
      <%= f.text_field :login_id, :class => "data_m" %>
      <br />
      ※半角英数字・15文字以内
    </td>
  </tr>
  <tr>
    <th>パスワード <span class="pnt">※</span></th>
    <td>
      <%= f.password_field :password, :class => "data_m" %>
      <br />
      ※半角英数字15文字以内
    </td>
  </tr>
  <tr>
    <th>管理権限 <span class="pnt">※</span></th>
    <td>
      <%= auths = Authority.find(:all, :order => "position").map {|p| [p.name, p.id]}
        select :admin_user, :authority_id, auths, :include_blank=>true %>
    </td>
  </tr>
</table>

<div class="btn_box">
  <%= f.submit 'この内容で登録する', :class => "btn" %>
  <img class="btn_side" width="6" height="34" src="/images/btn_side.gif">
</div>

<% end %>
