Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: Vote Pelo Clima #294

Merged
merged 432 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
432 commits
Select commit Hold shift + click to select a range
e7d6823
feat(vote): refactor views to create candidature process
igr-santos Aug 14, 2024
488dbbe
fix(vote): create candidature when logged with incompleted forms
igr-santos Aug 14, 2024
891e1fb
feat(votepeloclima): Created candidatures search filters view
sergiomario Aug 14, 2024
ef68abf
Merge pull request #242 from nossas/feature/public-profile-candidate
igr-santos Aug 14, 2024
a1b2275
Merge pull request #245 from nossas/hotfix/inline-array-field-add
igr-santos Aug 14, 2024
79ca620
Merge branch 'release/votepeloclima' into feature/edit-candidature
igr-santos Aug 14, 2024
09f9b59
fix(votepeloclima): refactor candidate profile for propose_form and a…
miguelzinh3 Aug 14, 2024
9fd7253
feat(votepeloclima): Implemented keyword and is_colletive_mandate fil…
sergiomario Aug 15, 2024
b9d42e8
fix(votepeloclima): add responsible grid cols in candidate_profile
miguelzinh3 Aug 15, 2024
a283c46
feat(vote): add api method to create/update candidature before valida…
igr-santos Aug 16, 2024
c961cc6
feat(vote): enable edit candidature infos form
igr-santos Aug 16, 2024
831e4fb
fix(votepeloclima): add migrations for proposes
miguelzinh3 Aug 16, 2024
5292379
fix(votepeloclima): refactor propose form view
miguelzinh3 Aug 16, 2024
d047e8a
fix(vote): change mutable instance flow in save methods
igr-santos Aug 16, 2024
ddbf96b
fix(votepeloclima): refactor icons css
miguelzinh3 Aug 16, 2024
2b36fbd
Merge pull request #248 from nossas/fix/mobile-public-profile
miguelzinh3 Aug 16, 2024
36c60c5
Merge branch 'release/votepeloclima' into feature/edit-candidature
igr-santos Aug 16, 2024
2830ee4
fix(vote): disable edit to informacoes pessoais and informacoes de ca…
igr-santos Aug 16, 2024
ecd55d4
fix(vote): resolve revalidation steps by instance properties
igr-santos Aug 16, 2024
ec29bca
fix(vote): add 404 to users is staff required create candidature
igr-santos Aug 16, 2024
66f7601
feat(vote): add 2 new fields to deput mayor
igr-santos Aug 16, 2024
9027668
chore(vote): fix tests
igr-santos Aug 16, 2024
c152772
Merge pull request #249 from nossas/feature/edit-candidature
igr-santos Aug 16, 2024
ed7b76a
feat(votepeloclima): Implemented primary e secundary session filters
sergiomario Aug 16, 2024
8d44042
Merge branch 'release/votepeloclima' into feature/candidate-search
sergiomario Aug 16, 2024
456ced7
fix(vote): add fields deput_mayor on JSONForm config and rehydrate fo…
igr-santos Aug 19, 2024
7434677
fix(vote): navigate links in navbar
igr-santos Aug 19, 2024
59baacf
fix(vote): translate all urls
igr-santos Aug 19, 2024
84086ca
fix(vote): add choices to candidature fields model
igr-santos Aug 19, 2024
5df4d10
Merge pull request #250 from nossas/hotfix/register-complete-workflow
igr-santos Aug 19, 2024
ba2c4e3
fix(vote): add settings DEFAULT_FROM_EMAIL
igr-santos Aug 19, 2024
9d41a90
Merge pull request #251 from nossas/hotfix/register-complete-workflow
igr-santos Aug 19, 2024
76b613f
Merge branch 'release/votepeloclima' into feature/candidate-search
sergiomario Aug 19, 2024
0d0af76
fix(votepeloclima): fixed render city eand state names on template
sergiomario Aug 19, 2024
ee5bcd3
feat(vote): prepare api validate route to invalid and valid submitteds
igr-santos Aug 19, 2024
8227ac8
fix(ds): add defaults colors env when not theme setup
igr-santos Aug 19, 2024
c27ccad
feat(votepeloclima): add candidature card in search
miguelzinh3 Aug 20, 2024
527e3b5
feat(vote): add custom styles scss
igr-santos Aug 20, 2024
3dbfb0f
feat(vote): add styles to captcha and navbar
igr-santos Aug 20, 2024
f8acec4
feat(votepeloclima): Update secundary forms
sergiomario Aug 20, 2024
c416975
fix(votepeloclima): convert gets display to properties
sergiomario Aug 20, 2024
5312a2c
Merge pull request #252 from nossas/hotfix/fix-get-city-state-names
sergiomario Aug 20, 2024
8ed3ce8
Merge branch 'release/votepeloclima' into feature/candidate-search
sergiomario Aug 20, 2024
6398924
Merge branch 'feature/candidate-search' into feature/candidate-card-s…
sergiomario Aug 20, 2024
d3dd38e
feat(votepeloclima): Adjusted card candidate template
sergiomario Aug 20, 2024
a648d14
feat(votepeloclima): convert template filtor to django form
sergiomario Aug 20, 2024
f3988c7
feat(votepeloclima): add proposesmixin view and add card styles
miguelzinh3 Aug 20, 2024
b86c43a
feat(votepeloclima): reorg forms search view
sergiomario Aug 20, 2024
c66c3fd
Merge branch 'feature/candidate-search' into feature/candidate-card-s…
miguelzinh3 Aug 20, 2024
7fbb316
Merge pull request #253 from nossas/feature/candidate-card-search
miguelzinh3 Aug 20, 2024
d8fdfd2
feat(vote): add custom styles to icon and screenside
igr-santos Aug 20, 2024
18e61b3
feat(vote): add compromissos and styled
igr-santos Aug 20, 2024
144f41b
feat(vote): update copy and styles to steps candidature forms
igr-santos Aug 20, 2024
75029bc
feat(vote): update proposes
igr-santos Aug 20, 2024
14ac0ac
feat(vote): trigger mails to steps register
igr-santos Aug 21, 2024
a1e1941
fix(vote): remove unused code and update reset password mails
igr-santos Aug 21, 2024
b356fd0
fix(vote): update style to oauth templates
igr-santos Aug 21, 2024
c2adb13
feat(vote): add status and update styles dashboard
igr-santos Aug 21, 2024
c94f798
Merge pull request #254 from nossas/feature/design-votepeloclima
igr-santos Aug 21, 2024
ef25da6
fix(votepeloclima): add aviso de privacidade pdf to forms
miguelzinh3 Aug 21, 2024
e172ff5
fix(vote): force render html template when send mail
igr-santos Aug 21, 2024
8bc1e6c
feat(votepeloclima): created multiple select widget
sergiomario Aug 21, 2024
0eb9768
fix(vote): add new logo
miguelzinh3 Aug 21, 2024
cf90a13
fix)vote): add new bg for steps wizard_base
miguelzinh3 Aug 21, 2024
48880e9
fix(vote): update copy to emails
igr-santos Aug 21, 2024
bf42f52
fix(vote): change titles and texts from proposes in forms
miguelzinh3 Aug 21, 2024
151fbe8
Merge pull request #255 from nossas/fix/add-privacy-alert-pdf
igr-santos Aug 21, 2024
247e019
Merge pull request #256 from nossas/fix/add-logo-votepeloclima
igr-santos Aug 21, 2024
75233e1
Merge pull request #257 from nossas/fix/background-steps-cadastro
igr-santos Aug 21, 2024
4b3f49c
Merge pull request #258 from nossas/hotfix/votepeloclima-emails
igr-santos Aug 21, 2024
e656c6d
Merge pull request #259 from nossas/fix/proposes-titles-and-text
igr-santos Aug 21, 2024
7605d30
hotfix(vote): add max_length to propose and minibio fields
miguelzinh3 Aug 21, 2024
051765c
Merge pull request #260 from nossas/hotfix/add-max-length-fields
igr-santos Aug 21, 2024
2a17389
fix(vote): Update forms.py to add captcha
igr-santos Aug 21, 2024
b2848e9
fix(votepeloclima): update submitted page texts and fixed general app…
sergiomario Aug 21, 2024
cef58ad
Merge pull request #261 from nossas/hotfix/texts-and-appointment-adju…
igr-santos Aug 22, 2024
f1ff709
fix(oauth): force reset password email html
igr-santos Aug 22, 2024
6154d9d
feat(app): add generic middleware to redirect domains
igr-santos Aug 22, 2024
a23a228
fix(vote): styles change password
igr-santos Aug 22, 2024
a4fcc08
fix(vote): media url on production
igr-santos Aug 22, 2024
b14937d
hotfix(vote): add div to screenside background in cadastro
miguelzinh3 Aug 22, 2024
e94dc7d
fix(vote): config media storage on production
igr-santos Aug 22, 2024
8e1f3bc
fix(vote): add staticfiles to upload s3
igr-santos Aug 22, 2024
c78d654
fix(vote): add admins settings
igr-santos Aug 22, 2024
210a836
fix(vote): add default errors templates 500 and 404
igr-santos Aug 22, 2024
3a7b765
feat(votepeloclima): implemented page not found template
sergiomario Aug 22, 2024
9afb06d
fix(vote): add django view to render home page
igr-santos Aug 22, 2024
c57b90e
Update base.py
igr-santos Aug 22, 2024
830f467
Merge pull request #263 from nossas/feature/page-not-found
igr-santos Aug 22, 2024
480b900
Merge branch 'release/votepeloclima' into hotfix/django-filer-s3-upload
igr-santos Aug 22, 2024
ad70bc9
hotfix(votepeloclima): add new styles, icons for carousel and change …
miguelzinh3 Aug 22, 2024
7b2648e
fix(vote): update reasons messages status and copys dashboard
igr-santos Aug 22, 2024
2bca0a1
Merge pull request #264 from nossas/hotfix/add-appointments-profile
igr-santos Aug 22, 2024
5c0fa99
Merge branch 'release/votepeloclima' into hotfix/django-filer-s3-upload
igr-santos Aug 22, 2024
4c252fa
fix(vote): remove slash prepend js copy to clipboard
igr-santos Aug 23, 2024
d6e303b
fix(vote): setup staticfiles s3 only debug is True
igr-santos Aug 23, 2024
b86c03f
fix(vote): minimal responsive styles
igr-santos Aug 23, 2024
e4d2bd9
fix(vote): check values is empty to render in candidature profile
igr-santos Aug 23, 2024
35c419f
fix(eleicaodoano): Removed git conflict text from a file
sergiomario Aug 26, 2024
43686b3
Merge pull request #266 from nossas/hotfix/django-filer-s3-upload
igr-santos Aug 26, 2024
c0abfac
feat(votepeloclima): adjusts on ballot name and number id at register…
sergiomario Aug 26, 2024
09ae8bf
feat(votepeloclima): included others informations session on dashboard
sergiomario Aug 26, 2024
e7337a8
hotfix(vote): remove gaps on candidate_profile
miguelzinh3 Aug 23, 2024
5809264
hotfix(vote): change align items to center on form_actions in captcha…
miguelzinh3 Aug 23, 2024
d81e244
fix(votepeloclima): add new font sizes and colors
miguelzinh3 Aug 26, 2024
b028c49
hotfix(votepeloclima): refactor carousel from candidature profile
miguelzinh3 Aug 26, 2024
62f6516
hotfix(votepeloclima): add footer styles
miguelzinh3 Aug 27, 2024
68547fe
hotfix(votepeloclima): refactor icons colors to %23C15303
miguelzinh3 Aug 27, 2024
115ff8c
hotfix(votepeloclima): add font size to badges
miguelzinh3 Aug 27, 2024
1400eb2
fix(vote): organize filters and views to use on Candidature Search
igr-santos Aug 27, 2024
fbb078c
hotfix(votepeloclima): add padding and new icons to social media temp…
miguelzinh3 Aug 27, 2024
7a5fec5
Merge pull request #265 from nossas/hotfix/removed-git-conflict-eleic…
igr-santos Aug 27, 2024
aa2c295
Merge pull request #267 from nossas/feature/adjusts-ballot-name-and-n…
igr-santos Aug 27, 2024
85194a1
hotfix(votepeloclima): change styles from candidate_profile after review
miguelzinh3 Aug 27, 2024
6aa1aee
feat(votepeloclima): Change labels to pt-br
sergiomario Aug 28, 2024
6077d35
feat(votepeloclima): update proposes fields to 600 caracteres limit
sergiomario Aug 28, 2024
bbee841
feat(votepeloclima): refactor admin to edit JSON fields individually …
sergiomario Aug 28, 2024
b06d360
feat(vote): filters works to list candidatures
igr-santos Aug 28, 2024
4f2c246
fix(vote): adjusts styles
igr-santos Aug 28, 2024
0818e40
feat(vote): add custom styles to filters sidebar
igr-santos Aug 28, 2024
1cdd7ef
Merge pull request #268 from nossas/hotfix/mobile-style-changes
igr-santos Aug 28, 2024
bbdad97
Merge pull request #270 from nossas/feature/update-register-proposes-…
igr-santos Aug 28, 2024
2a4b77f
Merge branch 'release/votepeloclima' into feature/candidate-search
igr-santos Aug 28, 2024
b6a8108
feat(votepeloclima): changed admin candidature flow to use entagled form
sergiomario Aug 28, 2024
109fb96
Merge pull request #271 from nossas/feature/improvements-django-admin
igr-santos Aug 28, 2024
dc5401d
feat(vote): form submit on select tags candidature search
igr-santos Aug 28, 2024
5449e76
feat(vote): add empty box to search is empty
igr-santos Aug 28, 2024
4324525
hotfix(votepeloclima): add new copys to candidate profile
miguelzinh3 Aug 28, 2024
2cd2f7a
feat(vote): hide filters input mobile
igr-santos Aug 28, 2024
70f5173
Merge pull request #272 from nossas/hotfix/candidate-profile-copys
miguelzinh3 Aug 28, 2024
e7c5e74
feat(vote): show/hide sidebar on mobile version
igr-santos Aug 28, 2024
f18ca12
fix(vote): reload city when state is selected
igr-santos Aug 29, 2024
f308f65
fix(vote): reorganize files in app candidature
igr-santos Aug 29, 2024
18b296b
Merge branch 'release/votepeloclima' into feature/candidate-search
igr-santos Aug 29, 2024
3ffa27b
Merge pull request #247 from nossas/feature/candidate-search
igr-santos Aug 29, 2024
054b251
fix(vote): add SERVER_EMAIL default to catch errors when debug is False
igr-santos Aug 29, 2024
dfb83ee
hotfix(votepeloclima): change max_length of ocupation in candidature …
miguelzinh3 Aug 29, 2024
058b29c
Merge pull request #273 from nossas/hotfix/max-length-ocupation
igr-santos Aug 29, 2024
e1ea25a
fix(vote): fixed version to django-filer
igr-santos Aug 29, 2024
be4c544
fix(vote): remove static home
igr-santos Aug 29, 2024
b06e1fe
hotfix(votepeloclima): refactor styles from signup candidate flow
miguelzinh3 Aug 29, 2024
b0bc00a
fix(votepeloclima): preserve commas in milestones without splitting e…
sergiomario Aug 30, 2024
51a4bb2
fix(votepeloclima): removed unnecessary space
sergiomario Aug 30, 2024
12fadbe
hotfix(votepeloclima): add migration from ocupation max_length
miguelzinh3 Aug 30, 2024
353097c
Merge pull request #276 from nossas/hotfix/migration-ocupation
igr-santos Aug 30, 2024
277b360
Merge pull request #275 from nossas/hotfix/bad-behavior-inline-widget
igr-santos Aug 30, 2024
b2ea7ae
fix(vote): remove permissions to edit candidatures and flows
igr-santos Aug 30, 2024
c3436e8
fix(vote): add template to 500 errors
igr-santos Aug 30, 2024
ad85117
fix(vote): increment buffer-size to wsgi
igr-santos Aug 30, 2024
5ff4719
feat(vote): add ImageField with validation size and type
igr-santos Aug 30, 2024
d035a17
faet(vote): add pagination to Candidature Search
igr-santos Aug 30, 2024
54e028e
fix(vote): decrease font size on state city Card Candidature
igr-santos Aug 30, 2024
e0312bd
Merge pull request #274 from nossas/hotfix/cadastro-styles-mobile
igr-santos Aug 30, 2024
8398843
fix(votepeloclima): changed inline field delimiter
sergiomario Aug 30, 2024
453cedb
Merge pull request #279 from nossas/hotfix/changed-delimiter-inline-f…
igr-santos Aug 30, 2024
ef68013
Merge pull request #278 from nossas/feature/add-pagination
igr-santos Aug 30, 2024
0eee435
feature(votepeloclima): add partners app to footer in base.html
miguelzinh3 Aug 30, 2024
289d653
feat(votepeloclima): Added thumbnail on card profile template
sergiomario Sep 2, 2024
fa2c2f8
hotfix(votepeloclima): change styles from partners-list template tag
miguelzinh3 Sep 2, 2024
ed83c88
feat(votepeloclima): set thumbnail default storage
sergiomario Sep 2, 2024
67f479c
feat(vote): adjusted thumbnail crop and size args
sergiomario Sep 2, 2024
2522c0c
feat(vote): removed thumbnail config duplicated
sergiomario Sep 2, 2024
c3836e6
hotfix(votepeloclima): change styles from 404 page
miguelzinh3 Sep 2, 2024
89eac98
fix(vote): change styles to list of candidatures
igr-santos Sep 2, 2024
148daf8
Merge pull request #280 from nossas/feature/footer-partners-app
igr-santos Sep 2, 2024
8a775d4
Merge pull request #281 from nossas/feature/profile-thumbnail-search-…
igr-santos Sep 2, 2024
db53924
Merge pull request #282 from nossas/hotfix/page-not-found-vote
igr-santos Sep 2, 2024
f4e17f0
Merge pull request #283 from nossas/hotfix/candidature-list-styles
igr-santos Sep 2, 2024
42521c9
fix(vote): adjust size card body on candidature list
igr-santos Sep 2, 2024
171d7b7
fix(vote): add sortable to partners app
igr-santos Sep 2, 2024
0f5c59b
fix(vote): add updated and created fields and ordering suffle queryse…
igr-santos Sep 2, 2024
ff9dc08
fix(vote): change queryset to detail public candidatures
igr-santos Sep 3, 2024
024962c
fix(vote): Fixed parameters on pagination actions
sergiomario Sep 3, 2024
287b12b
Merge pull request #284 from nossas/hotfix/fixed-url-parameters-pagin…
igr-santos Sep 3, 2024
de0f3f5
fix(vote): add nullable to created_at and updated_at fields
igr-santos Sep 3, 2024
8bd244c
Merge branch 'release/votepeloclima' into feature/dashboard-others-in…
sergiomario Sep 3, 2024
7003da9
feat(vote): converted dashboard share buttons to templatetags
sergiomario Sep 3, 2024
e664db9
feat(vote): removed unneceesary code
sergiomario Sep 3, 2024
cd1caf1
feat(vote): included candidature object on dashboard context
sergiomario Sep 3, 2024
fce6d25
Merge pull request #269 from nossas/feature/dashboard-others-informat…
sergiomario Sep 3, 2024
fb20573
hotfix(vote): add responsive styles for headings in candidate profile…
miguelzinh3 Sep 3, 2024
e346939
Merge pull request #285 from nossas/hotfix/candidate-profile-styles
igr-santos Sep 4, 2024
b67531a
fix(vote): resolve RelatedObjectDoesNotExist to users that not create…
igr-santos Sep 4, 2024
a9727b3
fix(vote): catch IntegrityError when user email exists
igr-santos Sep 4, 2024
7b0e1b9
Merge pull request #286 from nossas/hotfix/candidature-users
igr-santos Sep 5, 2024
ecdd5e9
hotfix(vote): change sexuality and race/color label
miguelzinh3 Sep 5, 2024
bbd996d
hotfix(vote): add new political party
miguelzinh3 Sep 5, 2024
8acfa53
hotfix(vote): add new link for clima de eleição logo
miguelzinh3 Sep 5, 2024
470034c
fix(vote): Adjusted pagination layout at profile search
sergiomario Sep 6, 2024
252f6a8
Merge pull request #288 from nossas/hotfix/set-limit-numbers-pagination
sergiomario Sep 6, 2024
88b5296
Merge pull request #287 from nossas/hotfix/candidate-form-changes
igr-santos Sep 6, 2024
b9727aa
feat(forms): add action to send mail
igr-santos Sep 9, 2024
bbf8a76
feat(bonde): add CKEditorText in integrate mail form
igr-santos Sep 10, 2024
1e3d34d
feat(bonde): add help_text in action form to explain add variable
igr-santos Sep 10, 2024
eaad25b
chore(bonde): Delete app/contrib/bonde/templates/forms/body.html
igr-santos Sep 10, 2024
3a8154f
fix(vote): add relative link to navigate contato and denunciar perfil
igr-santos Sep 10, 2024
775fee3
Merge pull request #289 from nossas/feature/form-actions
igr-santos Sep 11, 2024
07404e0
feat(vote): general adjusts on search view
sergiomario Sep 11, 2024
1268421
Merge pull request #291 from nossas/feature/search-refinement
igr-santos Sep 11, 2024
061e62d
hotfix(vote): add text-uppercase to btns at vpc
miguelzinh3 Sep 12, 2024
7dd72fa
hotfix(vote): add href to conheça btn
miguelzinh3 Sep 12, 2024
512c309
hotfix(vote): add link to texts in captcha
miguelzinh3 Sep 12, 2024
ac7b3b6
hotfix(vote): add condicional to partners list template
miguelzinh3 Sep 13, 2024
dd79233
hotfix(vote): add w-100 to conheça btn from candidate search
miguelzinh3 Sep 13, 2024
39261ea
fix(vote): use register forms to render fields on admin and add style…
igr-santos Sep 13, 2024
94cb528
fix(vote): render ArrayField in admin
igr-santos Sep 13, 2024
2de0b8e
feat(vote): enable edit ballot_name, number_id fields and change regi…
igr-santos Sep 13, 2024
5124520
feat(vote): disable edit register when not invalid
igr-santos Sep 13, 2024
2015641
feat(vote): change styles to render register in admin
igr-santos Sep 13, 2024
f4a054d
feat(vote): search refinement
sergiomario Sep 23, 2024
0874929
fix(vote): change variable name to use object in candidature template…
igr-santos Sep 23, 2024
27e4856
fix(form-builder): update version to fix submit error
igr-santos Sep 23, 2024
7df71ba
Merge pull request #296 from nossas/feature/register-admin
igr-santos Sep 23, 2024
139ec0f
Merge pull request #295 from nossas/hotfix/general-changes-vpc
igr-santos Sep 23, 2024
096a5ca
Merge branch 'release/votepeloclima-v2' into feature/search-refinement
igr-santos Sep 23, 2024
332db33
Merge pull request #297 from nossas/feature/search-refinement
igr-santos Sep 23, 2024
975f7ff
fix(vote): remove positional argument to instance in admin form Register
igr-santos Sep 23, 2024
22578ab
fix(vote): change message and styles to check form data on checkout step
igr-santos Sep 25, 2024
7fa52c2
Merge pull request #300 from nossas/hotfix/checkout-step
igr-santos Sep 25, 2024
fdfbb04
fix(vote): change default order on Candidature Form Admin List
igr-santos Sep 25, 2024
1e06e27
fix(vote): add load static to change password template
igr-santos Sep 25, 2024
427f015
hotfix(vote): refactor candidate profile styles
miguelzinh3 Sep 25, 2024
d846cc8
hotfix(vote): add first letter uppercase in infos on candidature prof…
miguelzinh3 Sep 25, 2024
aef79b2
fix(vote): add load static to password reset done template
igr-santos Sep 26, 2024
a9d4493
hotfix(vote): add grid to candidature dashboard and change title font…
miguelzinh3 Sep 30, 2024
400568d
feat(vote): Converted places logic to database query
sergiomario Sep 30, 2024
af8bf44
hotfix(vote): refactor card from candidature search
miguelzinh3 Sep 30, 2024
de1e5c3
feat(vote): display ufs on public pages
sergiomario Oct 1, 2024
f6493a5
Merge pull request #304 from nossas/hotfix/btn-conheca-search
miguelzinh3 Oct 1, 2024
dfc51f5
Merge pull request #302 from nossas/hotfix/candidature-area-mobile
miguelzinh3 Oct 1, 2024
457ba5a
Merge pull request #301 from nossas/hotfix/profile-refinements-vpc
miguelzinh3 Oct 1, 2024
3bddb87
hotfix(vote): remove gap from dashboard grid
miguelzinh3 Oct 2, 2024
2477c05
fix(vote): remove gay and lesbica sexuality to use homossexual
igr-santos Oct 2, 2024
c41a135
Merge pull request #307 from nossas/hotfix/update-sexuality-choices
igr-santos Oct 2, 2024
368a07f
Merge pull request #306 from nossas/hotfix/design-review-refinements-vpc
igr-santos Oct 2, 2024
e16b13f
Merge pull request #303 from nossas/feature/convert-csv-to-db
sergiomario Oct 2, 2024
601d4f2
feat(vote): Created election status and year fields
sergiomario Oct 7, 2024
ad0ec16
feat(vote): Created a election status model
sergiomario Oct 7, 2024
ecad1eb
feat(vote): Create constraint unique_cpf_per_year on model candidature
sergiomario Oct 8, 2024
e9d6675
feat(vote): Included filters on sidebar
sergiomario Oct 8, 2024
d390cc8
hotfix(vote): add candidate profile title page and change register do…
miguelzinh3 Oct 9, 2024
cc7d3fc
feat(vote): Created django command to update election status
sergiomario Oct 10, 2024
bcae407
feat(vote): Included year arg to django command
sergiomario Oct 10, 2024
087750e
hotfix(vote): remove vereador from forms
miguelzinh3 Oct 11, 2024
10cbf9b
feat(vote): add eleito/2o turno flag in candidature search card
miguelzinh3 Oct 11, 2024
b1d97e0
Merge pull request #311 from nossas/feature/add-flags-vpc
sergiomario Oct 11, 2024
557f0ea
feat(vote): adjusts on flags and admin candidature
sergiomario Oct 11, 2024
5a0b5d8
Merge pull request #308 from nossas/feature/second-round-filters
igr-santos Oct 11, 2024
a89fe11
Merge pull request #309 from nossas/hotfix/email-page-titles-refinement
igr-santos Oct 11, 2024
0abdb7c
Merge pull request #310 from nossas/hotfix/remove-vereador-vpc
igr-santos Oct 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(vote): enable edit candidature infos form
  • Loading branch information
igr-santos committed Aug 16, 2024
commit c961cc6a97ee70ec188925fab05886ffc7d468fb
11 changes: 11 additions & 0 deletions app/contrib/oauth/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from django.contrib import admin

from .models import Token


class TokenAdmin(admin.ModelAdmin):
list_display = ("user", "key")
fields = ("user", )


admin.site.register(Token, TokenAdmin)
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ <h1 class="text-dark">OLÁ, {{ request.user.first_name|upper }}!</h1>
<div class="d-flex flex-column" style="--bs-gap:10px;width:245px;">
<a class="btn btn-dark" href="#">Visualizar perfil</a>
<a class="btn btn-dark" href="#">Compartilhar seu perfil</a>
{% if flow.status == "draft" %}
{% if flow.status == "draft" or flow.status == "editing" %}
<a class="btn btn-dark" href="{% url 'register_step' step='checkout' %}">Editar informações</a>
{% else %}
<form method="post">
{% csrf_token %}
<input class="btn btn-dark w-100" type="submit" name="request_change" value="Editar informações" />
</form>
{% endif %}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import pytest

from django.test import override_settings
from django.urls import path, reverse

from model_bakery import baker


@pytest.fixture(autouse=True)
def setup_urls():
from django.contrib.sites.models import Site
from contrib.ds.models import Theme
from org_eleicoes.votepeloclima.urls import urlpatterns, include

site = Site.objects.get(id=1)
site.domain = "testserver"
site.save()

Theme.objects.create(site=site, scss_json={"colors": {}})

urlpatterns = [
path("oauth/", include(("contrib.oauth.urls", "oauth"))),
] + urlpatterns

with override_settings(
ROOT_URLCONF=type('DynamicUrlConf', (object,), {'urlpatterns': urlpatterns}),
DEBUG=True
):
yield


@pytest.mark.django_db
def test_redirect_dashboard_when_not_logged(client):
response = client.get(reverse("dashboard"))

assert response.status_code == 302
assert response.url.startswith(reverse("oauth:login") + "?next=")


@pytest.mark.django_db
def test_get_dashboard_when_logged(client):
from django.contrib.auth.models import User
from org_eleicoes.votepeloclima.candidature.choices import CandidatureFlowStatus
from org_eleicoes.votepeloclima.candidature.models import CandidatureFlow, Candidature

user = User.objects.create_user(username="test@localhost", password="test123")
candidature = baker.make(Candidature, flags=[], appointments=[])
flow = baker.make(CandidatureFlow, candidature=candidature, user=user, status=CandidatureFlowStatus.submitted)

assert flow.status == CandidatureFlowStatus.submitted

client.login(username="test@localhost", password="test123")
response = client.post(reverse("dashboard"), data={"request_change": True})

assert response.status_code == 302
assert CandidatureFlow.objects.first().status == CandidatureFlowStatus.editing



2 changes: 1 addition & 1 deletion app/org_eleicoes/votepeloclima/templates/oauth/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1 class="text-dark">LOGIN</h1>
<p>Acesse a área restrita das candidaturas para verificar, editar e compartilhar suas informações.</p>
<form method="post">
{% csrf_token %}

{{ form.errors }}
<div id="div_id_username" class="mb-3">
<label for="id_username" class="form-label requiredField">E-mail<span class="asteriskField">*</span></label>
<input type="email" name="username" autofocus="" autocapitalize="none" autocomplete="username" maxlength="150" class="textinput form-control" required="" id="id_username" placeholder="Insira seu e-mail" />
Expand Down
Loading