Commit graph

189 commits

Author SHA1 Message Date
jelhan
176d45b317 use a service for encryption key handling 2015-10-25 19:38:14 +01:00
jelhan
3a197f20f3 Fix: show users sorted by creation date and correct date of last participation in evaluation 2015-10-25 17:15:57 +01:00
jelhan
243ed3b12a model fragments for user selections (currently same as answers) 2015-10-25 15:32:42 +01:00
jelhan
d020f67e90 model fragments for options 2015-10-25 15:29:47 +01:00
jelhan
dd1a8436e0 model fragments for answers 2015-10-25 15:29:47 +01:00
jelhan
a8a10ad42a Fixes #74 and some other validation issues 2015-10-12 11:42:51 +02:00
jelhan
0ad6026715 includePlainOnCreate serializer option and use it for serverExpirationDate 2015-08-23 16:13:52 +02:00
jelhan
1136af5b74 remove deprecation: COMPUTED PROPERTIES WITH A SHARED GETTER AND SETTER
http://emberjs.com/deprecations/v1.x/#toc_computed-properties-with-a-shared-getter-and-setter
2015-08-19 22:24:20 +02:00
jelhan
398453c1e4 do encryption / decryption in serializer
before it was done as computed properties of model

accessing encryption key in serializer is done via global application var.
this should be removed in long-term
2015-08-19 22:00:01 +02:00
jelhan
0317c7c0c8 use ember-cli-build-info 2.0 to fix #65 2015-08-19 13:42:38 +02:00
jelhan
3e000f146d even more user-friendly evaluation 2015-08-19 13:27:14 +02:00
jelhan
839695b224 Merge branch 'master' into evaluation 2015-08-19 11:14:08 +02:00
jelhan
450a78255d expiration date should also be encrypted on get;
therefore we have to duplicate it in store:
* encrypted for to serve for clients (encryptedExpirationDate)
* unencrypted for server to check if it's exceeded (serverExpirationDate)
serverExpirationDate should never be send to client
2015-08-18 21:53:52 +02:00
jelhan
6f7148a86f Merge branch 'master' into evaluation
Conflicts:
	app/controllers/poll.js
2015-08-01 22:22:07 +02:00
jelhan
eb798a3c4c use fixed version of ember-cli-build-info 2015-07-28 17:22:31 +02:00
jelhan
5a9f58f451 fix jshint warning 2015-07-27 17:57:50 +02:00
jelhan
3690a60496 [FEATURE] add expiration date for polls 2015-07-26 19:41:59 +02:00
jelhan
2a3acf31ce Fix: webshim inputs were not updated 2015-07-23 23:49:23 +02:00
jelhan
ae1a846f26 Fix: sort function must return positive or negative integer 2015-07-19 21:07:15 +02:00
jelhan
a59130633e Fix sort function: title is a string now 2015-07-19 20:12:51 +02:00
jelhan
6ded3e1f4e do not care about timezones if it's not necessary 2015-07-19 20:00:07 +02:00
jelhan
0be7babb26 timezone of user created poll should only be stored if it's necessary 2015-07-19 19:49:40 +02:00
jelhan
d651d869fb if poll is about date with times we shouldn't set options to dates without times specified 2015-07-19 19:39:48 +02:00
jelhan
5fa425443f do not use ISO 8601 date + time format if it's only about dates 2015-07-19 19:33:41 +02:00
jelhan
25eedaef3c Some browsers (especially old IE) does not support toISOString() for Date objects,
therefore using momentJS to provide toISOString() function
2015-07-19 19:20:31 +02:00
jelhan
9a29b07dad explicit convert Date objects to ISO Strings
before it was done implicit by JSON.stringify() on encryption since JSON does not support Date type
2015-07-18 21:00:28 +02:00
jelhan
ab4f88dd7f Fix: handling of different timezones
There were some timezone issues especially concerning daylight saving time (DST).
We should not rely on timezone offset since this will change due to DST.
Instead determine the users timezone (using jsTimezoneDetect therefore) and
then using this via moment-timezone.

This commit changes poll model. It drops timezoneOffset and adds timezone as a new property.
It's not tested yet against polls created before without timezone property. This has to be done before merge.

Also we should consider using ember-moment template helpers instead of our own formatted-date helper.
2015-07-15 16:20:24 +02:00
jelhan
2839b09ad9 more user-friendly evaluation 2015-07-15 14:24:57 +02:00
jelhan
612086c73c intend by 2 spaces 2015-07-07 11:52:46 +02:00
jelhan
67cc41973f Ember.ObjectController is deprecated since ember 1.11
Ember.ObjectController was proxying model properties to controller. Ember.Controller which should be used is not.
Therefore we have to define if it's a property of controller or model.

Also added two more tests:
* anonymous participation
* do not force an answer for all options
2015-07-01 16:21:18 +02:00
jelhan
8c2a17df39 Fix: date without times were not sorted 2015-06-24 02:14:14 +02:00
jelhan
d6cf7efa3c add version information to
* build (as html meta tag)
* stored polls and users

Closes #65
2015-06-20 19:04:19 +02:00
jelhan
f5b8546247 fix undefined error 2015-04-07 13:17:45 +02:00
jelhan
30e9b22797 Fix undefined if all dates are removed 2015-04-07 12:38:13 +02:00
jelhan
10f7b59986 jshint 2015-04-04 02:45:22 +02:00
jelhan
b1dc1b5bac use ember-cli-boostrap-datepicker 2015-04-04 02:43:59 +02:00
jelhan
ed8a102b3d causes "unknown mixin" error in tests
doesn't seem to be necessary anymore
2015-04-04 01:09:25 +02:00
jelhan
d20aef363b Revert "add version to saved poll/user"
This reverts commit 3808de42ca.
2015-04-02 13:30:00 +02:00
jelhan
72bdb5c788 fix: dates should be in correct order
wasn't if they are defined with times

fixes #68
2015-01-26 18:17:29 +01:00
jelhan
3808de42ca add version to saved poll/user 2015-01-24 14:33:02 +01:00
jelhan
f0a09d9aee handle connection issues on user save:
* show error message (modal)
* provide retry button

fixes #66
2015-01-21 01:30:14 +01:00
jelhan
1e2dbd95e9 move language switch to application controller 2015-01-19 13:56:03 +01:00
jelhan
48ed039788 fixes top scrollbar resize issues
fixes #63
2015-01-16 14:12:34 +01:00
jelhan
7ba00a1b31 just change values instead of regenerating times array on copy first line action
fixes #37
2014-11-25 16:37:56 +01:00
jelhan
538a486da7 removed files from merge 2014-11-25 16:12:46 +01:00
jelhan
791c612e2d Merge branch 'feat/backbutton-on-create' into feat/ember-cli
Conflicts:
	app/controllers/create/options-datetime.js
	app/controllers/create/options.js
	app/views/create/options-datetime.js
2014-11-21 12:38:32 +01:00
jelhan
016ccfc31c rewritten option and input field relationship
keep inputs while setting up poll and update options based on inputs by observer
2014-11-21 12:24:24 +01:00
jelhan
3e85382cf8 ember-validations as ember-addons 2014-11-02 16:55:10 +01:00
jelhan
7dec3c47ca migration to ember-cli 2014-11-01 18:00:46 +01:00
jelhan
b9e03542e0 Merge branch 'master' into feat/ember-cli 2014-11-01 15:29:09 +01:00
jelhan
2b3e4f2fa3 improve translations 2014-11-01 15:28:57 +01:00
jelhan
7a241bd311 first steps to ember-cli 2014-10-30 21:44:22 +01:00
jelhan
5243b6c046 restore app/controllers/poll.js which got deleted in last commit;
delete not used computed property
2014-10-30 20:43:22 +01:00
jelhan
cd3a0ceb67 improved error handling 2014-10-28 06:00:37 +01:00
jelhan
2994ba738b fix error on date decryption 2014-10-28 04:02:43 +01:00
jelhan
d18055b8dc handle timezone differences
Closes #33
2014-10-28 03:27:54 +01:00
jelhan
2e742ea903 validate only on focusOut or submit 2014-10-26 18:19:07 +01:00
jelhan
f766e169bd run validation on submit 2014-10-26 16:47:15 +01:00
jelhan
44f0227e2f fix floatThead width when new user added changes cell width 2014-10-25 22:47:21 +02:00
jelhan
ce3d1070c0 remove debug logging 2014-10-25 22:07:08 +02:00
jelhan
20919232bf group dates if pollType is find a date and dates are defined with times 2014-10-25 19:40:14 +02:00
jelhan
57b46a03f1 translate poll types and predefined answers 2014-10-24 00:39:07 +02:00
jelhan
533f70b5ee visibilty as a view property + missing translations 2014-10-23 17:55:04 +02:00
jelhan
5afd9a20f4 fix wrong action name 2014-10-23 17:34:44 +02:00
jelhan
36e91ad99c better use of ember-easyForm and validations on create.options-datetime 2014-10-21 03:50:42 +02:00
jelhan
7a992c657a better use of ember-easyForm and validation in create.options 2014-10-21 03:19:30 +02:00
jelhan
dbda4b72d2 validation got lost 2014-10-21 02:29:11 +02:00
jelhan
018fcf7f1f Merge branch 'master' into feat/i18n
Conflicts:
	app/index.html
	app/templates/create/options.hbs
	bower.json
2014-10-19 23:52:39 +02:00
jelhan
18a77d1523 replaced ember-form by ember-easyForm
ember-easyForm seems to have better support for i18n
also seems to be more stable
2014-10-18 21:07:21 +02:00
jelhan
469a9f1e4e language switch 2014-09-29 02:39:11 +02:00
jelhan
8a91cfed48 webshim polyfill for html5 input time element 2014-09-28 17:07:19 +02:00
jelhan
78aed17d50 remove embedded adapter (ember-data-extensions) and use core EmbeddedRecordMixin instead 2014-09-28 14:55:40 +02:00
jelhan
7c822e456b Fix evaluation 2014-08-03 15:44:59 +02:00
jelhan
0ebb6c34e8 icons also for given answers 2014-08-03 15:35:29 +02:00
jelhan
abe254bff5 glyphicon for new user selection, but not yet for allready selected answers 2014-08-02 17:16:47 +02:00
jelhan
caa6251632 Fix wrong binding 2014-08-02 15:57:14 +02:00
jelhan
a96fa98d78 Fix type error 2014-08-02 15:43:58 +02:00
jelhan
4ec5850fed Fix one small bug 2014-08-01 21:23:34 +02:00
jelhan
ac07752095 Short help text 2014-08-01 21:00:04 +02:00
jelhan
4969bc37e2 Disable next button if input data is not valid 2014-08-01 20:56:20 +02:00
jelhan
f1ab0e8a44 Adding copy first line feature 2014-08-01 20:50:17 +02:00
jelhan
f093df96e7 Fixing small errors in MoreInputs-Funktion 2014-07-26 21:35:13 +02:00
jelhan
b7c4eccf52 Starting validation:isValid property show if atleast one time is specified for every date 2014-07-09 16:38:37 +02:00
jelhan
c91dd9076d refactoring 2014-07-09 13:51:06 +02:00
jelhan
e5bd2f8b90 Improvement for datetime support:
table and form with bootstrap
more input fields for time on user request
2014-07-09 13:42:09 +02:00
jelhan
fabb22d769 Starting implementation of DateTime features 2014-07-07 01:51:58 +02:00
jelhan
a058c961a7 Migration to EAK 2014-07-06 19:22:38 +02:00
jelhan
68950f570a Fixing some problems due to migration to EAK 2014-07-06 18:56:51 +02:00
jelhan
b066b8806c Starting to move to Ember App Kit 2014-07-06 17:37:54 +02:00