<%#= devise_error_messages! %>

<%=t(:sys_basic_form)%>

<%= f.label t("users.avatar"),:class=>"control-label muted" %>
<% if @user.avatar? %> <%= image_tag(@user.avatar.thumb.url) %> <% else %> <%= image_tag "person.png" %> <% end %>
<%= t(:select_image) %> <%= t(:change) %> <%= f.file_field :avatar %> <%= t(:cancel) %>
<%= f.label t("users.first_name"),{:class=>"control-label muted", :func=>"field_label"} %>
<% @site_valid_locales.each_with_index do |locale, i| %>
" id="first_name_<%= locale %>"> <%= f.fields_for :first_name_translations do |f| %> <%= f.text_field locale, :value => (@user.first_name_translations[locale] rescue nil), :placeholder=>"#{t("users.first_name")}" %> <% end %>
<% end %>
<% @site_valid_locales.each_with_index do |locale, i| %> " href="#first_name_<%= locale %>" data-toggle="tab"><%= I18nVariable.from_locale(locale) %> <% end %>
<%= f.label t("users.last_name"),{:class=>"control-label muted", :func=>"field_label"} %>
<% @site_valid_locales.each_with_index do |locale, i| %>
" id="last_name_<%= locale %>"> <%= f.fields_for :last_name_translations do |f| %> <%= f.text_field locale, :value => (@user.last_name_translations[locale] rescue nil), :placeholder=>"#{t("users.last_name")}" %> <% end %>
<% end %>
<% @site_valid_locales.each_with_index do |locale, i| %> " href="#last_name_<%= locale %>" data-toggle="tab"><%= I18nVariable.from_locale(locale) %> <% end %>
<%= f.label t("users.email"),:class=>"control-label muted" %>
<%= f.email_field :email %>
<%= f.label t("users.sid"),:class=>"control-label muted" %>
<%= f.text_field :sid %> <%= t("users.sid_note")%>
<%= f.label t("users.office_tel"),:class=>"control-label muted" %>
<%= f.text_field :office_tel %> <%= t("users.office_tel_note")%>
<%= f.label t("users.sex"),:class=>"control-label muted" %>