<%#= devise_error_messages! %>

<%=t(:sys_basic_form)%>

<%= f.label t("users.first_name"),{:class=>"control-label", :func=>"field_label"} %>
<% @site_valid_locales.each_with_index do |locale, i| %>
"> <%= f.fields_for :first_name_translations do |f| %> <%= f.text_field locale, :func=>'input_unit', :value => (@user.first_name_translations[locale] rescue nil) %> <% end %>
<% end %>
<%= f.label t("users.last_name"),{:class=>"control-label", :func=>"field_label"} %>
<% @site_valid_locales.each_with_index do |locale, i| %>
"> <%= f.fields_for :last_name_translations do |f| %> <%= f.text_field locale, :func=>'input_unit', :value => (@user.last_name_translations[locale] rescue nil) %> <% end %>
<% end %>
<%= f.label t("users.email"),:class=>"control-label" %>
<%= f.email_field :email %>
<%= f.label t("users.sid"),:class=>"control-label" %>
<%= f.text_field :sid %> ( <%= t("users.sid_note")%> )
<%= f.label t("users.office_tel"),:class=>"control-label" %>
<%= f.text_field :office_tel %> ( <%= t("users.office_tel_note")%> )
<%= f.label t("users.avatar"),:class=>"control-label" %>
<%= f.file_field :avatar %> <% if @user.avatar.file %> <%= f.check_box :remove_avatar %> <%= t('delete.file') %> <% end %>
<%= f.label t("users.sex"),:class=>"control-label" %>