Commit Graph

9 Commits

Author SHA1 Message Date
sosokker
1b996629da Refine UI/UX - Add new Feature (Model) - Refine View
1. Refine UI/UX
Apply Tailwinds
Rewrite all page

2. Add new feature to model
Add new field
- description - long - short
- use default + editable instead of auto_add_now
- track up vote
- Change timezone
- Add time left track
-Add participant
-Add up/down vote attribute

-- Choice
- Add total_vote
-Add calculate_percentage of vote

3. Refine View
-Redirect instead of home page
-Add context to result, detail view
-Apply ChartJS
-Delete home
2023-09-09 21:20:23 +07:00
sosokker
e0c7995f28 Add is_published, can_vote to QuestionModel/ Add test for can_vote, is_published
is_published -> Check if the specific question able to be published
can_vote -> Can vote or not, check it from pub time

Delete some unnecessary files
2023-09-05 21:25:04 +07:00
sosokker
9f3aba25cd Add docstring to classes and methods and clean the code. 2023-08-28 23:04:08 +07:00
sosokker
477903dfd3 Update Views of all pages - index, detail, result / Add Home Page
Update views of all pages and add HomeView (Homepage) + Update data of sqlite3 polls database
2023-08-28 22:32:42 +07:00
sosokker
68385de61f Add Testing on models, views, detailed/ Fix bugs
Fix time bugs of was_published_recently()  in models
2023-08-28 20:01:39 +07:00
sosokker
f7c2012118 Apply minimal form to detail page/ Use generic view on index-detail-result 2023-08-28 19:31:26 +07:00
sosokker
a62096f7e5 Create new views for polls/ Add detail views/ Use template 2023-08-28 19:24:49 +07:00
sosokker
53f858ecde Add first views to polls app 2023-08-26 16:39:10 +07:00
sosokker
be11909e59 Create the polls app. 2023-08-26 16:28:34 +07:00