<% form_for(@user, :url => {:action => :update_role, :id => @user.id}) do |f| %>
  <%= f.error_messages %>

  <table border="0">
    <tr>
      <td>Benutzerrolle</td>
      <td><%= f.select :team_id, Team.find(:all, :order => 'id').collect {|p| [p.name, p.id]} %> </td>
    </tr>
    <tr>
      <td>Benutzerverwaltungsrechte</td>
      <td><%= admin_select(f) %> </td>
    </tr>
  </table>
  <p>
    <button type="submit">
      <%= image_tag('16-em-check.png',{:border => 0}) %>
    </button>
    <button type="button" onclick="<%= remote_function :update => "role-view"+@user.id.to_s,
                                                    :url => { :action => "hide_role_fields", :id => @user.id } %>">
      <%= image_tag('16-em-cross.png',{:border => 0}) %>
    </button>
    
  </p>
<% end %>