Commit Graph

457 Commits

Author SHA1 Message Date
Oliver Zander a8731a4195 use existing project model & added categories and wikimedia projects 2025-10-16 12:16:08 +02:00
Oliver Zander cf81a45231 fixed spacing & imports 2025-10-15 17:32:28 +02:00
Oliver Zander 7d1511bb93 added projektförderung to extern types test 2025-10-15 12:26:57 +02:00
Oliver Zander ec062df5f4 fixed and unified project funding & services 2025-10-15 12:24:14 +02:00
Oliver Zander c27e4c5183 cleaned up project forms 2025-10-15 12:20:11 +02:00
Oliver Zander d1cda4c1a9 simplified project request model 2025-10-15 12:19:25 +02:00
Oliver Zander dcd9a3d213 reordered migrations 2025-10-15 12:14:42 +02:00
Oliver Zander 4dbf3749d7 Merge branch 'feature/project-funding-under-1000' of gitlab.cosmocode.de:wikimedia/foerderbarometer into cosmocode 2025-10-15 11:26:46 +02:00
Oliver Zander 55cb4f2ad8 removed formtools 2025-10-14 17:00:46 +02:00
Oliver Zander 77d7ff2ce3 integrated negative test 2025-10-14 16:59:36 +02:00
Oliver Zander ce4aeb0721 fixed tests 2025-10-14 16:48:39 +02:00
Oliver Zander a7d3df7b39 simplified application views 2025-10-14 11:39:58 +02:00
Oliver Zander 84ef809705 do not show internal address default 2025-10-14 11:16:13 +02:00
Oliver Zander 01267e6939 simplified field ordering 2025-10-14 11:15:50 +02:00
Oliver Zander 29c4cdd8ac simplified migration name 2025-10-14 11:15:19 +02:00
Oliver Zander 38f6deee51 Merge branch 'feature/replace-radios-with-links' into 'cosmocode'
refactor(forms): Split Views and Template Restructure

See merge request wikimedia/foerderbarometer!5
2025-09-29 16:31:43 +02:00
Oliver Zander aa5c981872 Merge branch 'feature/terms-consent' into 'cosmocode'
Store user agreement to terms

See merge request wikimedia/foerderbarometer!4
2025-09-29 16:31:06 +02:00
Roman cda7d7a79d Switch to single quotes across models.py for consistent string formatting 2025-09-29 00:51:13 +02:00
Roman c9959988cb Fix: use Django URL tag for project funding link instead of hardcoded path 2025-09-29 00:40:20 +02:00
Roman 46240fedc1 Add public route, view, and navigation link for project funding requests under 1000 EUR 2025-09-29 00:33:42 +02:00
Roman 98f8414576 Add migrations for ProjectRequest and ProjectsDeclined models with updated options and field constraints 2025-09-29 00:32:09 +02:00
Roman cc55b17cff Add service layer for approving and declining ProjectRequest with transactional logic 2025-09-29 00:27:09 +02:00
Roman 14717c8318 Add admin integration for ProjectRequest with approve/decline actions and custom ApproveActionForm 2025-09-29 00:25:16 +02:00
Roman 4e6906e318 Add ProjectRequestForm and ProjectRequestAdminForm with JSON-backed multi-selects and help texts 2025-09-29 00:22:47 +02:00
Roman 011e262df6 Add ProjectRequest and ProjectsDeclined models for project funding under 1000 EUR 2025-09-29 00:18:40 +02:00
Roman a239922e14 use walrus operator for user session check 2025-09-01 13:33:17 +02:00
Roman 238c674517 change all string literals to single quotes 2025-09-01 13:24:59 +02:00
Roman 63b07bdf22 set default LANGUAGE_CODE to 'de' instead of 'en-us' 2025-09-01 12:47:24 +02:00
Roman 6585eeaf78 replace regex assertion and remove status code check in test_extern_lit 2025-09-01 12:04:52 +02:00
Roman ed2db04309 add negative test for Literature form submission without terms_accepted 2025-09-01 01:45:50 +02:00
Roman 8ba54bdca9 add CSS styles for form layout 2025-08-31 23:55:50 +02:00
Roman a2ec4071b4 restructure templates: introduce base with header/footer, replace old extern template, add generic form layout, and update info page 2025-08-31 23:47:27 +02:00
Roman 35ae9ab0e5 update URL routing to use new class-based application views and static extern page 2025-08-31 23:43:29 +02:00
Roman 7cfd477d40 refactor ExternView into separate class-based views with BaseApplicationView 2025-08-31 23:41:11 +02:00
Roman 98d1ae9284 refactor(forms): unify forms with BaseApplicationForm and CommonOrderMixin for consistent fields and order 2025-08-31 23:38:22 +02:00
Roman eea08e6075 Merge branch 'cosmocode' into feature/replace-radios-with-links 2025-08-27 17:53:54 +02:00
Andreas Gohr 0bb7f8680c Merge branch 'refactor/button-styles' into 'cosmocode'
moved inline styles to base.css and button.css and adjusted button styles

See merge request wikimedia/foerderbarometer!2
2025-08-27 12:18:58 +02:00
Roman Fen 1159cd3394 moved inline styles to base.css and button.css and adjusted button styles 2025-08-27 12:18:58 +02:00
Roman 8d57909a17 Add static info page for project funding ≥ 1,000 € 2025-08-27 11:58:40 +02:00
Roman 0d033e7e25 Refactor CheckForm to use model field 'terms_accepted' instead of separate 'check' field 2025-08-26 22:48:13 +02:00
Roman e10ec7e691 Add migration 0099: add terms_accepted field to BusinessCard, Email, List, and Literature 2025-08-26 15:39:43 +02:00
Roman c187bf2e9e Add custom save() in CheckForm to map 'check' field to model's 'terms_accepted' 2025-08-26 15:37:33 +02:00
Roman 9ef2af0a2f add terms_accepted to admin list display for BusinessCard, Literature, Email and List 2025-08-26 13:53:39 +02:00
Roman 7816ac4237 add terms_accepted field to Email, List, Literature and BusinessCard via mixin 2025-08-26 12:54:29 +02:00
Oliver Zander 94882d9039 fixed literature test 2025-08-21 10:47:17 +02:00
Oliver Zander 2973741696 added tests for internal views 2025-08-21 10:43:38 +02:00
Oliver Zander 860205cac9 skip finance id test 2025-08-21 10:11:59 +02:00
Oliver Zander 257b10310d readded test module file 2025-08-21 10:10:17 +02:00
Oliver Zander 656cfe8cc9 renamed model test file accordingly 2025-08-21 10:09:15 +02:00
Oliver Zander dff9ef858d added whitespace 2025-08-21 10:08:38 +02:00