<% if @user.avatar? %> <%= image_tag(@user.avatar.thumb.url) %> <% else %> <%= image_tag "person.png" %> <% end %> <%= file_field_tag 'file' %> <%= hidden_field_tag :avatar_cache %>
<% @infos.each do |ua| %>

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


<%= render :partial => 'attribute', :object => (@user.infos.detect {|u| u.key == ua.key } || @user.infos.build), :locals => {:ua => ua, :type => 'info'} %>
<% end -%>
<% @roles.each do |ua| %> <% end -%>
<% content_for :page_specific_javascript do %> <%= javascript_include_tag "user_form" %> <% end -%>