crazcarl / gridironguessinggame

0 stars 1 forks source link

Picks verification #17

Closed crazcarl closed 10 years ago

crazcarl commented 10 years ago

We should do some verification on the client side with javascript to make sure:

  1. All picks are filled out
  2. MNF is picked

Else, display a message before trying to submit them on the server side.

We can implement javascript with the /js/play.js file.

crazcarl commented 10 years ago

Did some work on this today. Right now I'm just throwing an alert if you have a bad pick. And then it will take you to the main page when you fail. I'm thinking we should either:

  1. Just pick the home team for them (and let them know we're doing so).
  2. Block them from submitting picks (and tell them so).

I'm a bit torn between the two, I would hate for someone to click submit picks, not pay attention to an error message (or have js turned off), and then not submit picks even though they thought they did. For that reason, I'm leaning towards 1.

crazcarl commented 10 years ago

Cleaned up the alert a little bit. Still not sure if we'll use it or not.

crazcarl commented 10 years ago

We now just pick the home team for them (using javascript) and let them know we're doing so.