Editing team: <%= h @team.name %>

<%= form_for @team, :html => {:multipart => true} do |f| %> <%= f.error_messages %>

<%= f.label :name %>
<%= f.text_field :name %>

<%= f.label :irc %>
<%= f.text_field :irc %>

<%= f.label :web %>
<%= f.text_field :web %>

<%= f.label :tag %>
<%= f.text_field :tag %>

<%= f.label :country %>
<%= country_code_select :team, :country %>

<%= f.label :comment %>
<%= f.text_field :comment %>

<%= f.label :recruiting %>
<%= f.text_field :recruiting %>
Leave empty if you are not recruiting, otherwise write the recruiting criteria above.

<%= f.label :logo %>
<%= f.file_field :logo %>

<%= f.submit "Update" %>

<% end %>
<%= form_for @team do |f| %> <% @team.teamers.present.each do |member| %> <% end %>
Name Comment Rank Actions
id="teamsPrimary"<% end %>> <%= link_to (h member.user.username), member.user %> <%= text_field_tag "comment[#{member.id}]", (h member.comment) %> <%= select_tag "rank[#{member.id}]", options_for_select(member.ranks.invert, member.rank) %> <%= link_to 'Remove', member, :confirm => 'Are you sure?', :method => :delete%>

<%= f.submit "Update" %>

<% end %>

<%= form_for @team.contesters.build do |f| %> <%= f.hidden_field :team_id %> <%= f.collection_select :contest_id, Contest.active, :id, :name %> <%= f.submit "Join" %> <% end %>

<%= link_to 'Show', @team %> | <%= link_to 'Back', teams_path %>