Jared Tabor
2cc84f8bdd
XSS fix: serialize survey question default answer
...
For the XSS issues that we found, I am serializing the default answers now to make sure all appropriate characters are escaped.
2015-01-29 11:22:32 -05:00
Bill Nottingham
3df996f999
Fix assorted UI error messages to reference the correct REST requests.
...
Noticed when James commented on one specific posted error that it shouldn't be doing a PUT instead of a POST; turns out the error was just copy/pasted wrong.
2015-01-19 10:56:10 -05:00
Jared Tabor
6d10e31ea8
fixed Firefox error for submitting survey question
...
hadn't passed the 'event' object as part of hte ng-click event
2015-01-16 12:47:30 -05:00
Jared Tabor
d8af3198fc
changed opacity on survey maker action buttons
...
had to change some of the css/div classes
2015-01-16 12:00:20 -05:00
Jared Tabor
b0c9845bc3
Survey maker prevent duplicate vars
...
Added check in survey maker to prevent saving a question that uses a variable that is already in use.
2014-12-19 14:28:38 -05:00
Jared Tabor
f422d86355
Survey maker edit multiple quesitons
...
The survey maker would allow the user to edit multiple questions at the same time. I've removed this functionality.
2014-12-16 15:06:27 -05:00
Jared Tabor
d410e1aa2c
Survey maker
...
changed the way that question data is gathered from the question form. Instead of looping through I explicitly set the varaibles needed for the particular question
2014-12-15 13:25:03 -05:00
Jared Tabor
651dd1239a
Survey maker variable name checking
...
Generalized the directive for the variable name of survey maker to check for illegal characters for a javascript object
2014-12-15 11:27:58 -05:00
Jared Tabor
2688f2c3cc
Survey cancel button
...
Need to clean up lingering question object if cancel is pressed on the survey maker modal
2014-12-11 11:44:19 -05:00
Jared Tabor
ec132ae151
Survey maker/taker html tag injection
...
Fixed a defect in which the user could inject html tags into the survey maker, which could in turn show up in survey taker.
2014-12-10 14:05:29 -05:00
Jared Tabor
1641122737
Disable survey if 'can_edit' is false
...
The user should not be able to edit a survey if they do not have permission to edit the job template. I've added a check if the mode is 'edit' to see if the can_edit flag is false.
2014-12-10 11:53:05 -05:00
Jared Tabor
b5e521a759
Survey maker
...
There was a discrepency between save states in the survey maker when creating a new job template. I had to make some changes to how we 'save' survey's when creating job templates. Now survey info is stored in a seperate object and then stored in the scope when the user clicks save. It used to all be stored in teh scope object.
2014-12-09 16:26:04 -05:00
Jared Tabor
9c80dba4a2
Survey maker type change fix
...
Made all custom fields set to pristine state when the user changes the question type
2014-12-05 12:21:09 -05:00
Jared Tabor
f99a73fb85
text/textarea min/max length
...
added fields on survey maker for text/textarea min/max length. on survey taker added the error handling for these.
2014-12-02 14:01:34 -05:00
Jared Tabor
cfbec378c3
Survey Maker
...
on typeChange of survey question, clear out the values of any downstream components
2014-11-26 14:26:07 -05:00
Jared Tabor
f0c78611b2
cleaned up old deprecated code
2014-10-17 17:10:34 -04:00
Jared Tabor
6292c8ddbd
fixed small error using float directive
...
i hadn't used the smart-float directive correctly and in all the right places. i also adjusted the default_float in survey maker->edit question function
2014-10-16 09:48:46 -04:00
Jared Tabor
90ae405424
fixed some styling and issue with default values
...
adjusted some of the survey styling, and made edit questions stronger by ensuring that the question form has been loaded before pushing all the values to the form. Made sure for a multiselect that default value showed correctly
2014-10-16 00:34:05 -04:00
Jared Tabor
2fa230052c
removing some unnecessary files
2014-10-15 10:12:13 -04:00
Jared Tabor
beb4602933
fixed issue with editing multiselect
...
the multiselect was not updating the default value.
2014-10-14 17:10:56 -04:00
Jared Tabor
5b2eadf60b
added 'form-control' class to survey maker
...
form control class added to the integer/float input fields to make them more uniform throughout
2014-10-14 09:54:43 -04:00
Jared Tabor
995bf8c58f
adding cancel button for survey question form
...
cancel button closes the survey question form and returns the modal into its previous state
2014-10-10 14:47:37 -04:00
Jared Tabor
7dd2612268
more validation on survey question
...
survey question needed to have validation that didn't allow the min/max values to overlap incorrectly and for the survey save button to be disabled if hte user is in the process of adding another question
2014-10-10 13:32:06 -04:00
Jared Tabor
13bf8d89d0
adding more survey maker form validation
...
added validation on integers and floats that ensure answers are int/floats and that they meet the restrictions placed by min/max
2014-10-09 00:26:24 -04:00
Jared Tabor
360e813258
added a formReset funciton for survey maker
...
this is for getting the survey maker to an initial state, since the survey maker form was removed
2014-10-08 12:00:25 -04:00
Jared Tabor
47deaa702d
fixed default answer field in question maker. also added validation for choices if multichoice or multiselect is chosen
2014-10-06 16:15:16 -04:00
Jared Tabor
752f2d8013
adding updated survey maker with no survey name or survey description
2014-10-03 20:00:22 -04:00
Jared Tabor
d8fe8cc7ff
added required asterick for required questions
2014-09-26 14:40:21 -04:00
Jared Tabor
9114cb2d89
for a textarea answer, default answer field should be a text area
2014-09-26 14:34:01 -04:00
Jared Tabor
006da3219a
made SM fields readonly/disabled and adjusted opacity
2014-09-26 13:34:46 -04:00
Jared Tabor
ef0c399178
added functionality for moving question up or down in order on SM
2014-09-26 13:06:23 -04:00
Jared Tabor
f9f9c8c4a3
adding 'delete question' functionality
2014-09-26 11:42:13 -04:00
Jared Tabor
832dcc7701
completed 'edit question' for survey maker
2014-09-26 09:15:09 -04:00
Jared Tabor
40192b5172
survey maker additions for question types
2014-09-24 17:36:30 -04:00
Jared Tabor
193accaa84
refactored saveSurvey method
2014-09-22 11:29:02 -04:00
Jared Tabor
36ab9d98e0
fixed 'Delete Survey'
2014-09-21 22:09:37 -04:00
Jared Tabor
d3e793e9ca
changed survey maker to a modal window
2014-09-21 13:16:06 -04:00