Commit Graph

333 Commits (9454be4d91ae59c0c1178596ed522dc8a4b6061f)

Author SHA1 Message Date
eric 9454be4d91 add other item code to app
* refactor views
* add example fixtures
* consistent terminology for questionnaires
2017-06-19 22:20:46 -04:00
eric 195dcda657 use patched transmeta 2017-06-16 18:39:43 -04:00
eric fa1831037a cleanup files, initial data 2017-06-16 16:21:07 -04:00
eric b9f99a0f14 fix translation, modernize example settings 2017-06-16 16:17:49 -04:00
eric 48d0a4fbf1 updates from Gluejar/regluit 2017-06-08 17:28:18 -04:00
eric 406aec970a normalize runid in db, fix bugs 2016-11-03 11:43:08 -04:00
eric 72790b421d general renovations 2016-07-26 17:08:23 -04:00
Jamie Campbell bad5c9d566 changed RunInfoHistory complete to use full datetime instead of just date 2016-02-15 23:08:46 -06:00
Jamie Campbell e65edce4b8 added support for getting completed answers with question ids matching a provided list 2016-02-11 01:27:13 -06:00
Jamie Campbell 5ae7ce8c13 added ability to lock out external survey answering people but still allow logged in users to use the same interface to transcribe paper surveys 2016-02-08 21:30:18 -06:00
Jamie Campbell 669ee7501d added cookie information for questionset_id to facilitate load testing 2016-01-20 01:32:21 -06:00
Jamie Campbell e325900aaa the legacy code was using a function lookup that doesn't exist, and wasn't checking for "not none but empty" 2016-01-19 16:14:05 -06:00
Jamie Campbell 6698319b2c Merge branch 'master' of github.com:draconicfae/ed-questionnaire 2016-01-19 13:29:28 -06:00
Jamie Campbell fb6e2a3e16 added a function to deliberately generate an error 2016-01-19 13:28:54 -06:00
Mark Jenkins 2615e4e1dd added indexes to support objects.filter and .order searches 2016-01-19 07:06:42 -06:00
Mark Jenkins c7add25900 add an index for value field in choice table 2016-01-19 06:28:15 -06:00
Mark Jenkins 841a3b08e0 disable and no longer require globalstyles functionality 2016-01-18 00:18:19 -06:00
Jamie Campbell 81595b2e04 Merge branch 'master' of file:///home/jamiework/work/GAWork/ed-questionnaire
Conflicts:
	questionnaire/admin.py
	questionnaire/views.py
2016-01-13 03:50:32 -06:00
Jamie Campbell 15dda1e5cc typo correction -- why did it autogenerate incorrectly in the first place? 2016-01-13 03:44:30 -06:00
Jamie Campbell 5b048b2303 added support for a maximum number of selections for multiple choice type. don't need to add support for min because "required" already does that. 2016-01-13 03:33:24 -06:00
Jamie Campbell fadcec2fd2 completed work for granular style control 2016-01-13 03:32:55 -06:00
Jamie Campbell 2b43514b95 Merge commit 'e5ba454' 2015-12-21 12:22:42 -06:00
Jamie Campbell ca5a4c0bb6 temporary workaround enabling global style specifications 2015-12-21 12:14:18 -06:00
Jamie Campbell 5ea374d060 work towards more granular style control 2015-12-21 11:43:02 -06:00
Sara Arenson e5ba4547c7 choice-multiple-values: Checkboxes align with text
Put checkbox and choice text inside the same SPAN, so they now line up.
2015-12-17 10:23:53 -06:00
Jamie Campbell c618a30b44 db model for dynamic stylesheet support 2015-12-14 01:46:32 -06:00
Jamie Campbell 63ecc60740 added inclusion tag for dynamic stylesheet support 2015-12-14 01:45:59 -06:00
Jamie Campbell eac8ab5bd5 work towards database drive stylesheet configurability 2015-12-14 01:26:02 -06:00
Jamie Campbell 259e3850c4 added question id to the list of information displayed 2015-12-13 23:29:44 -06:00
Sara Arenson d8baee9921 Merge branch 'master' of git@github.com:draconicfae/ed-questionnaire.git 2015-12-09 15:28:29 -06:00
Sara Arenson 08d2251f7d Multiple value boxes are now aligned in questionset.js
Now choice-multiple-freeform template calls function in questionset.js,
rather than including the same code for each question.
2015-12-09 12:16:07 -06:00
Sara Arenson ad9b327558 choice-multiple-values questions now align after longest string
Added Javascript to template.

Adjusted CSS so the max width can be a bit wider.
This won't affect Javascript.

Still need to refactor so code is tidier - right now same code included
multiple times on pages.
2015-12-09 12:03:22 -06:00
Jamie Campbell 49aa449a83 changed question sorting from strictly alphabetic from tuple-based sort on sort_id then number 2015-12-08 00:45:24 -06:00
Jamie Campbell 37429dcf32 hoverable now changes font color instead of doing underline 2015-12-07 19:01:22 -06:00
Jamie Campbell 7721d782d9 changed so that clicking anywhere on the line no longer changes the checkbox, you have to click the checkbox itself 2015-12-07 19:00:58 -06:00
Jamie Campbell cfb2209b5b added support for questionnaire name to render as html via html field 2015-12-07 19:00:30 -06:00
Mark Jenkins 67577b8082 oops, was parsing question numbers as integer 2015-12-03 07:27:56 -06:00
Mark Jenkins 2f117f79ce oops, broke the build with the last one 2015-12-03 06:45:21 -06:00
Mark Jenkins fe8f5766fc ooops, left debug crud behind on an otherwise brilliant commit 2015-12-03 06:41:32 -06:00
Mark Jenkins b0f0ea1753 shownif made smarter, results from other pages pre-computed for JS
Recursive descent baby!
2015-12-03 06:12:02 -06:00
Sara Arenson d1a0a1d7dd Incidental fix & comment related to cross-page dependency check problem
dependency_checker.py: Now filters out integers in sublists, so that
choice-multiple-values only returns a list of the checked items, not the
values in their boxes.

views.py: Documented the reason for the across-page dependency bug.
Still needs to be fixed in the code.
2015-12-03 01:08:35 -06:00
Sara Arenson d4c20f4437 Merge branch 'master' of git@github.com:draconicfae/ed-questionnaire.git 2015-12-02 18:00:15 -06:00
Sara Arenson f09213ba36 Added URL to get previous page, skipping over all hidden questionsets
Note: Added more functionality to redirect_to_prev_questionnaire() so it
now works regardless of whether sessions are being used.
2015-12-02 17:41:59 -06:00
Mark Jenkins d8ab35feb6 Merging Jamie and Sara December 2 work 2015-12-02 16:22:05 -06:00
Sara Arenson 6e7a314dd3 Fixed bug where choice-multiple-values raises error if nothing selected 2015-12-02 12:25:50 -06:00
Sara Arenson ded42e8fb3 Yes/No questions now restore hidden questions after going back 2015-12-02 12:15:28 -06:00
Sara Arenson 5025e26b12 choice-multiple-values now aligns value boxes (shortens choice text)
Note: removed class from span containing value box and put it around span
containing choice's text

Choice text will wrap if necessary.

Currently, width of choice text is 35% - see questionnaire.css
2015-12-02 11:48:18 -06:00
Jamie Campbell 661772bbf9 changed session id logic from rand(255) to uuid4 to allow more than 255 answer sets 2015-12-02 01:31:34 -06:00
Mark Jenkins 3d06cd5570 Merge Sara and Jamie's work from November 30 and December 1 together 2015-12-01 23:59:17 -06:00
Sara Arenson 3d6ec88268 choice-multiple-values: Validates data and value boxes repopulated on POST
choice.py:

1) Performs validations - requires integers adding up to 100.

2) When key found in POST data, now extracts value and puts it
in box. Checks POST data first, before checking database, so most recently
entered data shows up in box. Also refactored code that was getting
lengthy. NOTICED BUG WHERE DATA FROM BOTH DATABASE AND MOST RECENT POST
REQUEST SHOW UP AT THE SAME TIME.

views.py: Now allow value boxes to trigger other events in the
system. Right now there's no check syntax for this kind of dependency,
though.
2015-12-01 23:37:33 -06:00