<div id="person" class="clear">
  <% if @user.avatar? %>
    <%= image_tag(@user.avatar.thumb.url) %>
  <% else %>
    <%= image_tag "person.png" %>
  <% end %>
  <%= file_field_tag 'file' %>
  <%= hidden_field_tag :avatar_cache %>
  <label>
  <span><%= t(:email) %>：</span>
  <%= f.text_field :email, :onfocus => "this.value='';", :onblur => "if(this.value==''){this.value=#{t(:email)};}", :value => (@user.email.blank? ? t(:email) : @user.email), :class => 'user_mail' %>
  </label>
  <label>
    <%= f.check_box :admin %>
  <span><%= t(:admin) %>：</span>
  </label>
  <label>
  
  </label>
  <table>
    <tr>
    <%=render :partial=>"temp_profile",:collection=>Info.all%>
    <tr>
    <tr> <span><%= t(:role) %>：</span> </tr>
    <tr>
  <%= render :partial=>"temp_sub_role_from",:collection=>@user.sub_roles %>
</tr>
</table>
</div>


