Commit graph

98 commits

Author SHA1 Message Date
Patrick Donelan
494efe1cf1 Added Country question type to Survey
Refactored WebGUI::Form::Country so that it can be used to return a list of countries
2009-05-06 02:38:26 +00:00
Kaleb Murphy
676b124697 Removed superfluous function wrappers on the yui event subscriptions. 2009-05-01 19:11:48 +00:00
Kaleb Murphy
70c5997872 YUI editor in the edit panel for the Survey editor now drags with the panel and hides with the panel. 2009-05-01 19:07:01 +00:00
Patrick Donelan
aa045b7abc Improved Survey template so that bottom of page/submit button can be
skinned when questions don't validate. Added js to scroll page to
highest invalid question (e.g. lowest y-coord)
2009-04-28 00:37:51 +00:00
Kaleb Murphy
c327353213 Fixed a bug in the YUI simple editor for survey editing which was leaking memory. Also improved the object edit templates. 2009-04-27 20:20:58 +00:00
Kaleb Murphy
daf5294c27 Removed commented code 2009-04-22 22:09:52 +00:00
Kaleb Murphy
b238510c7f administer.js now has a much improved handling of the slider algorithm, plus some refactored code. Users will not notice anything. 2009-04-22 22:01:48 +00:00
Patrick Donelan
fe671d74e5 Updated Survey Edit validation warnings to use more standardized
wgWarnings CSS class
2009-04-22 03:27:45 +00:00
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
Patrick Donelan
9c228e2c83 Improved Survey "Year Month" validation 2009-04-21 03:32:27 +00:00
Kaleb Murphy
2b8306a635 Minor change to Survey number type. Fixed duck type addition/concat confusion, and defaulted answer to empty string. 2009-04-20 02:24:53 +00:00
Kaleb Murphy
724675c71c Survey new number type, if slider constraints are left blank, no constraints are applied. 2009-04-19 01:40:49 +00:00
Kaleb Murphy
9df02396b7 added Survey Number type. Text number entry that uses slider restrictions as constraints (server and client side). You can also use the arrow keys
to increment or decrement the number enter.
2009-04-18 22:23:35 +00:00
Kaleb Murphy
caffe2751a Preliminary check in for new Survey text number type and validation. 2009-04-17 17:08:42 +00:00
Kaleb Murphy
ded86ab837 Removing console.log 2009-04-17 14:01:04 +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
2f5fc2f4e1 Survey editor now keeps survye objedts in a scrollable panel to keep buttons always in view. 2009-04-15 19:10:41 +00:00
Patrick Donelan
571ca5db06 Fixed small bug in Survey validation where invalid branch expressions
wouldn't be shown
Improved and i18n'ed Survey validation warning container
2009-04-09 07:57:37 +00:00
Kaleb Murphy
c6860a5d30 cleaned up the code 2009-04-09 02:32:50 +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
Patrick Donelan
b50b7bebf1 Converted firebug console.log into YAHOO.log to unbreak Survey DnD 2009-04-03 05:04:02 +00:00
Kaleb Murphy
272283e75d Adding template and js to show warnings. 2009-03-31 04:39:48 +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
41436a6d21 removed traces 2009-03-19 16:00:05 +00:00
Kaleb Murphy
077d38c0b4 Survey slider types improved and corrected. Single slider type now ingores "required". 2009-03-17 18:07:46 +00:00
Kaleb Murphy
1c8b30135a Corrected gif location 2009-03-16 16:30:16 +00:00
Kaleb Murphy
7624504335 Added mask removal on ajax failure. 2009-03-16 16:27:55 +00:00
Kaleb Murphy
b856cddc56 removed trace statements 2009-03-16 16:02:31 +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
17c4fdbe0c Made all Survey gotoExpression textareas YUI resizable 2009-03-11 23:42:29 +00:00
Patrick Donelan
ce50d798ce Merge branch 'survey-rfe' into master
* survey-rfe
  Turned off package flag on expireincompletesurveyresponses
  Merged Survey Templates
  Cleaned up Survey i18n
  Added Params::Validate to gotcha.txt
  Added Survey upgrade script for doAfterTimeLimit and RemoveResponseTemplate
  Updated SurveyJSON tests to recognise goto[Expression] on Section and Question
  Merge branch 'master' into survey
  removing traces
  Added goto to sections and questions.  Order of precedence is answer, question, then section.
  removing surveybundle
  removing trace
  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.
  Drag and drop functionality vastly improved in usability.
  Time multiplier was set wrong
  fixed typo in template
  Added workflow (and email template to WebGUI/) to delete expired surveys and notify users via email.
  Removed hard-coding of multi-choice bundles from administersurvey.js
  Fixed regression in ResponseJSON's sectionId, questionId and answerId methods
  Started working on Survey Multiple Choice bundle management.
  Fixed template var regression in Survey.pm
  Survey documentation improvements
  ...
2009-05-27 14:54:11 -05:00
Kaleb Murphy
4ecc0b7679 removing traces 2009-03-09 17:23:33 +00: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
6720ce5efb Drag and drop functionality vastly improved in usability. 2009-02-17 15:25:10 +00:00
Patrick Donelan
c58a6ab2fb Removed hard-coding of multi-choice bundles from administersurvey.js
Refactored long, nested if-else
2009-02-16 01:22:04 +00:00
Patrick Donelan
3601dfe89e Re-applied Survey cancel button fix from merge 2009-02-11 09:24:19 +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
16452c0677 Adding hoverhelp to Survey Edit Section dialog 2009-01-22 18:23:01 +00:00
Yung Han Khoe
6598ca8854 rfe 9197: Survey timeout handling 2009-01-19 12:49:20 +00:00
Yung Han Khoe
2584482fcf applied changes for rfe 9200 to later version of object.js 2009-01-16 14:23:30 +00:00
Yung Han Khoe
f4dab79093 Rfe 9201: Make Survey textAreas yui resizable 2009-01-15 15:51:39 +00:00
Yung Han Khoe
46cca4fae1 rfe 9200: Survey Text/TextArea handling 2009-01-15 14:17:40 +00:00
Patrick Donelan
723d39df79 Removed unused function from editsurvey.js 2009-01-15 09:18:01 +00:00
Patrick Donelan
d5f6d8603e Fixed a few js memory leaks in EditSurvey page (SimpleEditor appears to
have a memory leak of its own which we either need to get fixed or
work-around).
2009-01-15 09:12:06 +00:00
Patrick Donelan
42ce45f825 More code from flux branch 2009-01-14 06:14:52 +00:00
Patrick Donelan
b7520da07d Merge commit 'tags/WebGUI_7.6.8-beta' into survey-rfe
* commit 'tags/WebGUI_7.6.8-beta': (96 commits)
  Release 7.6.8-beta
  preparing for 7.6.8 release
  convert to new storage format
  fixing photo comment test
  fixed: Syndicated Content corrupts wide characters
  Add the WikiPage to the list of contributions shown in the Account Contributions tab.
  added #!/usr/bin/env perl to all utility scripts
  Forward port i18n fix for Gallery Album RSS list.
  Fix some Survey i18n typos in the time limit hoverhelp.
  Large batch of Help and i18n.  Also, make sure that the
  Fix a typo in the i18n help for the ITransact Pay Driver.
  Correct dataform captcha variable name in the help.
  Forward porting expanded patch for handling deleted things.
  Have Thingy check for existance of table and column to prevent
  Fix linking to other things and autocreating the form field for it.
  Update test to match fixed code.
  Remove the warnings pragma
  Only resize photos if they are larger than the Gallery resolutions.
  Fix a syntax error made in the i18n of the search button.
  I18n'ed a submit button in the manage transactions screen.
  ...

Conflicts:

	lib/WebGUI/Asset/Wobject/Survey.pm
	lib/WebGUI/Asset/Wobject/Survey/SurveyJSON.pm
	www/extras/wobject/Survey/editsurvey.js
	www/extras/wobject/Survey/editsurvey/object.js
2009-01-14 06:00:06 +00:00