diff --git a/app/views/user_admin/contests.html.erb b/app/views/user_admin/contests.html.erb --- a/app/views/user_admin/contests.html.erb +++ b/app/views/user_admin/contests.html.erb @@ -14,6 +14,13 @@ <% end %> <%= link_to "[no contest]", :action => 'contests', :id => 'none' %> <% end %> +
+ <% form_tag :action => 'assign_from_list' do %> + <%= hidden_field_tag 'users_contest_id', (@contest ? @contest.id : 'none') %> + Assign all to + <%= select("new_contest","id",Contest.all.collect {|c| [c.title, c.id]}) %> + <%= submit_tag "Assign", :confirm => 'Are you sure?' %> + <% end %> @@ -57,9 +64,3 @@ <% end %>
- - -
- -<%= link_to 'New user', :action => 'new' %> -<%= link_to 'New list of users', :action => 'new_list' %>