Commit graph

1338 commits

Author SHA1 Message Date
jelhan
b066b8806c Starting to move to Ember App Kit 2014-07-06 17:37:54 +02:00
jelhan
30d3642e04 Error handling 2014-06-24 13:41:58 +02:00
jelhan
258ebddfc0 Use ember.isEmpty instead of type check 2014-06-24 13:40:19 +02:00
jelhan
3b33efd263 Update JavaScript libaries to latest versions
Fixes #16
2014-06-15 11:20:47 +02:00
jelhan
e093ccc936 Fix wrong syntax in link-to helper 2014-06-15 11:19:25 +02:00
jelhan
8d85ea51c5 link "logo" to index 2014-06-15 09:59:39 +02:00
jelhan
7705bc1209 conditional validation of everyOptionIsAnswered depending on poll setting forceAnswer
Fixes #21
2014-06-13 17:12:18 +02:00
jelhan
14e9b252ec fix bug vor ember-validations on startup
have to rerun validation manually when encryption key is present in model
2014-06-13 17:04:13 +02:00
jelhan
e753217d5a add validation for user selections 2014-06-13 16:27:04 +02:00
jelhan
1d4a7e7aef observes in condition validator is not needed 2014-06-13 14:12:26 +02:00
jelhan
a542c46a12 Fixing validation of newUserName; removed validation of newUserSelections temporary
Therefore has to move creation of new user from view to controller. ember-validations had problems with views.

Removed not working validation of newUserSelections temporary.

isValid is false until a property observed by ember-validations got changed; therefore form is not valid until username got changed even if anonymous users are allowed. Will be fixed by validation on new user selections.
2014-06-13 04:32:04 +02:00
jelhan
eff862266c remove old newUserSelections property 2014-06-13 03:42:30 +02:00
jelhan
71d9ceb746 generate newUserSelections as computed property 2014-06-13 03:40:59 +02:00
jelhan
344e1407d4 adding help textes for option selection / input 2014-06-06 01:50:38 +02:00
jelhan
c8dfa98a40 validation for options form
Fixes #20
2014-06-06 01:41:43 +02:00
jelhan
c789cf4d12 improve documentation 2014-06-06 00:15:24 +02:00
jelhan
6692194cde use explicit variable name and improve documentation 2014-06-06 00:01:28 +02:00
jelhan
d8ef18bc2d Extend validation on new user input
* validates  if every option is answered if this option is set
* remove alert messages which aren't necessary anymore
* improve documentation

Doesn't give a user feedback set an answer for all options is forced.
2014-06-05 23:55:40 +02:00
jelhan
2e4a491fe9 disable save button if new user form isn't valid 2014-06-05 19:32:41 +02:00
jelhan
9dc86f1437 reset validation errors after new user is saved 2014-06-05 19:24:39 +02:00
jelhan
2d4da6e019 simplify the test if answers for all options are selected 2014-06-05 19:15:43 +02:00
jelhan
286fd5f01f adding validation for username
Save button is not bind to isValid state yet because it's not possible to trigger an action inside a view with ember-form submit button.

Adresses #20
2014-06-05 14:43:42 +02:00
jelhan
78b6096c75 changed new user form to ember-forms
Due to a problem in ember-forms handling propertys of each helper this is splitted up in several forms; should be changed in future.
There is no evaluation added yet.

Adresses #15
2014-06-05 13:08:10 +02:00
jelhan
2dc1e8397b adding validations for forms which are using ember-forms
When we move all forms / inputs to ember-forms as planed in #15 we could add validations also for them.

Adresses #20
2014-06-04 13:38:49 +02:00
jelhan
455e1cbfe7 remove transition log 2014-06-03 08:58:00 +02:00
jelhan
bcd4724dbe Option: anonymousUser 2014-06-03 08:54:34 +02:00
jelhan
4440112d89 adding normalize.css for improved cross browser rendering 2014-06-01 12:17:05 +02:00
jelhan
428063df71 break URL at any point to fix in box 2014-05-31 12:36:01 +02:00
jelhan
4f9edf0d29 better prevention and error handling for TypeError in this complex function 2014-05-31 12:32:18 +02:00
jelhan
7d94ea8609 force answer default value: true 2014-05-29 04:50:28 +02:00
jelhan
e6da141087 improve usability for screenreaders
There should be also labels before answer input / selections but option label is not provided here yet.
2014-05-29 04:38:51 +02:00
jelhan
abbc1f1118 also just one column for small devices 2014-05-29 04:27:13 +02:00
jelhan
3a09883d5e style user selection by bootstrap 2014-05-29 04:23:59 +02:00
jelhan
f0895f94c4 animated loading route
CSS3 solution provided by cssload.net, a great project of Timur Gafforov, Timur Yerzin and Avraam Makhmudov.

Modified original css to handle fluid width.
2014-05-29 03:48:00 +02:00
jelhan
893954372f in some cases selection.value becomes an empty string or null; seems to depend on browser 2014-05-28 11:37:09 +02:00
jelhan
cbe4a00532 check if answerType is set when saving a poll to prevent running in an error 2014-05-21 19:50:19 +02:00
jelhan
6353f16182 option to force an answer 2014-05-21 19:47:17 +02:00
jelhan
aa83833275 add HSTS header 2014-05-21 14:31:37 +02:00
jelhan
ab1fa3bf9b disable evaluation for answer type free text 2014-05-21 14:21:47 +02:00
jelhan
14c7b0d7d6 typo 2014-05-21 13:51:52 +02:00
jelhan
4258a53ae7 typo 2014-05-21 13:50:16 +02:00
jelhan
acf3a0e5ec check if only default options are defined 2014-05-21 13:49:59 +02:00
jelhan
1a287510c8 init evaluation with zero 2014-05-21 13:36:44 +02:00
jelhan
cb0fa71a9f newUser as first row in table 2014-05-21 13:18:49 +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
a413aee881 Merge branch 'master' of https://github.com/jelhan/croodle.git 2014-05-13 19:15:43 +02:00
jelhan
7d648d4527 Make poll url a real link 2014-05-13 19:15:26 +02:00
jelhan
10937a321c Update README.md 2014-05-13 19:00:16 +02:00
jelhan
8eabaf8208 Merge branch 'master' of https://github.com/jelhan/croodle.git 2014-05-12 18:43:07 +02:00
jelhan
383e36c386 remove unnecessary headlines 2014-05-12 18:42:49 +02:00