Skip to content

Iteration 2

Siratee K edited this page Oct 3, 2021 · 5 revisions

Goal

To improve the UI and UX of the application including navigation, URL Button, and question list on the poll's index page to be compatible with the new question feature that allows the poll's creator to set the end_date to automatically stop accepting the new vote after the end_date has been exceeded.

Features

  1. Admin can now set end_date for the question
  2. The question after the end_date won't accept the new vote.
  3. The voting page will be restricted for the question that end_date has been exceeded. Any users who attempted to access the voting page will be redirected to the poll app's index page.
  4. Use Django Message Framework to handle the error message on every page.
  5. The Questions on the poll's index page will now have 2 buttons. One is for going to the poll result page and the other one is for going to the poll voting page. The voting button will automatically be hidden for the question that end_date has been exceeded.

Acceptance Criteria

  1. All Unit testing must be passed.
  2. The Poll's index page must display the question that is published correctly.
  3. The Poll's index page must display the vote button for each question related to the can_vote properly.
  4. The voting for the question that end_date has been exceeded must be restricted. Any attempt to access the voting page must be redirected to the poll's index page
Clone this wiki locally