upgrade_surveyor_gui 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +44 -0
- data/.travis.yml +17 -0
- data/CHANGELOG.md +46 -0
- data/Gemfile +8 -0
- data/LICENSE +21 -0
- data/MIT-LICENSE +20 -0
- data/README.md +244 -0
- data/Rakefile +66 -0
- data/app/controllers/surveyor_controller.rb +89 -0
- data/app/controllers/surveyor_gui/answers_controller.rb +3 -0
- data/app/controllers/surveyor_gui/application_controller.rb +3 -0
- data/app/controllers/surveyor_gui/dependencys_controller.rb +286 -0
- data/app/controllers/surveyor_gui/question_groups_controller.rb +90 -0
- data/app/controllers/surveyor_gui/questions_controller.rb +187 -0
- data/app/controllers/surveyor_gui/reports_controller.rb +339 -0
- data/app/controllers/surveyor_gui/responses_controller.rb +41 -0
- data/app/controllers/surveyor_gui/survey_controller.rb +16 -0
- data/app/controllers/surveyor_gui/survey_sections_controller.rb +80 -0
- data/app/controllers/surveyor_gui/surveyforms_controller.rb +4 -0
- data/app/facades/report_formatter.rb +46 -0
- data/app/facades/report_preview_wrapper.rb +11 -0
- data/app/facades/report_response_generator.rb +147 -0
- data/app/helpers/surveyor_gui/application_helper.rb +2 -0
- data/app/helpers/surveyor_gui/dependencys_helper.rb +5 -0
- data/app/helpers/surveyor_gui/question_groups_helper.rb +3 -0
- data/app/helpers/surveyor_gui/questions_helper.rb +22 -0
- data/app/helpers/surveyor_gui/reports_helper.rb +19 -0
- data/app/helpers/surveyor_gui/surveyforms_helper.rb +164 -0
- data/app/helpers/surveyor_helper.rb +4 -0
- data/app/inputs/currency_input.rb +5 -0
- data/app/inputs/date_picker_input.rb +7 -0
- data/app/inputs/datetime_picker_input.rb +5 -0
- data/app/inputs/percent_input.rb +5 -0
- data/app/inputs/time_picker_input.rb +5 -0
- data/app/mailers/.gitkeep +0 -0
- data/app/models/.gitkeep +0 -0
- data/app/models/answer.rb +4 -0
- data/app/models/column.rb +3 -0
- data/app/models/dependency.rb +4 -0
- data/app/models/dependency_condition.rb +4 -0
- data/app/models/permitted_params_decorator.rb +80 -0
- data/app/models/question.rb +4 -0
- data/app/models/question_group.rb +4 -0
- data/app/models/question_group_tracker.rb +19 -0
- data/app/models/question_type.rb +7 -0
- data/app/models/response.rb +4 -0
- data/app/models/response_set.rb +4 -0
- data/app/models/row.rb +3 -0
- data/app/models/survey.rb +4 -0
- data/app/models/survey_section.rb +4 -0
- data/app/models/surveyform.rb +103 -0
- data/app/uploaders/blob_uploader.rb +48 -0
- data/app/views/layouts/surveyor_gui/application.html.erb +14 -0
- data/app/views/layouts/surveyor_gui/surveyor_gui_blank.html.erb +13 -0
- data/app/views/layouts/surveyor_gui/surveyor_gui_default.html.erb +17 -0
- data/app/views/layouts/surveyor_gui/surveyor_modified.html.erb +14 -0
- data/app/views/partials/_answer.html.haml +33 -0
- data/app/views/partials/_question.html.haml +33 -0
- data/app/views/partials/_question_group.html.haml +73 -0
- data/app/views/partials/_section.html.haml +13 -0
- data/app/views/surveyor/edit.html.haml +21 -0
- data/app/views/surveyor_gui/dependencys/_column.html.erb +1 -0
- data/app/views/surveyor_gui/dependencys/_dependency.html.erb +22 -0
- data/app/views/surveyor_gui/dependencys/_dependency_condition_fields.html.erb +48 -0
- data/app/views/surveyor_gui/dependencys/_form.html.erb +20 -0
- data/app/views/surveyor_gui/dependencys/blank.html.erb +0 -0
- data/app/views/surveyor_gui/dependencys/edit.html.erb +1 -0
- data/app/views/surveyor_gui/dependencys/new.html.erb +1 -0
- data/app/views/surveyor_gui/partials/_url_helpers.html.erb +5 -0
- data/app/views/surveyor_gui/question_groups/_form.html.erb +57 -0
- data/app/views/surveyor_gui/question_groups/_group_inline_field.html.erb +21 -0
- data/app/views/surveyor_gui/question_groups/_group_inline_fields.html.erb +25 -0
- data/app/views/surveyor_gui/question_groups/blank.html.erb +0 -0
- data/app/views/surveyor_gui/question_groups/edit.html.erb +1 -0
- data/app/views/surveyor_gui/question_groups/new.html.erb +1 -0
- data/app/views/surveyor_gui/questions/_answer_fields.html.erb +23 -0
- data/app/views/surveyor_gui/questions/_answer_options.html.erb +28 -0
- data/app/views/surveyor_gui/questions/_form.html.erb +66 -0
- data/app/views/surveyor_gui/questions/_grid_dropdown_columns.html.erb +10 -0
- data/app/views/surveyor_gui/questions/_grid_dropdown_fields.html.erb +42 -0
- data/app/views/surveyor_gui/questions/_grid_fields.html.erb +9 -0
- data/app/views/surveyor_gui/questions/_no_picks.html.erb +29 -0
- data/app/views/surveyor_gui/questions/_pick.html +21 -0
- data/app/views/surveyor_gui/questions/_picks.html.erb +12 -0
- data/app/views/surveyor_gui/questions/blank.html.erb +0 -0
- data/app/views/surveyor_gui/questions/edit.html.erb +1 -0
- data/app/views/surveyor_gui/questions/new.html.erb +1 -0
- data/app/views/surveyor_gui/reports/_graphs.html.haml +21 -0
- data/app/views/surveyor_gui/reports/_grid.html.haml +42 -0
- data/app/views/surveyor_gui/reports/_grid_dropdown.html.haml +56 -0
- data/app/views/surveyor_gui/reports/_repeater.html.haml +27 -0
- data/app/views/surveyor_gui/reports/_show_report.html.haml +33 -0
- data/app/views/surveyor_gui/reports/_single_question.html.haml +70 -0
- data/app/views/surveyor_gui/reports/show.html.erb +14 -0
- data/app/views/surveyor_gui/responses/_grid.html.haml +20 -0
- data/app/views/surveyor_gui/responses/_grid_dropdown.html.haml +20 -0
- data/app/views/surveyor_gui/responses/_repeater.html.haml +22 -0
- data/app/views/surveyor_gui/responses/_survey_results.html.haml +40 -0
- data/app/views/surveyor_gui/responses/index.html.haml +24 -0
- data/app/views/surveyor_gui/responses/show.html.haml +42 -0
- data/app/views/surveyor_gui/shared/_grid_comments.html.haml +10 -0
- data/app/views/surveyor_gui/shared/_new_line.html.haml +2 -0
- data/app/views/surveyor_gui/shared/_pick_comments.html.haml +15 -0
- data/app/views/surveyor_gui/shared/_question_number.html.haml +11 -0
- data/app/views/surveyor_gui/shared/_report_data.html.haml +27 -0
- data/app/views/surveyor_gui/shared/_stars_report_data.html.haml +14 -0
- data/app/views/surveyor_gui/survey_sections/_form.html.erb +13 -0
- data/app/views/surveyor_gui/survey_sections/blank.html.erb +0 -0
- data/app/views/surveyor_gui/survey_sections/edit.html.erb +1 -0
- data/app/views/surveyor_gui/survey_sections/new.html.erb +1 -0
- data/app/views/surveyor_gui/surveyforms/_form.html.erb +50 -0
- data/app/views/surveyor_gui/surveyforms/_question_field.html.erb +148 -0
- data/app/views/surveyor_gui/surveyforms/_question_group.html.erb +116 -0
- data/app/views/surveyor_gui/surveyforms/_question_group_fields.html.erb +3 -0
- data/app/views/surveyor_gui/surveyforms/_question_name_and_number.html.erb +6 -0
- data/app/views/surveyor_gui/surveyforms/_question_section.html.erb +15 -0
- data/app/views/surveyor_gui/surveyforms/_question_wrapper.html.erb +108 -0
- data/app/views/surveyor_gui/surveyforms/_survey_section_fields.html.erb +137 -0
- data/app/views/surveyor_gui/surveyforms/clone_survey.html.erb +13 -0
- data/app/views/surveyor_gui/surveyforms/edit.html.erb +5 -0
- data/app/views/surveyor_gui/surveyforms/index.html.erb +40 -0
- data/app/views/surveyor_gui/surveyforms/new.html.erb +1 -0
- data/app/views/surveyor_gui/surveyforms/show.html.erb +5 -0
- data/config/environment.rb +0 -0
- data/config/routes.rb +71 -0
- data/config.ru +4 -0
- data/db/migrate/20140307204049_add_template_to_surveys.rb +5 -0
- data/db/migrate/20140307235607_add_test_data_to_response_sets.rb +5 -0
- data/db/migrate/20140308171947_add_original_choice_to_answers.rb +5 -0
- data/db/migrate/20140308172118_add_blob_to_responses.rb +5 -0
- data/db/migrate/20140308172417_add_modifiable_to_survey_section.rb +5 -0
- data/db/migrate/20140308174532_add_modifiable_to_question.rb +5 -0
- data/db/migrate/20140308175305_add_dynamically_generate_to_questions.rb +5 -0
- data/db/migrate/20140311032923_add_dummy_blob_to_questions.rb +5 -0
- data/db/migrate/20140311160609_add_dynamic_source_to_questions.rb +5 -0
- data/db/migrate/20140311161714_add_report_code_to_questions.rb +5 -0
- data/db/migrate/20140530181134_add_is_comment_to_questions.rb +5 -0
- data/db/migrate/20140531012006_add_is_comment_to_answers.rb +5 -0
- data/db/migrate/20140531225529_create_rows.rb +9 -0
- data/db/migrate/20140601011151_create_columns.rb +11 -0
- data/db/migrate/20140602030330_add_column_id_to_answers.rb +5 -0
- data/db/migrate/20140603155606_add_column_id_to_responses.rb +5 -0
- data/db/migrate/20140606023527_add_column_id_to_dependency_conditions.rb +5 -0
- data/db/migrate/20140815165307_add_user_id_to_survey.rb +5 -0
- data/lib/assets/.gitkeep +0 -0
- data/lib/assets/images/addicon.png +0 -0
- data/lib/assets/images/datepicker.gif +0 -0
- data/lib/assets/images/delete.gif +0 -0
- data/lib/assets/images/delete.png +0 -0
- data/lib/assets/images/images/border.png +0 -0
- data/lib/assets/images/images/controls.png +0 -0
- data/lib/assets/images/images/loading.gif +0 -0
- data/lib/assets/images/images/loading_background.png +0 -0
- data/lib/assets/images/images/overlay.png +0 -0
- data/lib/assets/images/rails.png +0 -0
- data/lib/assets/images/star.gif +0 -0
- data/lib/assets/javascripts/.gitkeep +0 -0
- data/lib/assets/javascripts/surveyor_gui/jquery.MetaData.js +121 -0
- data/lib/assets/javascripts/surveyor_gui/jquery.blockUI.js +619 -0
- data/lib/assets/javascripts/surveyor_gui/jquery.rating.js +377 -0
- data/lib/assets/javascripts/surveyor_gui/jquery.validate.js +1188 -0
- data/lib/assets/javascripts/surveyor_gui/surveyor_add_ons.js +10 -0
- data/lib/assets/javascripts/surveyor_gui/surveyor_gui.js +1428 -0
- data/lib/assets/stylesheets/.gitkeep +0 -0
- data/lib/assets/stylesheets/surveyor_gui/jquery.rating.css +12 -0
- data/lib/assets/stylesheets/surveyor_gui/surveyor_add_ons.css +3 -0
- data/lib/assets/stylesheets/surveyor_gui/surveyor_gui.sass +652 -0
- data/lib/enumerable_extenders.rb +31 -0
- data/lib/generators/surveyor_gui/install_generator.rb +57 -0
- data/lib/generators/surveyor_gui/templates/app/assets/javascripts/surveyor_add_ons.js +2 -0
- data/lib/generators/surveyor_gui/templates/app/assets/javascripts/surveyor_gui_all.js +24 -0
- data/lib/generators/surveyor_gui/templates/app/assets/stylesheets/surveyor_add_ons.css.sass +1 -0
- data/lib/generators/surveyor_gui/templates/app/assets/stylesheets/surveyor_gui_all.css.sass +8 -0
- data/lib/generators/surveyor_gui/templates/app/helpers/surveyor_helper.rb +4 -0
- data/lib/generators/surveyor_gui/templates/app/models/response_set_user.rb +13 -0
- data/lib/generators/surveyor_gui/templates/app/views/layouts/surveyor_gui/surveyor_gui_default.html.erb +17 -0
- data/lib/generators/surveyor_gui/templates/config/initializers/simple_form.rb +140 -0
- data/lib/generators/surveyor_gui/templates/config/locales/en.yml +5 -0
- data/lib/surveyor_gui/engine.rb +31 -0
- data/lib/surveyor_gui/helpers/surveyor_helper_methods.rb +19 -0
- data/lib/surveyor_gui/models/answer_methods.rb +24 -0
- data/lib/surveyor_gui/models/column_methods.rb +43 -0
- data/lib/surveyor_gui/models/dependency_condition_methods.rb +53 -0
- data/lib/surveyor_gui/models/dependency_methods.rb +83 -0
- data/lib/surveyor_gui/models/question_and_group_shared_methods.rb +11 -0
- data/lib/surveyor_gui/models/question_group_methods.rb +55 -0
- data/lib/surveyor_gui/models/question_methods.rb +435 -0
- data/lib/surveyor_gui/models/question_type_methods.rb +493 -0
- data/lib/surveyor_gui/models/response_methods.rb +71 -0
- data/lib/surveyor_gui/models/response_set_methods.rb +56 -0
- data/lib/surveyor_gui/models/row_methods.rb +11 -0
- data/lib/surveyor_gui/models/survey_methods.rb +32 -0
- data/lib/surveyor_gui/models/survey_section_methods.rb +32 -0
- data/lib/surveyor_gui/surveyforms_controller_methods.rb +258 -0
- data/lib/surveyor_gui/version.rb +3 -0
- data/lib/surveyor_gui.rb +17 -0
- data/lib/tasks/.gitkeep +0 -0
- data/lib/tasks/surveyor_gui_tasks.rake +4 -0
- data/lib/templates/erb/scaffold/_form.html.erb +13 -0
- data/spec/controllers/surveyforms_controller_spec.rb +362 -0
- data/spec/controllers/surveyor_controller_spec.rb +303 -0
- data/spec/factories.rb +181 -0
- data/spec/features/create_survey_spec.rb +417 -0
- data/spec/features/dependencies_spec.rb +65 -0
- data/spec/features/make_and_take_spec.rb +187 -0
- data/spec/features/rearrange_survey_spec.rb +118 -0
- data/spec/features/ui_spec.rb +469 -0
- data/spec/fixtures/REDCapDemoDatabase_DataDictionary.csv +127 -0
- data/spec/fixtures/chinese_survey.rb +14 -0
- data/spec/fixtures/everything.rb +215 -0
- data/spec/fixtures/favorites-ish.rb +22 -0
- data/spec/fixtures/favorites.rb +22 -0
- data/spec/fixtures/feelings.rb +38 -0
- data/spec/fixtures/lifestyle.rb +55 -0
- data/spec/fixtures/numbers.rb +21 -0
- data/spec/fixtures/redcap_new_headers.csv +1 -0
- data/spec/fixtures/redcap_siblings.csv +1 -0
- data/spec/fixtures/redcap_whitespace.csv +1 -0
- data/spec/helpers/formtastic_custom_input_spec.rb +15 -0
- data/spec/helpers/surveyor_helper_spec.rb +116 -0
- data/spec/lib/common_spec.rb +37 -0
- data/spec/lib/parser_spec.rb +393 -0
- data/spec/lib/rake_kitchen_sink.rb +42 -0
- data/spec/lib/redcap_parser_spec.rb +129 -0
- data/spec/lib/unparser_spec.rb +126 -0
- data/spec/models/answer_spec.rb +144 -0
- data/spec/models/dependency_condition_spec.rb +428 -0
- data/spec/models/dependency_spec.rb +90 -0
- data/spec/models/question_group_spec.rb +66 -0
- data/spec/models/question_spec.rb +176 -0
- data/spec/models/response_set_spec.rb +452 -0
- data/spec/models/response_spec.rb +208 -0
- data/spec/models/survey_section_spec.rb +58 -0
- data/spec/models/survey_spec.rb +155 -0
- data/spec/models/surveyor_gui/question_spec.rb +60 -0
- data/spec/models/surveyor_gui/question_type_spec.rb +268 -0
- data/spec/models/validation_condition_spec.rb +98 -0
- data/spec/models/validation_spec.rb +64 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +119 -0
- data/spec/support/scenario_outline_helper.rb +39 -0
- data/spec/support/shared.rb +10 -0
- data/spec/support/surveyforms_creation_helpers.rb +313 -0
- data/spec/support/surveyforms_rearrangement_helpers.rb +170 -0
- data/spec/support/surveyor_api_helpers.rb +15 -0
- data/spec/support/surveyor_ui_helpers.rb +108 -0
- data/spec/support/wait_for_ajax.rb +11 -0
- data/spec/views/questions/edit.html.erb_spec.rb +74 -0
- data/spec/views/surveyforms/edit.html.erb_spec.rb +126 -0
- data/surveyor_gui.gemspec +52 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/log/.gitkeep +0 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/surveyor-gui_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- data/tmp/cache/assets/CF0/DA0/sprockets%2Fd7d5b37686831d37c4dd75e645f5e016 +0 -0
- data/tmp/cache/assets/E25/4C0/sprockets%2Fde2fd9fd11c04a582cdbbe3d84a35ae6 +0 -0
- data/vendor/assets/stylesheets/.gitkeep +0 -0
- data/vendor/assets/stylesheets/custom.sass +5 -0
- data/vendor/plugins/.gitkeep +0 -0
- metadata +600 -0
File without changes
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/* jQuery.Rating Plugin CSS - http://www.fyneworks.com/jquery/star-rating/ */
|
2
|
+
div.rating-cancel,div.star-rating{float:left;width:17px;height:15px;text-indent:-999em;cursor:pointer;display:block;background:transparent;overflow:hidden}
|
3
|
+
div.rating-cancel,div.rating-cancel a{background:url('/assets/delete.gif') no-repeat 0 -16px}
|
4
|
+
div.star-rating,div.star-rating a{background:url('/assets/star.gif') no-repeat 0 0px}
|
5
|
+
div.rating-cancel a,div.star-rating a{display:block;width:16px;height:100%;background-position:0 0px;border:0}
|
6
|
+
div.star-rating-on a{background-position:0 -16px!important}
|
7
|
+
div.star-rating-hover a{background-position:0 -32px}
|
8
|
+
/* Read Only CSS */
|
9
|
+
div.star-rating-readonly a{cursor:default !important}
|
10
|
+
/* Partial Star CSS */
|
11
|
+
div.star-rating{background:transparent!important;overflow:hidden!important}
|
12
|
+
/* END jQuery.Rating Plugin CSS */
|
@@ -0,0 +1,652 @@
|
|
1
|
+
body
|
2
|
+
:margin 0
|
3
|
+
:padding 0
|
4
|
+
:font-size 16px
|
5
|
+
:font-family Arial, Helvetica, sans-serif
|
6
|
+
:text-align left
|
7
|
+
:background-color white !important
|
8
|
+
|
9
|
+
#box
|
10
|
+
:margin 1em auto 1em
|
11
|
+
:padding 1em 0 2em
|
12
|
+
:width 1000px
|
13
|
+
:min-height 35em
|
14
|
+
:background-color #f7fAf7
|
15
|
+
:position relative
|
16
|
+
:overflow hidden
|
17
|
+
|
18
|
+
.boxshadow
|
19
|
+
:-moz-box-shadow 10px 10px 5px #888
|
20
|
+
:-webkit-box-shadow 10px 10px 5px #888
|
21
|
+
:box-shadow 10px 10px 5px #888
|
22
|
+
|
23
|
+
.shadebox
|
24
|
+
:margin 0
|
25
|
+
:padding 0em 1em 1em
|
26
|
+
:background-color #f3f3f3
|
27
|
+
:overflow hidden
|
28
|
+
h1
|
29
|
+
:margin 0 -0.87em .5em
|
30
|
+
:padding 0.25em 1em
|
31
|
+
:color white
|
32
|
+
:text-transform none
|
33
|
+
:text-align left
|
34
|
+
:font-size 18px
|
35
|
+
:font-style normal
|
36
|
+
:font-family Arial, Helvetica, sans-serif
|
37
|
+
:font-weight normal
|
38
|
+
:background-color #5c00a2
|
39
|
+
h2
|
40
|
+
:margin 0 -0 .5em
|
41
|
+
:padding 0.25em 5px 0.25em 1em
|
42
|
+
:text-transform none
|
43
|
+
:text-align left
|
44
|
+
:font-size 160%
|
45
|
+
:font-style normal
|
46
|
+
:font-family Arial, Helvetica, sans-serif
|
47
|
+
:font-weight normal
|
48
|
+
:color white
|
49
|
+
:background #ac90f2
|
50
|
+
.tab-bottom
|
51
|
+
:margin 0 -1em .5em
|
52
|
+
:padding 0 0 1em
|
53
|
+
:background-color #5c00a2
|
54
|
+
:-moz-border-radius-topright 10px
|
55
|
+
:-webkit-border-top-right-radius 10px
|
56
|
+
|
57
|
+
table
|
58
|
+
:border-collapse collapse
|
59
|
+
|
60
|
+
table th
|
61
|
+
:padding 0 0.5em
|
62
|
+
:background gray
|
63
|
+
:color white
|
64
|
+
|
65
|
+
table td
|
66
|
+
:padding 0 0.5em
|
67
|
+
|
68
|
+
.flash.notice, .flash.success, .flash.error
|
69
|
+
:-moz-border-radius-topleft 10px
|
70
|
+
:-moz-border-radius-topright 10px
|
71
|
+
:-moz-border-radius-bottomright 10px
|
72
|
+
:-moz-border-radius-bottomleft 10px
|
73
|
+
|
74
|
+
|
75
|
+
:-webkit-border-top-left-radius 10px
|
76
|
+
:-webkit-border-top-right-radius 10px
|
77
|
+
:-webkit-border-bottom-right-radius 10px
|
78
|
+
:-webkit-border-bottom-left-radius 10px
|
79
|
+
|
80
|
+
:border-top-left-radius 10px
|
81
|
+
:border-top-right-radius 10px
|
82
|
+
:border-bottom-left-radius 10px
|
83
|
+
:border-bottom-right-radius 10px
|
84
|
+
|
85
|
+
:-moz-box-shadow 10px 10px 5px #888
|
86
|
+
:-webkit-box-shadow 10px 10px 5px #888
|
87
|
+
:box-shadow 10px 10px 5px #888
|
88
|
+
:width 400px
|
89
|
+
:border 2px solid black
|
90
|
+
:padding 7px
|
91
|
+
:padding-bottom 12px
|
92
|
+
:margin 2em 1em 1em
|
93
|
+
|
94
|
+
.ui-page .flash.notice, .ui-page .flash.success, .ui-page .flash.error
|
95
|
+
:width auto
|
96
|
+
|
97
|
+
.flash.notice, .flash.successAddicon
|
98
|
+
:background-color #a0ffa0
|
99
|
+
|
100
|
+
.flash.error
|
101
|
+
:background #fbe3e4
|
102
|
+
:color #8a1f11
|
103
|
+
|
104
|
+
.sortable_sections
|
105
|
+
:margin-top 2em
|
106
|
+
.survey_section
|
107
|
+
:margin-bottom 2.5em
|
108
|
+
.surveysection
|
109
|
+
:margin-top 2em
|
110
|
+
:padding-left 1em
|
111
|
+
.questions
|
112
|
+
:margin 1em
|
113
|
+
:padding 1em
|
114
|
+
:font-weight bold
|
115
|
+
|
116
|
+
.column2
|
117
|
+
:float left
|
118
|
+
:margin-right 1em
|
119
|
+
:margin-left 1em
|
120
|
+
:padding-bottom 0
|
121
|
+
|
122
|
+
.column3
|
123
|
+
:float left
|
124
|
+
:margin-right 1em
|
125
|
+
:margin-left 1em
|
126
|
+
:padding-bottom 0
|
127
|
+
:width 98%
|
128
|
+
|
129
|
+
.floatdown
|
130
|
+
:clear left
|
131
|
+
:margin-left 2.7em
|
132
|
+
|
133
|
+
.round
|
134
|
+
:-moz-border-radius-topleft 10px
|
135
|
+
:-moz-border-radius-topright 10px
|
136
|
+
:-moz-border-radius-bottomright 10px
|
137
|
+
:-moz-border-radius-bottomleft 10px
|
138
|
+
|
139
|
+
:-webkit-border-top-left-radius 10px
|
140
|
+
:-webkit-border-top-right-radius 10px
|
141
|
+
:-webkit-border-bottom-right-radius 10px
|
142
|
+
:-webkit-border-bottom-left-radius 10px
|
143
|
+
|
144
|
+
:border-top-left-radius 10px
|
145
|
+
:border-top-right-radius 10px
|
146
|
+
:border-bottom-left-radius 10px
|
147
|
+
:border-bottom-right-radius 10px
|
148
|
+
|
149
|
+
.round-top
|
150
|
+
:-moz-border-radius-topright 10px
|
151
|
+
:-moz-border-radius-topleft 10px
|
152
|
+
|
153
|
+
:-webkit-border-top-right-radius 10px
|
154
|
+
:-webkit-border-top-left-radius 10px
|
155
|
+
|
156
|
+
:border-top-left-radius 10px
|
157
|
+
:border-top-right-radius 10px
|
158
|
+
|
159
|
+
// Simple_form formatting
|
160
|
+
.simple_form
|
161
|
+
:margin-left 10px
|
162
|
+
|
163
|
+
label
|
164
|
+
:float left
|
165
|
+
:width 5em
|
166
|
+
:text-align left
|
167
|
+
:margin 2px 0
|
168
|
+
|
169
|
+
|
170
|
+
div.input
|
171
|
+
:margin-bottom 10px
|
172
|
+
|
173
|
+
|
174
|
+
div.numeric input
|
175
|
+
:text-align right
|
176
|
+
|
177
|
+
div.boolean, input[type='submit']
|
178
|
+
:margin-left 0em
|
179
|
+
|
180
|
+
div.boolean
|
181
|
+
label
|
182
|
+
:float none
|
183
|
+
:margin 0
|
184
|
+
|
185
|
+
.collection_radio_buttons, .collection_check_boxes
|
186
|
+
:margin-right 10px
|
187
|
+
:margin-left 2px
|
188
|
+
|
189
|
+
.sortable_sections
|
190
|
+
:margin-top 2em
|
191
|
+
.survey_section
|
192
|
+
:margin-bottom 3em
|
193
|
+
|
194
|
+
.surveysection
|
195
|
+
:margin-top 2em
|
196
|
+
:padding-left 1em
|
197
|
+
|
198
|
+
.question
|
199
|
+
fieldset.mandatory_questions
|
200
|
+
:border 1px dashed red
|
201
|
+
fieldset.optional_questions
|
202
|
+
:border 1px dashed #CCCCCC
|
203
|
+
.not_modifiable
|
204
|
+
:background-color #F3F3F3
|
205
|
+
.inner_question
|
206
|
+
:position relative
|
207
|
+
|
208
|
+
span.other
|
209
|
+
:float left
|
210
|
+
|
211
|
+
span.other.comments_text
|
212
|
+
:margin-left 3.5em
|
213
|
+
input
|
214
|
+
:margin-left 1em
|
215
|
+
label
|
216
|
+
:margin-top 0
|
217
|
+
|
218
|
+
div.question_group.inline
|
219
|
+
:margin-left 4em
|
220
|
+
div.question_group_header
|
221
|
+
:display none
|
222
|
+
|
223
|
+
.row_name
|
224
|
+
:float left
|
225
|
+
:margin-top 1em
|
226
|
+
|
227
|
+
.question_group_element
|
228
|
+
.prefix, select, input.string
|
229
|
+
:margin-left 1em
|
230
|
+
|
231
|
+
div.input
|
232
|
+
:margin-right 1em
|
233
|
+
:float left
|
234
|
+
|
235
|
+
input.string
|
236
|
+
:width 6em
|
237
|
+
|
238
|
+
span.radio, span.checkbox
|
239
|
+
:width auto
|
240
|
+
:margin 1em 0 0
|
241
|
+
:float left
|
242
|
+
|
243
|
+
div.question_group.default
|
244
|
+
div.slider
|
245
|
+
:margin-left 4.5em
|
246
|
+
:width auto
|
247
|
+
|
248
|
+
div.question_group.grid, div.question_group.dropdown
|
249
|
+
div.question_group_header
|
250
|
+
:display table-header-group
|
251
|
+
|
252
|
+
div.question_group.grid, div.question_group.dropdown
|
253
|
+
:display table
|
254
|
+
:margin-left 3em
|
255
|
+
:margin-top 1em
|
256
|
+
|
257
|
+
span.question_group_heading
|
258
|
+
:display table-cell
|
259
|
+
:text-align center
|
260
|
+
:padding 0 1em
|
261
|
+
|
262
|
+
span.question_group_heading.grid_dropdown
|
263
|
+
:text-align right
|
264
|
+
|
265
|
+
&.repeater
|
266
|
+
div.question_group_element
|
267
|
+
label
|
268
|
+
:display block
|
269
|
+
:text-align center
|
270
|
+
|
271
|
+
div.question_group_element
|
272
|
+
:display table-row
|
273
|
+
:height 1.5em
|
274
|
+
label
|
275
|
+
:display none
|
276
|
+
|
277
|
+
.row_name
|
278
|
+
:display table-cell
|
279
|
+
|
280
|
+
div.radio_buttons, div.check_boxes
|
281
|
+
:margin 0
|
282
|
+
:width auto
|
283
|
+
span.other
|
284
|
+
:margin-left 1em
|
285
|
+
:float left
|
286
|
+
input
|
287
|
+
:width 4em
|
288
|
+
:margin-left 0
|
289
|
+
span.radio , span.checkbox, div.grid_dropdown_cell
|
290
|
+
:display table-cell
|
291
|
+
:margin 0
|
292
|
+
:width 4em
|
293
|
+
:padding 0
|
294
|
+
|
295
|
+
input.radio_buttons, input.check_boxes
|
296
|
+
:margin 0
|
297
|
+
:vertical-align -1px
|
298
|
+
:text-align center
|
299
|
+
:width 100%
|
300
|
+
|
301
|
+
fieldset
|
302
|
+
:border solid 2px
|
303
|
+
:margin 0 2px
|
304
|
+
:padding 5px 10px 12px 10px
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
.questions
|
309
|
+
:margin 1em
|
310
|
+
:padding 1em
|
311
|
+
:font-weight bold
|
312
|
+
|
313
|
+
div.star
|
314
|
+
span.radio
|
315
|
+
label
|
316
|
+
:display none
|
317
|
+
|
318
|
+
div.question_dynamically_generate
|
319
|
+
span.radio , span.checkbox
|
320
|
+
:float left
|
321
|
+
:margin 0
|
322
|
+
:width auto
|
323
|
+
input
|
324
|
+
:margin-right 2px
|
325
|
+
|
326
|
+
.inner_question
|
327
|
+
span.radio , span.checkbox
|
328
|
+
:float left
|
329
|
+
.inner_question
|
330
|
+
.row_name
|
331
|
+
:margin-left 3em
|
332
|
+
span.other
|
333
|
+
:margin-left 1em
|
334
|
+
.question_group_element
|
335
|
+
span.radio , span.checkbox
|
336
|
+
:float none
|
337
|
+
span.radio , span.checkbox
|
338
|
+
:display block
|
339
|
+
:float none
|
340
|
+
:margin 1em 0 0 3em
|
341
|
+
:width 30em
|
342
|
+
|
343
|
+
input.radio_buttons, input.check_boxes
|
344
|
+
:margin-right 1em
|
345
|
+
:vertical-align -3px
|
346
|
+
|
347
|
+
label
|
348
|
+
:margin 0
|
349
|
+
:float none
|
350
|
+
:width auto
|
351
|
+
|
352
|
+
|
353
|
+
div.string, span.prefix, span.suffix, select, textarea, .ui-slider, label, div.date_picker, div.file
|
354
|
+
:margin-top 1em
|
355
|
+
|
356
|
+
input.string
|
357
|
+
:margin-left 4.5em
|
358
|
+
|
359
|
+
.number input.string
|
360
|
+
:margin-left 0
|
361
|
+
|
362
|
+
.ui-slider
|
363
|
+
:margin-bottom 3em
|
364
|
+
|
365
|
+
.ui-slider-label
|
366
|
+
:width 3em
|
367
|
+
|
368
|
+
span.prefix
|
369
|
+
:margin-left 4.1em
|
370
|
+
|
371
|
+
textarea
|
372
|
+
:height 3em
|
373
|
+
:margin-left 5.5em
|
374
|
+
|
375
|
+
.answers_collection textarea
|
376
|
+
:height 4em
|
377
|
+
|
378
|
+
.grid_textbox_hint
|
379
|
+
:font-style italic
|
380
|
+
:font-size small
|
381
|
+
|
382
|
+
select
|
383
|
+
:margin-left 4em
|
384
|
+
|
385
|
+
div
|
386
|
+
.input.radio.star
|
387
|
+
:position relative
|
388
|
+
:left 3em
|
389
|
+
:top 1em
|
390
|
+
|
391
|
+
#answer_choice
|
392
|
+
:display none
|
393
|
+
label.collection_radio
|
394
|
+
:float left
|
395
|
+
:margin 0
|
396
|
+
|
397
|
+
star label.collection_radio
|
398
|
+
:display inline
|
399
|
+
:margin 1 0 0 0em
|
400
|
+
:width auto
|
401
|
+
|
402
|
+
.question_logic_notifier
|
403
|
+
:background #eee2f8
|
404
|
+
:overflow hidden
|
405
|
+
:display block
|
406
|
+
:width 102.3%
|
407
|
+
:font-size 95%
|
408
|
+
:margin -17px 0 1em -17px
|
409
|
+
:padding-left 1em
|
410
|
+
:font-weight normal
|
411
|
+
|
412
|
+
.error
|
413
|
+
:clear left
|
414
|
+
:margin-left 15em
|
415
|
+
:font-size 12px
|
416
|
+
:color #D00
|
417
|
+
:display block
|
418
|
+
|
419
|
+
.errorExplanation
|
420
|
+
li
|
421
|
+
:margin-left 2em
|
422
|
+
|
423
|
+
.hint
|
424
|
+
:clear left
|
425
|
+
:margin-left 13.5em
|
426
|
+
:font-size 12px
|
427
|
+
:color #555
|
428
|
+
:display block
|
429
|
+
:font-style italic
|
430
|
+
|
431
|
+
abbr
|
432
|
+
:border-bottom none
|
433
|
+
|
434
|
+
.fl
|
435
|
+
:float left
|
436
|
+
:margin-right 0
|
437
|
+
|
438
|
+
.fl.notfirst label
|
439
|
+
:width auto
|
440
|
+
:margin-left 1em
|
441
|
+
|
442
|
+
.gravatar
|
443
|
+
:float right
|
444
|
+
:margin 0 0 0 -0.1em
|
445
|
+
|
446
|
+
fieldset.indent
|
447
|
+
:margin-left 10em
|
448
|
+
|
449
|
+
.vertical_collection
|
450
|
+
:margin-left 3em
|
451
|
+
|
452
|
+
.question_prefix, .question_suffix
|
453
|
+
input
|
454
|
+
:width 6em
|
455
|
+
|
456
|
+
.simple_form
|
457
|
+
.dependency_editor
|
458
|
+
label
|
459
|
+
:float left
|
460
|
+
:width 10em
|
461
|
+
.answer_field
|
462
|
+
input
|
463
|
+
:width 10em
|
464
|
+
.column_id
|
465
|
+
:display none
|
466
|
+
table
|
467
|
+
td
|
468
|
+
div
|
469
|
+
:float left
|
470
|
+
a
|
471
|
+
:position relative
|
472
|
+
:top -1.2em
|
473
|
+
|
474
|
+
.simple_form.edit_question, .simple_form.new_question, .simple_form.edit_question_group, .simple_form.new_question_group
|
475
|
+
.question_type
|
476
|
+
:position relative
|
477
|
+
.question_type_grid1
|
478
|
+
:float left
|
479
|
+
:width 20em
|
480
|
+
:word_wrap normal
|
481
|
+
.question_type_grid
|
482
|
+
:float left
|
483
|
+
:width 12em
|
484
|
+
:word_wrap normal
|
485
|
+
:margin-top -.8em
|
486
|
+
div#answer_choice, div#number_questions
|
487
|
+
:clear both
|
488
|
+
input#question_submit, input#question_group_submit
|
489
|
+
:clear both
|
490
|
+
|
491
|
+
.questions
|
492
|
+
:float left
|
493
|
+
.handle
|
494
|
+
:display table-cell
|
495
|
+
:width 16px
|
496
|
+
.ui-icon
|
497
|
+
:float right
|
498
|
+
.omit_text, .other_text, .comments_text
|
499
|
+
margin-top: 0
|
500
|
+
label
|
501
|
+
:width auto
|
502
|
+
:margin-top 0
|
503
|
+
input
|
504
|
+
:margin-left .5em
|
505
|
+
:margin-top -.2em
|
506
|
+
:width 10em
|
507
|
+
.hint
|
508
|
+
:margin-left 11em
|
509
|
+
label.error
|
510
|
+
:float none
|
511
|
+
:margin -1.5em 0 .8em
|
512
|
+
:position relative
|
513
|
+
:top 1.5em
|
514
|
+
:width 10em
|
515
|
+
|
516
|
+
select#question_dropdown_column_count
|
517
|
+
:margin-top .5em
|
518
|
+
:margin-left 68px
|
519
|
+
|
520
|
+
.grid_dropdown_columns
|
521
|
+
span.spacer
|
522
|
+
:width 56px
|
523
|
+
:margin 0
|
524
|
+
:float left
|
525
|
+
div.column-box
|
526
|
+
:float left
|
527
|
+
h3
|
528
|
+
:font-size small
|
529
|
+
:font-weight normal
|
530
|
+
:margin-left 13px
|
531
|
+
:margin-top 1em
|
532
|
+
:margin-bottom -1em
|
533
|
+
div.input
|
534
|
+
:float left
|
535
|
+
input
|
536
|
+
:width 120px
|
537
|
+
:padding 0
|
538
|
+
textarea, input
|
539
|
+
:width 120px
|
540
|
+
:margin-right 1em
|
541
|
+
:margin-left 12px
|
542
|
+
.rows
|
543
|
+
:clear both
|
544
|
+
|
545
|
+
.group_inline
|
546
|
+
:display table
|
547
|
+
|
548
|
+
div.sortable_questions, div.sortable_group_questions
|
549
|
+
display: table-row-group
|
550
|
+
|
551
|
+
.group_inline_header
|
552
|
+
:display table-header-group
|
553
|
+
span
|
554
|
+
:display table-cell
|
555
|
+
:margin-right 1em
|
556
|
+
span.handle
|
557
|
+
:width 16px
|
558
|
+
|
559
|
+
.group_inline_question
|
560
|
+
:display table-row
|
561
|
+
.question
|
562
|
+
:display table-cell
|
563
|
+
input, select
|
564
|
+
:margin-left 0
|
565
|
+
:margin-right 1em
|
566
|
+
input
|
567
|
+
:width 12em
|
568
|
+
select
|
569
|
+
:width 12em
|
570
|
+
.add_group_inline_question
|
571
|
+
:margin-top 12px
|
572
|
+
.group_answers_textbox
|
573
|
+
:display none
|
574
|
+
textarea
|
575
|
+
:margin-left 0
|
576
|
+
:margin-top -3px
|
577
|
+
:vertical-align top
|
578
|
+
:width 20em
|
579
|
+
|
580
|
+
.add_question
|
581
|
+
:display table-row
|
582
|
+
span
|
583
|
+
:display table-cell
|
584
|
+
|
585
|
+
.simple_form.edit_survey_section, .simple_form.new_survey_section
|
586
|
+
input[type="text"]
|
587
|
+
:width 15em
|
588
|
+
|
589
|
+
.simple_form
|
590
|
+
.dependency_star
|
591
|
+
span.radio
|
592
|
+
label
|
593
|
+
:display none
|
594
|
+
// end simple_form formatting
|
595
|
+
|
596
|
+
//button formatting
|
597
|
+
#survey
|
598
|
+
|
599
|
+
.section_top_button_bar
|
600
|
+
:float right
|
601
|
+
:margin-top -3px
|
602
|
+
|
603
|
+
span.question_button_bar
|
604
|
+
:margin-left 1.5em
|
605
|
+
|
606
|
+
.question_buttons_top, .question_buttons_bottom
|
607
|
+
:text-align center
|
608
|
+
|
609
|
+
.button_bar_outer
|
610
|
+
:position relative
|
611
|
+
:text-align center
|
612
|
+
|
613
|
+
.section_button_bar_bottom_inner
|
614
|
+
:position relative
|
615
|
+
:top 25px
|
616
|
+
|
617
|
+
.preview-button
|
618
|
+
:position relative
|
619
|
+
:left 47%
|
620
|
+
:top 0
|
621
|
+
|
622
|
+
//end button formatting
|
623
|
+
|
624
|
+
//arrow formatting (surveyform)
|
625
|
+
.fl.ui-icon-arrowthick-2-n-s
|
626
|
+
:margin 0 0 0 -.5em
|
627
|
+
//
|
628
|
+
|
629
|
+
//appears in views/questions/_no_pick.html.erb
|
630
|
+
table#number_hint
|
631
|
+
:margin-left 2em
|
632
|
+
td, tr
|
633
|
+
:border 1px solid
|
634
|
+
|
635
|
+
.surveyor_gui_report
|
636
|
+
.show_data, .hide_data
|
637
|
+
:margin-top .25em
|
638
|
+
:margin-bottom .5em
|
639
|
+
tr.question_group_header
|
640
|
+
td
|
641
|
+
:font-weight bold
|
642
|
+
span.user_id
|
643
|
+
:display none
|
644
|
+
tr.first_row span.user_id
|
645
|
+
:display block
|
646
|
+
|
647
|
+
span.preview_multiple_choice_answer
|
648
|
+
:font-style italic
|
649
|
+
:font-weight bold
|
650
|
+
|
651
|
+
.q_hidden
|
652
|
+
:display none
|