<% if @user.avatar? %> <%= image_tag(@user.avatar.thumb.url) %> <% else %> <%= image_tag "person.png" %> <% end %> <%#= file_field_tag 'file' %> <%#= hidden_field_tag :avatar_cache %> <%= t('admin.choose_file') %> <%= f.text_field :email, :onfocus => "this.value='';", :onblur => "if(this.value==''){this.value=#{t('admin.email')};}", :value => t('admin.email'), :class => 'user_mail' %> <%= f.select :active_role, @user_role_models.sort_by{|role| role.key }.collect {|role| [ role.i18n_variable[I18n.locale], role.key ]}, :selected => (@user.active_role || 'student') %>
<% @user_info_models.each do |ua| %>

<%= ua.i18n_variable[I18n.locale] %>


<%= render :partial => 'user_attribute', :object => (@user.user_infos.detect {|u| u.key == ua.key } || @user.user_infos.build), :locals => {:ua => ua, :type => 'info'} %>
<% end -%>
<% @user_role_models.each do |ua| %> <% end -%>
<% content_for :page_specific_javascript do %> <% end -%>