Description:
resets contest start time when changing users' contest
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r289:bafc73878f35 - - 2 files changed: 9 inserted, 3 deleted

@@ -208,6 +208,9
208 else
208 else
209 user.contests = [contest]
209 user.contests = [contest]
210 end
210 end
211 +
212 + user.contest_stat.destroy if params[:reset_timer]
213 +
211 note << user.login
214 note << user.login
212 end
215 end
213 end
216 end
@@ -3,14 +3,17
3 - form_tag :action => 'manage_contest' do
3 - form_tag :action => 'manage_contest' do
4 List users' login below; one per line.
4 List users' login below; one per line.
5 %br/
5 %br/
6 - = text_area_tag 'login_list', nil, :rows => 25, :cols => 80
6 + = text_area_tag 'login_list', nil, :rows => 23, :cols => 80
7 %br/
7 %br/
8 You want to
8 You want to
9 = select(nil,"operation",[['assign users to','assign'],['add users to','add'],['remove users from','remove']])
9 = select(nil,"operation",[['assign users to','assign'],['add users to','add'],['remove users from','remove']])
10 contest
10 contest
11 = select("contest","id",Contest.all.collect {|c| [c.title, c.id]})
11 = select("contest","id",Contest.all.collect {|c| [c.title, c.id]})
12 - &nbsp;&nbsp;&nbsp;&nbsp;
12 + = check_box_tag 'reset_timer'
13 - = submit_tag "Perform action", :confirm => 'Are you sure?'
13 + Auto-reset current contest timer.
14 + %br/
15 +
16 + = submit_tag "Perform action!", :confirm => 'Are you sure?'
14
17
15 %hr/
18 %hr/
16 = link_to '[go back to index]', :action => 'index'
19 = link_to '[go back to index]', :action => 'index'
You need to be logged in to leave comments. Login now