jaidTw / Opinionate

A voting site project for database course
0 stars 0 forks source link

Things to do about end time #11

Closed jaidTw closed 8 years ago

jaidTw commented 8 years ago
  1. In showTopic.balde.php, if end time is passed, it should show "Ended" instead of the actually time, and should forbid the edit operations, i.e. If end time is passed, front-end has to hide all edit buttons, and back-end should added end time checking part for edit operations.
  2. Also, currently there is no control for the VISIBLE_AFTER_ENDED option, needed to perform time checking in both back-end and front-end.
  3. For INVISIBLE, check is only performed in back-end now, and it will cause an error TypeError: data.all_ballots is undefined in the front-end, although the ballots is not showing indeed. This can be fix with 2 together.