Commit graph

57 commits

Author SHA1 Message Date
jelhan
1a287510c8 init evaluation with zero 2014-05-21 13:36:44 +02:00
jelhan
f1511518bf allow selection of dates in the past but highlight tody
perhaps someone needs that
2014-05-13 19:20:20 +02:00
jelhan
5d45013af7 in some cases selection.value was undefined 2014-05-12 18:41:21 +02:00
jelhan
fb7f07ebe7 simple evaluation of poll 2014-05-12 15:28:44 +02:00
jelhan
d097cf2ba3 No need for EmbeddedAdapter anymore, but needing EmbeddedSerializer 2014-05-12 13:50:07 +02:00
jelhan
a124fe7f09 advanced styling 2014-05-11 15:35:20 +02:00
jelhan
9774baadbd formatted dates in selection table 2014-05-10 20:14:03 +02:00
jelhan
259811290e select dates via calendar
Fixes #8
2014-05-10 19:33:03 +02:00
jelhan
0df2ee87e6 write same logik shorter 2014-05-10 18:34:55 +02:00
jelhan
8842eeb612 move computed property to model so it's usable not only in poll route 2014-05-10 18:31:30 +02:00
jelhan
3e0f016ca2 theming user-interface with bootstrap
Fixes #3
2014-05-09 03:41:37 +02:00
jelhan
3fc71c74a1 remove debug output 2014-05-08 16:29:58 +02:00
jelhan
53f7511940 change selections to encrypted array
Move selections from embedded model to encrypted array.
2014-05-08 16:23:17 +02:00
jelhan
d56176dfb2 property type array is not used anymore 2014-05-08 16:10:24 +02:00
jelhan
e7adabe78a save options also encrypted
property is not updated when pushing an element to an computed property which is an array. Therefore we have to explicit set the array to update computed property.
2014-05-08 15:56:30 +02:00
jelhan
18df6f7200 remove logging 2014-05-08 00:46:36 +02:00
jelhan
b8c1305dcd define default values on creation of object
Implementation of encrypted array does not support default values.
2014-05-08 00:40:34 +02:00
jelhan
b9b7ea1eaa encrypt answers
Adds support for encrypted storage of data type array.
2014-05-08 00:37:27 +02:00
jelhan
8f2c6d66d1 encrypt creationDate
Adds support for encrypted storage of data type date.
2014-05-08 00:32:53 +02:00
jelhan
8dfab4c812 remove loging and test function 2014-04-18 03:03:53 +02:00
jelhan
f6e5905e1a answers as array of object because valuebinding is not working for array of strings 2014-04-18 03:02:48 +02:00
jelhan
22f816eb7f handle options as array 2014-04-18 02:59:29 +02:00
jelhan
cca69aed60 Support for pre defined answer possibilities
Implemented answer types are:
* yes, no (default)
* yes, no, maybe
* free text

While creating a poll the user choose possible answers by defining an answer type.

Later  user defined answer possibilites could be added.
2014-04-04 01:14:08 +02:00
jelhan
c708b57cf5 support installation in sub-directory 2014-04-03 22:58:05 +02:00
jelhan
c39021dee5 workaround for duplicated records after save
adding reload after save as workaround for bug: duplicated records after save
causing unnecessary GET requests
2014-02-22 03:28:49 +01:00
jelhan
bdf620d092 prevent unnecessary reload 2014-02-21 20:10:25 +01:00
jelhan
6863953f61 correct default values 2014-02-21 19:58:55 +01:00
jelhan
5260e82b3d removing unused encryptKey 2014-02-21 19:48:28 +01:00
jelhan
b04b36af83 clearing new user input fiels after save 2014-02-21 19:45:41 +01:00
jelhan
c6022c48e5 remove debug log 2014-02-21 19:30:41 +01:00
jelhan
0952d08925 Enable MODEL_FACTORY_INJECTIONS
allows to inject into model but breaks compatiblity with current version of ember data
2014-02-21 19:04:19 +01:00
jelhan
5483f43597 inject encryption key
doesn't work because injection on models is disabled, see: http://emberjs.com/api/classes/Ember.Application.html#method_inject
2014-02-21 18:24:15 +01:00
jelhan
319027f70b set correct default 2014-02-21 02:50:56 +01:00
jelhan
8a8a160094 fix error in last commit 2014-02-21 02:50:32 +01:00
jelhan
fe50c6f66b doing it the ember way 2014-02-21 02:47:39 +01:00
jelhan
6cba1b57a0 replace unnecessary get('model') by returned model 2014-02-21 01:58:32 +01:00
jelhan
5bfa169fff handling decryption errors caused by wrong password 2014-02-21 00:56:48 +01:00
jelhan
6d3d54c44b prevent unnecessary double load of content from server 2014-02-21 00:47:44 +01:00
jelhan
96cc2bcfba documentation 2014-02-21 00:28:21 +01:00
jelhan
d992971386 Deleting uncomment line 2014-02-21 00:27:08 +01:00
jelhan
74be62b061 Selection is always embedded so no need for a belongs to realationship to user model 2014-02-21 00:26:16 +01:00
jelhan
cb18ed0b1c Update libaries
Ember to 1.6.0-beta.1+canary.a063adea
Ember Data to 1.0.0-beta.7.f87cba88
Ember EmbeddedAdapter to latest dev release on GitHub
Handlebars to 1.3.0
JQuery to 2.1.0
Stanford JavaScript Crypto Libary to latest dev release on GitHub
2014-02-21 00:13:23 +01:00
jelhan
22431d9240 Fixing persitenz bug in createOption view 2014-02-19 20:35:07 +01:00
jelhan
7cd8a5bcb0 doing it the ember way 2014-02-08 02:08:36 +01:00
jelhan
8b4438ad5f refactored folder structure 2014-02-06 12:24:26 +01:00
jelhan
f452708aab rewrite client in EmberJS
Starting to rewrite client in EmberJS.
Main features, which are not implemented yet:
* api.php is not compatible with Ember Data yet. Data is stored in Locale Storage of the browser in this stage of development.
* Encryption / decryption of data is not implemented yet.
* There is an error on loading stored data due to embedded objects. Working on a fix, but loading a saved poll is not working for this reason yet.
* Adding user to a poll is not implemented yet.
* Any features for user interface like datepicker are not implemented yet.

To  test application you have to open #/create in browser. A route for index is not defined yet.
2013-12-30 17:01:24 +01:00
jelhan
eddb1253d9 using HTTP status code 2013-12-26 15:11:27 +01:00
jelhan
e98f3344ca scope and closure 2013-11-04 16:00:09 +01:00
jelhan
53d4ed50dc option to restrict answers on a defined list of possibilities 2013-11-01 00:56:51 +01:00
jelhan
10f9824099 rename 2013-10-31 23:51:16 +01:00