Commit Graph

139 Commits

Author SHA1 Message Date
Carl van Tonder
006262c7ea Lengthen "key actors" and "who..involved" fields 2018-05-24 20:52:43 -04:00
Carl van Tonder
f595532db5 Fix migrations 2018-05-24 18:24:55 -04:00
b375de115e Fix bad validation rules 2018-05-23 19:15:30 +02:00
Carl van Tonder
c0ff616761 Prevent crash saving case study with no draft 2018-05-19 14:32:57 -04:00
Carl van Tonder
39683a4ec0 Update test for text change 2018-05-19 14:21:58 -04:00
Carl van Tonder
a1821dba58 Fix migrations 2018-05-19 14:01:43 -04:00
Carl van Tonder
0160e58491 Add language switcher widget 2018-05-19 13:53:34 -04:00
Carl van Tonder
8d2532a1b2 Convert some CharFields to TextFields 2018-05-19 13:53:34 -04:00
03e5bfe01b Extend the length of some charfields, per Tom's email 2018-05-15 15:03:57 +01:00
Carl van Tonder
f4a74e6fd0 Fix map tests, add files tests 2018-05-01 13:16:09 -04:00
Carl van Tonder
d84aa0f3b9 Avoid crash when deleting drafts 2018-05-01 01:08:40 -04:00
Carl van Tonder
8ddc0894a1 Clean-up migration 2018-04-30 22:23:45 -04:00
Carl van Tonder
6dc0b51fc3 File permissions checks 2018-04-30 22:23:36 -04:00
Carl van Tonder
e43c32b843 Extra file upload fields, delete files w/ draft 2018-04-30 22:17:18 -04:00
f4c21006de Add AJAX file delete support and upload notifications, make UI nicer 2018-04-26 18:03:04 +10:00
Carl van Tonder
935af1355b Further work on multi-file-upload 2018-04-23 01:15:33 -04:00
Carl van Tonder
bb326bfed8 Initial file uploding w/ new "files" app 2018-04-19 15:57:18 -04:00
Carl van Tonder
7436fa7e2e Prevent duplicate form media loading..
..by setting BaseCaseStudyForm.helper.include_media = False
2018-04-19 15:14:54 -04:00
Carl van Tonder
f8695fae3c Make welcome text translatable 2018-04-19 13:01:16 -04:00
Carl van Tonder
816bc7f13d Add missing migration 2018-04-19 12:57:53 -04:00
0758b6e223 Oops, I removed a line I shouldn't have from 677f6a85a 2018-04-16 14:33:07 +10:00
677f6a85a9 Add coordinates autocomplete widget & data (#32)
Just tweaks based on what Carl had already written in dce53630 and b97d421a
2018-04-16 14:27:13 +10:00
a171fb6d14 Add hello overlay (closes #17) 2018-04-16 12:59:48 +10:00
15c3d3c4a2 Hide draft restore prompt on successful save (#52) 2018-04-16 11:02:10 +10:00
a41df71793 Delete draft when submitting case study (#52) 2018-04-16 11:02:10 +10:00
054668e1e8 Add i18n support to form saving code (#52) 2018-04-16 10:57:31 +10:00
4390edde03 Don't display draft restore prompt after a failed submit attempt (#52) 2018-04-16 10:48:36 +10:00
ee88a3160e Get location field integrating with form saving/loading (#52) 2018-04-16 10:23:06 +10:00
e067443756 Update to latest FormSaver, triggering change events when form fields are updated 2018-04-16 09:33:53 +10:00
c8d74a8351 Hide and show negative case reasons 'other' field appropriately, closes #44 2018-04-15 22:10:05 +10:00
087eb1b1c5 Require high zoom level to select project location, closes #56 2018-04-15 21:48:03 +10:00
e5235fb871 Move save button to bottom of screen pending better design (#52) 2018-04-14 21:57:12 +10:00
b424c06602 Add footer block to all pages by default 2018-04-14 21:46:01 +10:00
adbd550239 Add draft restore prompt (#52) 2018-04-14 21:41:01 +10:00
1dd2e4f316 Add the formsaver module tied into nice UI for data saving (#52) 2018-04-14 20:28:05 +10:00
08bb577e37 Add form drafts API (#52) 2018-04-14 13:09:56 +10:00
3d479471cc Make migrations for previous changes 2018-04-14 12:41:44 +10:00
Carl van Tonder
8f544992cd Make project_owners & shareholders required..
..and tweak "country" label text
2018-04-04 18:26:34 -04:00
Carl van Tonder
316f2cb78a Make power grid / energy storage Qs optional
approximate_total_investment & contractor_or_supplier_of_technology
should both be optional for non-"power grid / energy storage" types
2018-04-04 18:15:51 -04:00
Carl van Tonder
490e6706d9 Revert "Autocomplete from GIS list of CRSs.."
This reverts commit dce53630f7.
2018-04-04 18:02:33 -04:00
Carl van Tonder
dce53630f7 Autocomplete from GIS list of CRSs..
..using django-autocomplete-light, in both the admin area and the
end-user form

Closes #32
2018-04-04 15:28:08 -04:00
Carl van Tonder
a50c40e739 Configurable database email, local Mailgun sandbox 2018-04-04 13:36:27 -04:00
Carl van Tonder
f19f501684 Make sure showing/hiding works on page load
Fixes #53
2018-04-04 13:12:00 -04:00
Carl van Tonder
6add9a10aa Fix page title on case study form page 2018-04-04 13:07:09 -04:00
f4a7a108b5 Add a basic email on case study submission. Closes #50. 2018-04-02 23:02:49 +10:00
1847b22c09 f 2018-04-02 22:38:09 +10:00
dbdab0e440 Make type of ecosystem field long enough to hold all choices 2018-04-02 22:36:46 +10:00
50b5f67bab Add extra text in 3.1.1. Closes #29. 2018-04-02 19:59:37 +10:00
e4f4a5e73b Add non-indigenous people list, as per client request 2018-03-31 22:38:30 +11:00
9ab6366d37 Prettify map pin popups. Closes #18. 2018-03-31 22:12:06 +11:00
ee440617d9 Delete trailing spaces and rogue newlines 2018-03-31 21:05:09 +11:00
fafb475869 Fiddle with form layout a bit to add coherence 2018-03-31 21:00:43 +11:00
b2266600de Add banks list. Closes #23. 2018-03-31 21:00:43 +11:00
9438ca07cb Fix case study view after adding Vimeo support (5f2941d2) 2018-03-31 21:00:34 +11:00
a5011674f8 Fix type of ecosystem field after messing it up in 9d5daf4e. 2018-03-31 17:23:22 +11:00
5f2941d205 Allow Vimeo as well as YouTube URLs. Closes #26. 2018-03-31 17:18:35 +11:00
0f0f78bd24 Fix wording of 4.4. Closes #33 2018-03-31 16:33:35 +11:00
4147dc7d32 Add contact fields. Closes #30. 2018-03-31 16:29:25 +11:00
5bf1855974 Add migration script for previous two changes (clsoes #48) 2018-03-29 21:51:13 +11:00
83ae33ca9c Fix units on 2.2.2 (#48) 2018-03-29 21:51:06 +11:00
9d5daf4e13 Make changes Tom suggested via email 2018-03-29 21:51:06 +11:00
5339eef30d Provide a default for shown_on_other_platforms now it's now nullable 2018-03-28 22:34:36 +11:00
6e8b47d350 Add a submit button to express form (closes #39) 2018-03-28 22:34:27 +11:00
03cc89346f Redirect complete forms to acknowledgement of receipt (closes #40) 2018-03-28 22:34:18 +11:00
204f5dca71 Fix conditional validation from 946ec52119 2018-03-28 18:15:09 +11:00
8b0f2f9dee Complete showing all data on case study view, closes #7 2018-03-28 17:28:57 +11:00
b8eecb0660 Fix bugs in model 2018-03-28 17:26:40 +11:00
31cba9f4b9 Add logic+tests for handling display of type of renewable generation (#7) 2018-03-28 13:24:43 +11:00
946ec52119 Fix 1.2.1 to be a single choice instead of three (#43) 2018-03-28 13:21:18 +11:00
b7f2be8b3e Display most of §1 of the spec (#7) 2018-03-27 17:42:18 +11:00
cb21daca5b Allow more fields in the case study to be blank 2018-03-27 17:42:18 +11:00
Carl van Tonder
63a52a1f7f Replace django-moderation with CaseStudy.visible 2018-03-27 00:14:01 -04:00
Carl van Tonder
9a98520cca "Case studys" -> "Case studies" in admin 2018-03-26 22:51:55 -04:00
Carl van Tonder
4ffd93b43e Add comment to 2.3 question JS 2018-03-26 22:48:34 -04:00
a4281edc4a Switch NullBooleanFields to BooleanFields, add conditional display of last question 2018-03-26 13:42:14 +11:00
62907623a5 Add spec reference to conditionals in form JS 2018-03-26 12:11:51 +11:00
c8233ada97 Fix spec reference in model 2018-03-26 12:11:37 +11:00
Livvy Mackintosh
ad0685e38c Add missing images file to map static files 2017-11-18 19:00:43 +01:00
Livvy Mackintosh
63992802b9 Update new migrations and add bootstrap and leaflet-hash.js 2017-11-18 16:56:09 +00:00
Livvy Mackintosh
310be805c5 Update frontend and forms 2017-11-18 16:55:02 +00:00
Livvy Mackintosh
aa6c1cf33b Fix small bug in templates and tweak settings 2017-10-31 16:00:44 +01:00
Livvy Mackintosh
43d6ec989b Add updated front end, updated CaseStudy model and profiles app 2017-10-31 14:57:26 +00:00
Livvy Mackintosh
d538d366c9 Add new locale messages 2017-10-11 22:16:43 +01:00
Livvy Mackintosh
52090ec25a Fixup forms and templates for forms 2017-10-10 00:58:36 +01:00
Livvy Mackintosh
8c38748347 Update templates 2017-10-09 20:23:03 +01:00
Livvy Mackintosh
049ca29e77 Add registration and login templates plus UI stuff, moderation 2017-10-08 21:21:51 +01:00
Livvy Mackintosh
0811936382 Update lots of things 2017-06-16 18:10:44 +02:00
Livvy Mackintosh
8a7faf7593 Update map frontend and REST API 2017-05-23 01:12:04 +02:00
Livvy Mackintosh
f1d8f00af0 Update map app (location, migrations and templates) 2017-05-21 01:47:14 +02:00