Commit graph

212 commits

Author SHA1 Message Date
Patrick Donelan
c3ea6d4683 Added Survey back button, with option to turn it on/off, tests, and i18n
Noticed that some Survey tests are broken, will fix tomorrow
2009-04-21 07:12:07 +00:00
Kaleb Murphy
caffe2751a Preliminary check in for new Survey text number type and validation. 2009-04-17 17:08:42 +00:00
Patrick Donelan
eec6ac3e47 Refactored Edit Survey page to improve UI, fixed some minor bugs,
cleaned up template and css, reduced memory usage
2009-04-17 09:39:52 +00:00
Patrick Donelan
feb17b8acf Improved Edit Survey section list.
Removed unnecessary <br>'s from Section list
Made sections panel resizable
Made current selection highlighted via CSS
2009-04-16 05:18:45 +00:00
Kaleb Murphy
234914c3e2 Survey drag-and-drop now returns the edit box for the item just drug. 2009-04-10 20:03:29 +00:00
Kaleb Murphy
2b2e876b6d Added default question type export function. 2009-04-10 17:27:25 +00:00
Kaleb Murphy
99a1418714 Default Survey Question settings now save 100% of the answer configuration data. This will not affect previous Surveys, but allow new defaults to be more complex if desired. 2009-04-10 16:06:20 +00:00
Colin Kuskie
4a5d907d77 POD Coverage for Event, SQLReport, Survey, Navigation, Article, and Form/HTMLArea 2009-04-10 02:02:07 +00:00
Kaleb Murphy
af00b7a881 Survey summaries now use YUI datatables and charts for extra bling. 2009-04-08 20:03:41 +00:00
Kaleb Murphy
a6a70a46e0 Summaries added to the survey 2009-04-05 19:33:46 +00:00
Kaleb Murphy
cd8402919d Survey summary code, intermediate check in. Zero changes in function. 2009-04-03 17:14:10 +00:00
Colin Kuskie
f07a6c066b Fix broken POD, and add missing POD. 2009-04-02 17:20:04 +00:00
Kaleb Murphy
e73a7645a7 Survey now shows warnings if bad goto, bad gotoExpressions, no question text, survey looping,
or no question answers are found.
2009-03-31 04:08:44 +00:00
Patrick Donelan
07e03c7b15 Fixed Survey to follow convention that a value of 0 for maxResponsesPerUser
should imply unlimited. Updated tests and docs to match.
2009-03-27 05:12:57 +00:00
Kaleb Murphy
046dae4f31 Moved multiple choice questions to the data base, and they can now be edited globally from the Survey edito 2009-03-26 21:02:30 +00:00
Kaleb Murphy
cafd31f87a New Question type. Just a Month-Year type with a month drop down and a 4 digit year text box. 2009-03-22 18:18:38 +00:00
Kaleb Murphy
fb8cd3af30 Removed debug sleep 2009-03-16 16:33:46 +00:00
Kaleb Murphy
cc11480d6d Added Edit Survey loading mask to reduce loading confusing on slow connections. 2009-03-16 15:59:20 +00:00
Patrick Donelan
b1b033afa5 Added Survey Workflow onSurveyEndWorkflowId
Fixed username bug
2009-03-15 06:34:37 +00:00
Patrick Donelan
d95a076ac5 Add optional userId param to Survey::responseId so that you can create a
response for a specific user (not just current user bound to session)
2009-03-15 06:34:15 +00:00
Patrick Donelan
7ec5cab126 Merge branch 'master' into survey
* master: (121 commits)
  Fix a POD typo.
  correct inbox message from user preface
  Fix a typo in the Default gallery view template
  Documentation bug in buildArrayRefOfHashRefs
  changed screenshots in Matrix Listing view to popup
  matrix privileging fixes
  Fix an i18n typo in the Post user defined variables.
  Remove debugging code.
  approval workflow fix
  matrix upgrade and privileging fixes
  fixed: Template parser cannot be set
  forward porting gallery bug fixes
  preparing for 7.7.0 dev
  parser should be a selectbox, not a selectlist.
  labeling survey as beta
  fixeding my borkes to the changelog
  fixed #9852: Users can accept private messages from Visitor, but Visitor cannot send messages
  preparing for 7.6.14 release
  fix AdSpace, Ad tests
  Restore the original properties for the profile category that was modified for test.
  ...

Conflicts:
	docs/gotcha.txt
	docs/upgrades/upgrade_7.6.10-7.6.11.pl
	lib/WebGUI/Asset/Wobject/Survey.pm
	lib/WebGUI/Asset/Wobject/Survey/SurveyJSON.pm
2009-03-11 15:26:07 +11:00
Kaleb Murphy
0db9be4512 Added goto to sections and questions. Order of precedence is answer, question, then section. 2009-03-09 17:23:06 +00:00
Kaleb Murphy
91b49f96b0 removing trace 2009-02-27 18:39:38 +00:00
Colin Kuskie
b934a59998 Fix Survey hoverhelp and i18n. 2009-02-26 20:48:22 +00:00
Kaleb Murphy
f275024f67 Survey.pm now has surveyJSON as a normal definition property, which is also versioned. Survey Responses are not versioned, so updating a survey can cause errors with ongoing responses. 2009-02-25 18:53:14 +00:00
Colin Kuskie
ae1d89de3b i18n the Survey Asset definition, and add hoverhelp. 2009-02-25 04:47:47 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Patrick Donelan
bc9c66c2fd Fixed template var regression in Survey.pm 2009-02-16 00:13:36 +00:00
Patrick Donelan
7958aefe64 Survey documentation improvements 2009-02-16 00:13:19 +00:00
Kaleb Murphy
a350398f41 Logic is corrected, but the JS should probably be rewritten to be more like the WG PageLayout drag and drop so that it isn't so finicky. 2009-02-13 18:28:52 +00:00
Patrick Donelan
34340e56fb Added Survey::surveyJSON_* convenience methods that auto-persist to the db 2009-02-12 01:07:22 +00:00
Patrick Donelan
d9316f47c4 Made perlcritic a little less grumpy about Survey.pm 2009-02-11 09:28:16 +00:00
Patrick Donelan
5a2f514a5a Added Delete Responses back into Survey template (with i18n) 2009-02-11 09:27:54 +00:00
Patrick Donelan
7128a3d07c More Survey.pm refactoring
Turned getResponseId into a lazy-loading responseId mutator
Added responseIdCookies flag as a workaround for WebGUI::Test::getPage's
lack of cookie support
2009-02-11 09:27:31 +00:00
Patrick Donelan
16c87b9cba Made Survey's responseJSON property lazy-load so that you don't have to
call loadResponseJSON and/or loadBothJSON everywhere
2009-02-11 09:27:10 +00:00
Patrick Donelan
e139136d08 Made Survey->surveyJSON lazy-load so that you don't have to call
loadSurveyJSON() everywhere.
2009-02-11 09:26:50 +00:00
Patrick Donelan
8d7599d781 Moved Survey.pm's "survey" and "response" properties to private hash
vars and added accessors.

So that you don't end up with mind-bending code that looks like:
$survey->survey->{survey}
2009-02-11 09:26:27 +00:00
Patrick Donelan
316d133a02 Improved Survey.pm documentation 2009-02-11 09:26:05 +00:00
Patrick Donelan
d882181fd1 Started refactoring the Survey.pm Wobject class
Refactored www_jumpTo and added tests
Added Params::Validate
Improved docs
Made call to SurveyJSON->createSurveyOrder() unnecessary
Turned ResponseJSON->nextResponse a mutator
2009-02-11 09:25:42 +00:00
Patrick Donelan
ba6764065b Added Survey Template i18n and hoverhelp 2009-02-11 09:25:17 +00:00
Patrick Donelan
25a6fc5e76 Added 'max responses per user' i18n and hoverhelp 2009-02-11 09:24:39 +00:00
Patrick Donelan
73c02b6803 Part-way through merging Survey features from trunk
Cleaned up Survey Edit screen, hover help, layout etc..
Added "jump to" AutoComplete box on Section Edit dialog (as per Answer
Edit dialog)
N.B. "take survey" is currently broken, but will be easy to fix
2009-02-10 08:00:18 +00:00
Patrick Donelan
b0c5c09461 Merge branch 'master' into survey
* master: (127 commits)
  Prefill in the email address in the ITransact credentials form from the user's Shop address.
  fixed Matrix best/worst rated lists
  Fix bad form variable for phone number in EMS Badge address info.
  - Added a switch to allow the use of non-WebGUI objects with the Workflow
  fixing a problem with previous survey fix
  fixed #9671: Survey - breaks admin bar
  fixed a Matrix sql problem
  i18n the image labels and title for the asset manager, manage screen.
  Prevent an imported package from changing the a current asset's status from pending to anything else.
  Remove trailing comma in Shop/Transaction JS so IE6 works.
  fixed documentation
  fixed a bug when a matrix listing didn't have a forum attached
  small char encoding fix to merged upgrade
  fix small issue in addChild
  adding merge point
  Fix a problem with purging an EMS.
  Update this template so that it passes the template i18n test.
  Fix a broken i18n label in answer edit template for the Survey.
  Unify all Survey CSS into 1 file, and use it.
  Adding/fixing Survey i18n and Help
  ...

Conflicts:
	lib/WebGUI/Asset/Wobject/Survey.pm
	lib/WebGUI/Asset/Wobject/Survey/ResponseJSON.pm
	lib/WebGUI/i18n/English/Asset_Survey.pm
	www/extras/wobject/Survey/editsurvey/object.js
2009-02-10 07:57:42 +00:00
Yung Han Khoe
d32137b5db fixing a problem with previous survey fix 2009-02-07 21:08:02 +00:00
Patrick Donelan
3340a675b7 Updated Survey.pm to use new ResponseJSON.pm methods 2009-02-06 01:56:35 +00:00
Patrick Donelan
932a033b58 More ResponseJSON refactoring
Removed unnecessary $session argument from recordResponses
Refactored nextQuestions to return a list rather than an arrayref
Lots more documentation for ResponseJSON
More param validation for ResponseJSON
Refactored recordResponses
Updated tests
2009-02-06 01:55:56 +00:00
Colin Kuskie
b8b2a38ef5 Fix the exitURL redirection when a survey is completed and the site uses a gateway url. 2009-02-04 02:22:21 +00:00
Patrick Donelan
17dbf7fa66 Updated Survey.pm to use the new SurveyJSON contructor params 2009-02-03 08:32:22 +00:00
Patrick Donelan
821635eb71 Refactored ResponseJSON and SurveyJSON
Added Params::Validate to ResponseJSON.pm
Refactored ResponseJSON constructor and re-ordered params for
consistency
Added new ->session accessor
Updates tests
Removed unnecessary logging methods
Further refactored SurveyJSON, gave private variables underscores,
replaced direct hash access with accessors
2009-02-03 08:31:43 +00:00
Graham Knop
c7dac4aa42 cleaning up survey pod 2009-01-28 16:39:27 +00:00