Commit Graph

294 Commits (master)

Author SHA1 Message Date
Denis Krienbühl 36dfde320c Removes Tag model from admin interface 2012-01-21 11:35:08 +01:00
Denis Krienbühl 1cf8331a38 Removes unused Tag model 2012-01-18 10:28:22 +01:00
Denis Krienbühl 15775a15bc Fixes transition css property for all browsers 2012-01-17 15:07:37 +01:00
Denis Krienbühl 7af664cfd7 Adds jquery as dependency and uses it to block and animate the submit button of the quesitonnaire forms 2012-01-17 14:46:44 +01:00
Denis Krienbühl 775595a67c Adds answer subtitution in questionsets texts (before it was questions only) and enables it to work with questions that have non-numericals in their number (bugfix) 2012-01-17 12:06:21 +01:00
Denis Krienbühl 226daafb24 Adds ability to add a catch-all tag 2012-01-17 11:34:06 +01:00
Denis Krienbühl ab5d9b5097 Fixes a bug in dep_check 2012-01-17 11:23:36 +01:00
Denis Krienbühl 82ad6bf164 Enable questionsets with negative sortids 2012-01-17 11:23:22 +01:00
Denis Krienbühl 1f1b097acd Adds extra text to open question and adjusts the top margin slightly 2012-01-17 09:25:50 +01:00
Denis Krienbühl 1d2f5def85 Replaces the existing range drop-down widget with a html5 range input.
* For older browsers there's a javascript fallback which ensures that the values entered into the text input are fall within min-max and are divisable by step.
 * The new widget adds two new checks - step and unit.
 * The unit is displayed next to the input element.
2012-01-16 16:06:43 +01:00
Denis Krienbühl 9945ecae79 Adds a number of performance improvements
* progress calculation could get very slow with large questionnaires. Though
  it still is the method that takes the longest it is considerably faster now.
* improved has_tag and dep_check functions (now considering default values)
* more request caching
2012-01-13 13:49:31 +01:00
Denis Krienbühl 9b73ec25ea hide the progressbar percentage value 2012-01-11 11:25:55 +01:00
Denis Krienbühl c5c47e869b Adds middleware enabling caches on a per-request basis 2012-01-06 14:50:32 +01:00
Denis Krienbühl bdfedf608a stores tags on runhistory once the questionnaire is over 2012-01-05 16:45:55 +01:00
Denis Krienbühl 68eb28da3f skips the first questionset if it doesn't pass the checks 2012-01-05 16:21:28 +01:00
Denis Krienbühl 314ea0d788 Adds questionnaire to RunInfoHistory (with foreign key) 2012-01-04 16:22:18 +01:00
Denis Krienbühl 57eb0af4d4 Removes cookie size limit on RunInfo and ensures that answered values always override default values 2011-12-30 13:41:09 +01:00
Denis Krienbühl 97c6ffdeb3 Adds qvalue to simple yesno questions which makes the javascript dependency scripts kick in on load rather than on first select 2011-12-27 10:28:29 +01:00
Denis Krienbühl 2e6d344680 Adds method to subject returning the latest completed run 2011-12-22 16:30:38 +01:00
Denis Krienbühl 12d252fba1 Ensures that the progressbar is not being overlapped by questionset title text 2011-12-22 10:29:29 +01:00
Denis Krienbühl fbd96f9778 Adds tests for the tags and simplifies progress code 2011-12-22 10:22:33 +01:00
Denis Krienbühl d5498d9cb1 Adds tags questionset for further testing 2011-12-21 17:37:56 +01:00
Denis Krienbühl ca97ab6abb Adds hiding of questions depending on tags 2011-12-21 16:50:24 +01:00
Denis Krienbühl b830aaa196 Makes progress bar take hidden questionsets into account 2011-12-21 16:35:44 +01:00
Denis Krienbühl 0fbb438b78 Adds tag check to questions as well, not hiding single questions, but only 'empty' questionsets for now 2011-12-21 16:09:56 +01:00
Denis Krienbühl e793488183 Fixes tag check function to work with boolean expressions 2011-12-21 15:35:13 +01:00
Denis Krienbühl 429ea5f12d Removes unused code from views.py 2011-12-21 14:58:27 +01:00
Denis Krienbühl ae3567f71c Adds questionset check function 2011-12-21 14:53:00 +01:00
Denis Krienbühl d92f42ce72 Adds tags to models 2011-12-21 14:52:35 +01:00
Denis Krienbühl d40b2469a2 Changes test to use assertEqual instead of simple asserts 2011-12-21 12:31:30 +01:00
Denis Krienbühl 979ecb6c2c Fixes tests which should all pass again now 2011-12-21 12:23:51 +01:00
Denis Krienbühl 51df6020cb Fixes css style and adds build to gitignore 2011-12-17 11:25:22 +01:00
Denis Krienbühl ecdb8b2e06 Moves page module from example to questionnaire and adds csrf protection 2011-12-17 11:21:42 +01:00
Denis Krienbühl dd5f94f6bf Merges the css from base and questionset 2011-12-16 10:28:23 +01:00
Denis Krienbühl e60b9c2814 Moves styles to a separate file 2011-12-16 10:23:50 +01:00
Denis Krienbühl e523b67136 Adds css only progressbar 2011-12-15 17:31:50 +01:00
Denis Krienbühl b5b0021db2 Removes blueprint files 2011-12-15 16:41:36 +01:00
Denis Krienbühl 2eed37c0d6 Changes style to better fit in with bootstrap 2011-12-15 16:21:45 +01:00
Denis Krienbühl b7f997dc10 Gets rid of the newline / nobreak feature.
With the newline / nobreak feature a user could align multiple questions horizontally.

Apart from the fact that I'm not sure if it is even used I would rather implement it by using css instead of <br/> calls in different widgets. As it was it didn't really work well with twitter bootstrap, so I'd rather take it out of the equation for now and concentrate on good default rendering.
2011-12-15 14:13:17 +01:00
Denis Krienbühl 23b943d8bc Adds default comment template to avoid errors if it is not defined by the site 2011-12-15 14:07:51 +01:00
Denis Krienbühl 493385a0a0 Updates questionset template for bootstrap 2011-12-15 14:06:38 +01:00
Denis Krienbühl 33d373fa60 Updates multi freeform choice widget for bootstrap 2011-12-15 11:29:00 +01:00
Denis Krienbühl e8d1dbe9f8 Updates the timeperiod widget for bootstrap and increases the open answers widget's width 2011-12-15 11:01:22 +01:00
Denis Krienbühl b0710ae2e4 Updates the number range widget for bootstrap 2011-12-15 10:45:58 +01:00
Denis Krienbühl 6057f1f32d Updates the open answers widgets for bootstrap 2011-12-15 10:39:17 +01:00
Denis Krienbühl 8ab6cf5edc Updates choice freeform widget for bootstrap 2011-12-15 10:31:18 +01:00
Denis Krienbühl 43eaae333c Updates choice widget for bootstrap 2011-12-15 10:16:18 +01:00
Denis Krienbühl 128faa91a5 Changes some widgets to work with twitter bootstrap 2011-12-15 09:51:12 +01:00
Denis Krienbühl cff4af2521 Switch from blueprint to twitter bootstrap 2011-12-14 16:46:28 +01:00
Denis Krienbühl 400257058a Switched from /media/ to /static/ as Django seems to be in favor of the latter 2011-12-14 15:34:24 +01:00
Michael Trier 5802e01221 Make it installable. 2011-12-14 18:27:56 +08:00
Denis Krienbühl 1c5249543f Fixes invalid translation 2011-12-14 10:55:44 +01:00
Denis Krienbühl 7998b63114 Fixes magic string comment 2011-12-14 09:41:43 +01:00
Denis Krienbühl c456cb38fa Removes answer magic string from settings and makes the feature work with all languages 2011-11-30 10:00:33 +01:00
Denis Krienbühl 10d475ea31 Merge branch 'master' of git://github.com/pegpe/seantis-questionnaire into pegpe 2011-11-29 16:25:03 +01:00
Denis Krienbühl 24c4c53db1 Adds italian translation, courtesy of danfreak 2011-11-29 15:53:09 +01:00
Denis Krienbühl 6520315670 Resets the Questionnaire redirect_url to the default used before the merge with wardis branch 2011-11-29 15:43:39 +01:00
Per-Erik Persson 17021b402d convert integers to str to allow them to be exported 2011-09-28 15:45:46 +02:00
Per-Erik Persson 51207cc5c8 Merge remote branch 'wardi/master' 2011-09-28 13:18:57 +02:00
Per-Erik Persson 5f26adffda Enable questions to reference the anser of a previous answered question. The magic string subst_with_ans_1 will insert the answer from question one into your current question. 2011-09-28 12:32:23 +02:00
Ian Ward ac0f0adba3 avoid excessive db queries in answer_export 2010-12-23 10:21:29 -05:00
Ian Ward 1aec25c1cd allow answer_export and export_csv to export unicode text 2010-12-22 11:32:25 -05:00
Ian Ward 0818cdcda3 fix submit choice-freeform with empty comment bug 2010-12-06 14:31:46 -05:00
Ian Ward 942e4c4c0a hide choice-multiple-freeform extra text field numbering w/ only one extra 2010-12-01 10:35:48 -05:00
Ian Ward 1743d0950b if sameas doesn't find a match, treat the question like a comment 2010-12-01 10:14:10 -05:00
Ian Ward 64f194980f default sameas questions to same survey 2010-12-01 10:08:11 -05:00
Ian Ward c9ac9ce707 fix missing ) 2010-05-05 09:46:27 -04:00
Ian Ward b1ad3dc9b2 describe some of the available requiredif parameters in question admin 2010-05-05 09:06:24 -04:00
Ian Ward 77f529c0ac fix answer_export bug affecting first answer column 2010-04-20 13:22:43 -04:00
Ian Ward 7ce1a24a8f fix dep_check for modified answer format 2010-04-20 08:35:48 -04:00
Ian Ward e60d8af9fe split export_csv into gather data + export functions 2010-04-19 21:12:39 -04:00
Ian Ward c3e14048d2 more help text for question number, choices; Less help for question additional checks 2010-04-19 17:06:28 -04:00
Ian Ward 8650bf742c answer_summary: allow summary of 0 answers 2010-04-19 11:57:57 -04:00
Ian Ward 425ccca908 new answer_summary function for calculating a questionnaire's totals 2010-04-18 13:20:54 -04:00
Ian Ward db90300a95 fix for Answer.choice_str and modified answer format 2010-04-18 13:20:11 -04:00
Ian Ward 1e7b103220 better guessing at correct values of answer data 2010-04-08 10:45:27 -04:00
Ian Ward 3eb0dadba6 export_csv: split multiple choice and freeform results into their own columns 2010-03-23 12:24:30 -04:00
Ian Ward cefd7a71cc store answers as json ["answer-a", "answer-b", ["custom-answer"]] format to remove potential for ambiguity 2010-03-22 12:52:13 -04:00
Ian Ward d5a48c1624 better default complete url for our page-cms integration 2010-03-16 13:33:17 -04:00
Ian Ward 95f6b180a1 allow requirements on multiple choice questions 2010-03-01 13:02:59 -05:00
Robert M. Thomson 4316bfef58 Added generate_run view (thanks to Ross Poulton)
* generate_run creates a RunID for the supplied questionnaire id,
   associating it with a Subject with givenname "Anonymous" and
   surname "User" (will create the Subject if it doesn't exist).
 * Fixes issue #3 in github
 * Thanks to Ross Poulton (http://www.rossp.org/)
2009-12-24 12:41:38 +01:00
Robert M. Thomson 0687d39a1b Add README, including documenting package requirements 2009-12-23 10:00:43 +01:00
Robert M. Thomson da00f1b082 New permissions + small bugfix
* stricter permission check on export_csv (questionnaire.export)
* stricter permission check on send_email (questionnaire.management)
* small bugfix for case when runcode is empty
2009-12-23 09:42:53 +01:00
Ian Ward 723bd0bd01 fix for csv url 2009-12-23 16:34:34 +08:00
Robert M. Thomson ace257c299 Bugfix for Django 1.1/dev, whose release broke an ugly hack I used 2009-09-11 15:16:50 +02:00
Robert M. Thomson cf59e49b39 Usability fix: there is now no space between a widget and its label, so there is no longer a dead spot which will not select the widget 2009-07-02 11:47:17 +02:00
Robert M. Thomson 4659c8d471 bugfix - emailsent column should be nullable & blankable 2009-07-02 11:45:55 +02:00
Robert M. Thomson c0ffea83a7 When setting the language during a questionnaire, use the questionnaire url/view so the change will be saved to the subject. 2009-06-18 14:23:40 +02:00
Robert M. Thomson ce2b700363 Fix tests. French language should not be in test fixture, and update the test since we now redirect after the language has been set. 2009-06-18 14:06:24 +02:00
Robert M. Thomson 82ce6571f0 add LICENSE 2009-06-15 19:23:53 +02:00
Robert M. Thomson 88359ad585 language & translation updates 2009-06-15 19:05:59 +02:00
Robert M. Thomson 14fd06b8f4 merge in some changes 2009-06-15 18:07:14 +02:00
Robert Thomson 117527f004 Bugfix in choice. all fields should be enabled by default - javascript disable if necessary. Otherwise non javascript browsers will have an issue 2009-05-17 16:08:17 +02:00
Robert Thomson 5c3d9ca1a0 Initial Checkin of Seantis Questionnaire 2009-05-17 13:34:55 +02:00