Changeset 5698

Show
Ignore:
Timestamp:
08/17/12 10:35:09 (7 years ago)
Author:
gpress
Message:

addresses ticket 1097. vessel selection is now :
1-10: +1
10-100: +10

100: +100

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/trunk/seattlegeni/website/html/forms.py

    r5611 r5698  
    200200  if avail_vessel_credits == 0: 
    201201    step = [0] 
     202  elif avail_vessel_credits < 10: 
     203    step = range(1, avail_vessel_credits+1) 
    202204  elif avail_vessel_credits < 100: 
    203     step = range(1, avail_vessel_credits+1) 
     205    step = range(1, 10) 
     206    step.extend(range(10, avail_vessel_credits+1,10)) 
    204207  else: 
    205     step = range(1, 100) 
    206     step.extend(range(100, avail_vessel_credits+1, 10)) 
     208    step = range(1, 10) 
     209    step.extend(range(10, 101,10)) 
     210    step.extend(range(200, avail_vessel_credits+1, 100)) 
    207211     
    208212  if avail_vessel_credits not in step: