quby 4.0.3 → 4.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/quby/questionnaires/dsl/questionnaire_builder.rb +8 -0
  3. data/lib/quby/version.rb +1 -1
  4. data/spec/internal/log/test-events.log +617 -0
  5. data/spec/internal/log/test.log +24173 -0
  6. data/spec/internal/tmp/capybara/screenshot_2020-10-27-14-25-21.063.html +207 -0
  7. data/spec/internal/tmp/capybara/screenshot_2020-10-27-14-25-21.063.png +0 -0
  8. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-21-57.510.html +1 -0
  9. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-21-57.510.png +0 -0
  10. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-23-56.006.html +1 -0
  11. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-23-56.006.png +0 -0
  12. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-24-43.842.html +12 -0
  13. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-24-43.842.png +0 -0
  14. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-25-04.631.html +12 -0
  15. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-25-04.631.png +0 -0
  16. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-25-11.690.html +12 -0
  17. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-25-11.690.png +0 -0
  18. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-26-25.111.html +12 -0
  19. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-26-25.111.png +0 -0
  20. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-26-57.026.html +12 -0
  21. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-26-57.026.png +0 -0
  22. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-27-13.545.html +12 -0
  23. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-27-13.545.png +0 -0
  24. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-27-45.475.html +12 -0
  25. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-27-45.475.png +0 -0
  26. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-32-13.907.html +1 -0
  27. data/spec/internal/tmp/capybara/screenshot_2020-10-27-18-32-13.907.png +0 -0
  28. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-16-31.954.html +207 -0
  29. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-16-31.954.png +0 -0
  30. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-16-59.938.html +323 -0
  31. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-16-59.938.png +0 -0
  32. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-08.700.html +323 -0
  33. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-08.700.png +0 -0
  34. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-11.550.html +323 -0
  35. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-11.550.png +0 -0
  36. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-14.413.html +323 -0
  37. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-14.413.png +0 -0
  38. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-17.275.html +323 -0
  39. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-17.275.png +0 -0
  40. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-20.191.html +323 -0
  41. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-20.191.png +0 -0
  42. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-23.042.html +323 -0
  43. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-23.042.png +0 -0
  44. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-25.927.html +323 -0
  45. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-25.927.png +0 -0
  46. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-28.735.html +323 -0
  47. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-17-28.735.png +0 -0
  48. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-40-20.422.html +1 -0
  49. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-40-20.422.png +0 -0
  50. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-40-20.738.html +1 -0
  51. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-40-20.738.png +0 -0
  52. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-41-16.971.html +207 -0
  53. data/spec/internal/tmp/capybara/screenshot_2020-11-04-13-41-16.971.png +0 -0
  54. metadata +98 -2
@@ -0,0 +1,207 @@
1
+ <html class="no-js"><!-- <![endif]--><head>
2
+ <meta content="text/html; charset=utf-8" http-equiv="content-type">
3
+ <meta content="IE=edge" http-equiv="X-UA-Compatible">
4
+ <title>Vragenlijst</title>
5
+ <meta content="width=device-width, initial-scale=1.0 , user-scalable=no" name="viewport">
6
+ <link rel="stylesheet" media="screen, projection" href="/assets/quby/application-613d22026324a8ae8b7c205fd32e0719011164fdd9ca34aad1483b1b74721932.css">
7
+ <link rel="stylesheet" media="print" href="/assets/quby/print-2c9d02886ac8119671ccec3fe13a025efd1086b5355927d242d524ffbb358ab4.css">
8
+
9
+ <script src="/assets/quby/application-ac694f928c966ab7ccbc92caffa6581288a3669caf09163778be2cfaf3e47ba2.js"></script>
10
+ <script src="/assets/quby/disable_keys-72d21d5eab421fd3b0709bf0f5ead2bfe5e824a2060d20ce56e2c3ecf3edf8aa.js"></script>
11
+ <script src="/assets/quby/answers-72b3815aba9fa0fcc608ae7405efb641abedfa5cd62c60a8c824063a3ff22137.js"></script>
12
+ <style>
13
+
14
+ </style>
15
+ <script>
16
+ $(function() {
17
+ if (navigator.userAgent.indexOf("Trident/5") > -1)
18
+ $("html").addClass("lt-ie9")
19
+ });
20
+ </script>
21
+ </head>
22
+ <body>
23
+ <div id="masthead"></div>
24
+ <div id="content">
25
+ <div class="flash">
26
+ </div>
27
+ <script>
28
+ window.panel_validations = {};
29
+ // for setting values of raw_content
30
+ window.extra_question_values = {};
31
+ // for showing validations of raw content
32
+ window.extra_failed_validations = {};
33
+ </script>
34
+ <form class="test paged" autocomplete="off" id="questionnaire-form" action="/quby/questionnaires/test/answers/77f75e2e-b040-4a3a-a6de-f3f55a868c32" accept-charset="UTF-8" data-remote="true" method="post"><input name="utf8" type="hidden" value="✓"><input type="hidden" name="_method" value="put">
35
+ <input type="hidden" name="token" id="token">
36
+ <input type="hidden" name="hmac" id="hmac">
37
+ <input type="hidden" name="timestamp" id="timestamp">
38
+ <input type="hidden" name="return_url" id="return_url">
39
+ <input type="hidden" name="return_token" id="return_token">
40
+ <input type="hidden" name="display_mode" id="display_mode" value="paged">
41
+ <input type="hidden" name="rendered_at" id="rendered_at" value="1603805120">
42
+
43
+ <!-- Begin _panel.html.haml -->
44
+ <fieldset class="panel hidden first last-panel current" id="panel0" style="display: block;">
45
+ <div class="panel-action-links">
46
+
47
+ </div>
48
+ <script>
49
+ panel_validations["panel0"] = {"v_1_a1_val":[{"type":"requires_answer","explanation":null},{"type":"valid_integer","explanation":null}],"v_1_a2_val":[{"type":"requires_answer","explanation":null},{"type":"valid_integer","explanation":null}],"v_1":[{"type":"requires_answer","explanation":null}]};
50
+ </script>
51
+ <script>
52
+ $(function() {
53
+ Quby.currentPanelQuestions = new Quby.Collections.Questions;
54
+ var questions = [{"class":"Quby::Questionnaires::Entities::Questions::RadioQuestion","key":"v_1","title":"\u003cp\u003eA select box\u003c/p\u003e","description":"","type":"radio","unit":null,"size":null,"hidden":null,"displayModes":null,"defaultInvisible":false,"viewSelector":"#item_v_1","parentKey":null,"parentOptionKey":null,"deselectable":true,"presentation":"vertical","as":null,"questionGroup":null,"options":[{"key":"a1","value":1,"description":"\u003cp\u003eJa\u003c/p\u003e","context_free_description":"\u003cp\u003eJa\u003c/p\u003e","questions":[{"class":"Quby::Questionnaires::Entities::Questions::IntegerQuestion","key":"v_1_a1_val","title":"","description":"","type":"integer","unit":null,"size":30,"hidden":null,"displayModes":null,"defaultInvisible":false,"viewSelector":"#item_v_1_a1_val","parentKey":"v_1","parentOptionKey":"a1","deselectable":true,"presentation":"vertical","as":null,"questionGroup":null}],"innerTitle":null,"hidesQuestions":[],"showsQuestions":[],"hidden":false,"placeholder":false,"viewId":"answer_v_1_a1","startChosen":false},{"key":"a2","value":2,"description":"\u003cp\u003eNee\u003c/p\u003e","context_free_description":"\u003cp\u003eNee\u003c/p\u003e","questions":[{"class":"Quby::Questionnaires::Entities::Questions::IntegerQuestion","key":"v_1_a2_val","title":"","description":"","type":"integer","unit":null,"size":30,"hidden":null,"displayModes":null,"defaultInvisible":false,"viewSelector":"#item_v_1_a2_val","parentKey":"v_1","parentOptionKey":"a2","deselectable":true,"presentation":"vertical","as":null,"questionGroup":null}],"innerTitle":null,"hidesQuestions":[],"showsQuestions":[],"hidden":false,"placeholder":false,"viewId":"answer_v_1_a2","startChosen":true}]}];
55
+ var initializer = new Quby.Logic.InitQuestions(questions);
56
+ Quby.currentPanelQuestions = initializer.initializeQuestions();
57
+ Quby.questions.addQuestions(Quby.currentPanelQuestions);
58
+ panelProps = {panelId: 'panel0', questions: Quby.currentPanelQuestions}
59
+ Quby.panels.add(new Quby.Models.Panel(panelProps));
60
+ });
61
+ </script>
62
+
63
+ <!-- .panel_index= panel_counter + 1 -->
64
+ <!-- Begin _item.html.haml -->
65
+ <div class="item radio vertical" id="item_v_1">
66
+ <div class="error requires_answer hidden">Deze vraag moet beantwoord worden.</div>
67
+
68
+ <div class="main" data-for="v_1">
69
+ <label for="answer_v_1"><p>A select box</p></label>
70
+ </div>
71
+
72
+ <div class="description-and-fields">
73
+ <div class="description">
74
+ </div>
75
+ <div class="fields" id="answer_v_1_input">
76
+ <div class="option" for="v_1">
77
+ <div class="radiocheckwrapper">
78
+ <input class="radio deselectable" data-field-key="v_1" type="radio" value="a1" name="answer[v_1]" id="answer_v_1_a1">
79
+ </div>
80
+ <div class="labelwrapper">
81
+ <label for="answer_v_1_a1">
82
+ <span>
83
+ <p>Ja</p>
84
+ </span>
85
+ </label>
86
+ </div>
87
+ <div class="subquestions"><!-- Begin _item.html.haml -->
88
+ <div class="item integer vertical subitem" id="item_v_1_a1_val">
89
+ <div class="error requires_answer hidden">Deze vraag moet beantwoord worden.</div>
90
+ <div class="error valid_integer hidden">Uw antwoord moet een afgerond getal zijn.</div>
91
+
92
+
93
+
94
+ <div class="description-and-fields">
95
+ <div class="description">
96
+ </div>
97
+ <div class="fields" id="answer_v_1_a1_val_input">
98
+ <input autocomplete="off" class="integer subinput" disabled="disabled" size="30" data-show-values="false" data-field-key="v_1_a1_val" type="text" name="answer[v_1_a1_val]" id="answer_v_1_a1_val">
99
+ <span class="unit"></span>
100
+ </div>
101
+ </div>
102
+
103
+ </div>
104
+ <!-- End _item.html.haml -->
105
+ </div>
106
+ </div>
107
+ <div class="option" for="v_1">
108
+ <div class="radiocheckwrapper">
109
+ <input class="radio deselectable" data-field-key="v_1" type="radio" value="a2" checked="checked" name="answer[v_1]" id="answer_v_1_a2">
110
+ </div>
111
+ <div class="labelwrapper">
112
+ <label for="answer_v_1_a2">
113
+ <span>
114
+ <p>Nee</p>
115
+ </span>
116
+ </label>
117
+ </div>
118
+ <div class="subquestions"><!-- Begin _item.html.haml -->
119
+ <div class="item integer vertical subitem" id="item_v_1_a2_val">
120
+ <div class="error requires_answer hidden">Deze vraag moet beantwoord worden.</div>
121
+ <div class="error valid_integer hidden">Uw antwoord moet een afgerond getal zijn.</div>
122
+
123
+
124
+
125
+ <div class="description-and-fields">
126
+ <div class="description">
127
+ </div>
128
+ <div class="fields" id="answer_v_1_a2_val_input">
129
+ <input autocomplete="off" class="integer subinput" size="30" data-show-values="false" data-field-key="v_1_a2_val" type="text" name="answer[v_1_a2_val]" id="answer_v_1_a2_val">
130
+ <span class="unit"></span>
131
+ </div>
132
+ </div>
133
+
134
+ </div>
135
+ <!-- End _item.html.haml -->
136
+ </div>
137
+ </div>
138
+ </div>
139
+ </div>
140
+
141
+ </div>
142
+ <!-- End _item.html.haml -->
143
+
144
+ <div class="buttons">
145
+ <div class="prev" style="visibility: hidden;">
146
+ <input type="submit" name="previous" value="← Terug" id="prevButton0" tabindex="-1" data-disable-with="← Terug">
147
+ </div>
148
+ <div class="abort">
149
+ &nbsp;
150
+ </div>
151
+ <div class="save">
152
+ <input type="submit" name="done" value="Klaar" id="done-button" data-disable-with="Klaar">
153
+ </div>
154
+ <div class="print">
155
+ <a class="print_button" data-url="/quby/questionnaires/test/answers/77f75e2e-b040-4a3a-a6de-f3f55a868c32/pdf" href="#" id="print-button">
156
+ <img src="/assets/quby/pdf-f359df32ce6a12283052679fb5f48e210c5441400f1ddee7edca611fdf722864.gif">
157
+ Download als PDF
158
+ </a>
159
+ <div class="hidden" id="ios-download-instruction">
160
+ Er opent een nieuw tabblad waarop de download wordt gestart.
161
+
162
+ Sla het bestand op in Boeken/iBooks. Keer dan terug naar de browser met de knop '&lt; Safari' geheel linksboven.
163
+
164
+ Ga in de browser terug met de terug knop '&lt;' en druk op 'Klaar' om je invulling vast te leggen.
165
+ </div>
166
+ </div>
167
+
168
+ </div>
169
+ </fieldset>
170
+ <!-- End _panel.html.haml -->
171
+
172
+ </form>
173
+
174
+ <script>
175
+ $(function() {
176
+ Quby.init({
177
+ questionnaire_key: "test",
178
+ answer_value: {"v_1":"a2"},
179
+ flag_definitions: {},
180
+ flag_values: {},
181
+ textvars: {}
182
+ });
183
+
184
+ // Initialize all panels in bulk, activate first panel otherwise
185
+ if(isBulkOrSinglePage) {
186
+ initShowsHides("all_panels");
187
+ } else {
188
+ activatePanel($(".panel:first"), true);
189
+ }
190
+ });
191
+ </script>
192
+
193
+ <div class="hidden" id="modalFrameDialog">
194
+ <iframe id="modalFrame"></iframe>
195
+ </div>
196
+
197
+
198
+ <div class="flash">
199
+ </div>
200
+ </div>
201
+ <div class="x_container"></div>
202
+ <noscript>
203
+ <div id='noscript-warning'>Deze vragenlijst heeft ondersteuning voor JavaScript nodig.</div>
204
+ </noscript>
205
+
206
+
207
+ </body></html>
@@ -0,0 +1 @@
1
+ <html><head></head><body></body></html>
@@ -0,0 +1 @@
1
+ <html><head></head><body></body></html>
@@ -0,0 +1,12 @@
1
+ <html><head><title>Internal Server Error</title></head>
2
+ <body>
3
+ <h1>Internal Server Error</h1>
4
+ undefined method `inner_title' for #&lt;Quby::Questionnaires::Entities::Text:0x00007fb37b23fda8&gt;
5
+ <hr>
6
+ <address>
7
+ WEBrick/1.4.2 (Ruby/2.5.5/2019-03-15) at
8
+ 127.0.0.1:60000
9
+ </address>
10
+
11
+
12
+ </body></html>
@@ -0,0 +1,12 @@
1
+ <html><head><title>Internal Server Error</title></head>
2
+ <body>
3
+ <h1>Internal Server Error</h1>
4
+ undefined method `inner_title' for #&lt;Quby::Questionnaires::Entities::Text:0x00007fbce92cfb70&gt;
5
+ <hr>
6
+ <address>
7
+ WEBrick/1.4.2 (Ruby/2.5.5/2019-03-15) at
8
+ 127.0.0.1:60033
9
+ </address>
10
+
11
+
12
+ </body></html>
@@ -0,0 +1,12 @@
1
+ <html><head><title>Internal Server Error</title></head>
2
+ <body>
3
+ <h1>Internal Server Error</h1>
4
+ undefined method `inner_title' for #&lt;Quby::Questionnaires::Entities::Text:0x00007fb1bcff8348&gt;
5
+ <hr>
6
+ <address>
7
+ WEBrick/1.4.2 (Ruby/2.5.5/2019-03-15) at
8
+ 127.0.0.1:60049
9
+ </address>
10
+
11
+
12
+ </body></html>
@@ -0,0 +1,12 @@
1
+ <html><head><title>Internal Server Error</title></head>
2
+ <body>
3
+ <h1>Internal Server Error</h1>
4
+ undefined method `inner_title' for #&lt;Quby::Questionnaires::Entities::Text:0x00007feee3d64b40&gt;
5
+ <hr>
6
+ <address>
7
+ WEBrick/1.4.2 (Ruby/2.5.5/2019-03-15) at
8
+ 127.0.0.1:60115
9
+ </address>
10
+
11
+
12
+ </body></html>
@@ -0,0 +1,12 @@
1
+ <html><head><title>Internal Server Error</title></head>
2
+ <body>
3
+ <h1>Internal Server Error</h1>
4
+ undefined method `inner_title' for #&lt;Quby::Questionnaires::Entities::Text:0x00007fb9f34fb668&gt;
5
+ <hr>
6
+ <address>
7
+ WEBrick/1.4.2 (Ruby/2.5.5/2019-03-15) at
8
+ 127.0.0.1:60151
9
+ </address>
10
+
11
+
12
+ </body></html>
@@ -0,0 +1,12 @@
1
+ <html><head><title>Internal Server Error</title></head>
2
+ <body>
3
+ <h1>Internal Server Error</h1>
4
+ undefined method `inner_title' for #&lt;Quby::Questionnaires::Entities::Text:0x00007f94066fb5c0&gt;
5
+ <hr>
6
+ <address>
7
+ WEBrick/1.4.2 (Ruby/2.5.5/2019-03-15) at
8
+ 127.0.0.1:60173
9
+ </address>
10
+
11
+
12
+ </body></html>
@@ -0,0 +1,12 @@
1
+ <html><head><title>Internal Server Error</title></head>
2
+ <body>
3
+ <h1>Internal Server Error</h1>
4
+ undefined method `inner_title' for #&lt;Quby::Questionnaires::Entities::Text:0x00007fa86db69f78&gt;
5
+ <hr>
6
+ <address>
7
+ WEBrick/1.4.2 (Ruby/2.5.5/2019-03-15) at
8
+ 127.0.0.1:60213
9
+ </address>
10
+
11
+
12
+ </body></html>
@@ -0,0 +1 @@
1
+ <html><head></head><body></body></html>
@@ -0,0 +1,207 @@
1
+ <html class="no-js"><!-- <![endif]--><head>
2
+ <meta content="text/html; charset=utf-8" http-equiv="content-type">
3
+ <meta content="IE=edge" http-equiv="X-UA-Compatible">
4
+ <title>Vragenlijst</title>
5
+ <meta content="width=device-width, initial-scale=1.0 , user-scalable=no" name="viewport">
6
+ <link rel="stylesheet" media="screen, projection" href="/assets/quby/application-613d22026324a8ae8b7c205fd32e0719011164fdd9ca34aad1483b1b74721932.css">
7
+ <link rel="stylesheet" media="print" href="/assets/quby/print-2c9d02886ac8119671ccec3fe13a025efd1086b5355927d242d524ffbb358ab4.css">
8
+
9
+ <script src="/assets/quby/application-ac694f928c966ab7ccbc92caffa6581288a3669caf09163778be2cfaf3e47ba2.js"></script>
10
+ <script src="/assets/quby/disable_keys-72d21d5eab421fd3b0709bf0f5ead2bfe5e824a2060d20ce56e2c3ecf3edf8aa.js"></script>
11
+ <script src="/assets/quby/answers-72b3815aba9fa0fcc608ae7405efb641abedfa5cd62c60a8c824063a3ff22137.js"></script>
12
+ <style>
13
+
14
+ </style>
15
+ <script>
16
+ $(function() {
17
+ if (navigator.userAgent.indexOf("Trident/5") > -1)
18
+ $("html").addClass("lt-ie9")
19
+ });
20
+ </script>
21
+ </head>
22
+ <body>
23
+ <div id="masthead"></div>
24
+ <div id="content">
25
+ <div class="flash">
26
+ </div>
27
+ <script>
28
+ window.panel_validations = {};
29
+ // for setting values of raw_content
30
+ window.extra_question_values = {};
31
+ // for showing validations of raw content
32
+ window.extra_failed_validations = {};
33
+ </script>
34
+ <form class="test paged" autocomplete="off" id="questionnaire-form" action="/quby/questionnaires/test/answers/c3708384-dd2e-4e11-9368-40bfd88fe451" accept-charset="UTF-8" data-remote="true" method="post"><input name="utf8" type="hidden" value="✓"><input type="hidden" name="_method" value="put">
35
+ <input type="hidden" name="token" id="token">
36
+ <input type="hidden" name="hmac" id="hmac">
37
+ <input type="hidden" name="timestamp" id="timestamp">
38
+ <input type="hidden" name="return_url" id="return_url">
39
+ <input type="hidden" name="return_token" id="return_token">
40
+ <input type="hidden" name="display_mode" id="display_mode" value="paged">
41
+ <input type="hidden" name="rendered_at" id="rendered_at" value="1604495791">
42
+
43
+ <!-- Begin _panel.html.haml -->
44
+ <fieldset class="panel hidden first last-panel current" id="panel0" style="display: block;">
45
+ <div class="panel-action-links">
46
+
47
+ </div>
48
+ <script>
49
+ panel_validations["panel0"] = {"v_1_a1_val":[{"type":"requires_answer","explanation":null},{"type":"valid_integer","explanation":null}],"v_1_a2_val":[{"type":"requires_answer","explanation":null},{"type":"valid_integer","explanation":null}],"v_1":[{"type":"requires_answer","explanation":null}]};
50
+ </script>
51
+ <script>
52
+ $(function() {
53
+ Quby.currentPanelQuestions = new Quby.Collections.Questions;
54
+ var questions = [{"class":"Quby::Questionnaires::Entities::Questions::RadioQuestion","key":"v_1","title":"\u003cp\u003eA select box\u003c/p\u003e","description":"","type":"radio","unit":null,"size":null,"hidden":null,"displayModes":null,"defaultInvisible":false,"viewSelector":"#item_v_1","parentKey":null,"parentOptionKey":null,"deselectable":true,"presentation":"vertical","as":null,"questionGroup":null,"options":[{"key":"a1","value":1,"description":"\u003cp\u003eJa\u003c/p\u003e","context_free_description":"\u003cp\u003eJa\u003c/p\u003e","questions":[{"class":"Quby::Questionnaires::Entities::Questions::IntegerQuestion","key":"v_1_a1_val","title":"","description":"","type":"integer","unit":null,"size":30,"hidden":null,"displayModes":null,"defaultInvisible":false,"viewSelector":"#item_v_1_a1_val","parentKey":"v_1","parentOptionKey":"a1","deselectable":true,"presentation":"vertical","as":null,"questionGroup":null}],"innerTitle":null,"hidesQuestions":[],"showsQuestions":[],"hidden":false,"placeholder":false,"viewId":"answer_v_1_a1","startChosen":false},{"key":"a2","value":2,"description":"\u003cp\u003eNee\u003c/p\u003e","context_free_description":"\u003cp\u003eNee\u003c/p\u003e","questions":[{"class":"Quby::Questionnaires::Entities::Questions::IntegerQuestion","key":"v_1_a2_val","title":"","description":"","type":"integer","unit":null,"size":30,"hidden":null,"displayModes":null,"defaultInvisible":false,"viewSelector":"#item_v_1_a2_val","parentKey":"v_1","parentOptionKey":"a2","deselectable":true,"presentation":"vertical","as":null,"questionGroup":null}],"innerTitle":null,"hidesQuestions":[],"showsQuestions":[],"hidden":false,"placeholder":false,"viewId":"answer_v_1_a2","startChosen":true}]}];
55
+ var initializer = new Quby.Logic.InitQuestions(questions);
56
+ Quby.currentPanelQuestions = initializer.initializeQuestions();
57
+ Quby.questions.addQuestions(Quby.currentPanelQuestions);
58
+ panelProps = {panelId: 'panel0', questions: Quby.currentPanelQuestions}
59
+ Quby.panels.add(new Quby.Models.Panel(panelProps));
60
+ });
61
+ </script>
62
+
63
+ <!-- .panel_index= panel_counter + 1 -->
64
+ <!-- Begin _item.html.haml -->
65
+ <div class="item radio vertical" id="item_v_1">
66
+ <div class="error requires_answer hidden">Deze vraag moet beantwoord worden.</div>
67
+
68
+ <div class="main" data-for="v_1">
69
+ <label for="answer_v_1"><p>A select box</p></label>
70
+ </div>
71
+
72
+ <div class="description-and-fields">
73
+ <div class="description">
74
+ </div>
75
+ <div class="fields" id="answer_v_1_input">
76
+ <div class="option" for="v_1">
77
+ <div class="radiocheckwrapper">
78
+ <input class="radio deselectable" data-field-key="v_1" type="radio" value="a1" name="answer[v_1]" id="answer_v_1_a1">
79
+ </div>
80
+ <div class="labelwrapper">
81
+ <label for="answer_v_1_a1">
82
+ <span>
83
+ <p>Ja</p>
84
+ </span>
85
+ </label>
86
+ </div>
87
+ <div class="subquestions"><!-- Begin _item.html.haml -->
88
+ <div class="item integer vertical subitem" id="item_v_1_a1_val">
89
+ <div class="error requires_answer hidden">Deze vraag moet beantwoord worden.</div>
90
+ <div class="error valid_integer hidden">Uw antwoord moet een afgerond getal zijn.</div>
91
+
92
+
93
+
94
+ <div class="description-and-fields">
95
+ <div class="description">
96
+ </div>
97
+ <div class="fields" id="answer_v_1_a1_val_input">
98
+ <input autocomplete="off" class="integer subinput" disabled="disabled" size="30" data-show-values="false" data-field-key="v_1_a1_val" type="text" name="answer[v_1_a1_val]" id="answer_v_1_a1_val">
99
+ <span class="unit"></span>
100
+ </div>
101
+ </div>
102
+
103
+ </div>
104
+ <!-- End _item.html.haml -->
105
+ </div>
106
+ </div>
107
+ <div class="option" for="v_1">
108
+ <div class="radiocheckwrapper">
109
+ <input class="radio deselectable" data-field-key="v_1" type="radio" value="a2" checked="checked" name="answer[v_1]" id="answer_v_1_a2">
110
+ </div>
111
+ <div class="labelwrapper">
112
+ <label for="answer_v_1_a2">
113
+ <span>
114
+ <p>Nee</p>
115
+ </span>
116
+ </label>
117
+ </div>
118
+ <div class="subquestions"><!-- Begin _item.html.haml -->
119
+ <div class="item integer vertical subitem" id="item_v_1_a2_val">
120
+ <div class="error requires_answer hidden">Deze vraag moet beantwoord worden.</div>
121
+ <div class="error valid_integer hidden">Uw antwoord moet een afgerond getal zijn.</div>
122
+
123
+
124
+
125
+ <div class="description-and-fields">
126
+ <div class="description">
127
+ </div>
128
+ <div class="fields" id="answer_v_1_a2_val_input">
129
+ <input autocomplete="off" class="integer subinput" size="30" data-show-values="false" data-field-key="v_1_a2_val" type="text" name="answer[v_1_a2_val]" id="answer_v_1_a2_val">
130
+ <span class="unit"></span>
131
+ </div>
132
+ </div>
133
+
134
+ </div>
135
+ <!-- End _item.html.haml -->
136
+ </div>
137
+ </div>
138
+ </div>
139
+ </div>
140
+
141
+ </div>
142
+ <!-- End _item.html.haml -->
143
+
144
+ <div class="buttons">
145
+ <div class="prev" style="visibility: hidden;">
146
+ <input type="submit" name="previous" value="← Terug" id="prevButton0" tabindex="-1" data-disable-with="← Terug">
147
+ </div>
148
+ <div class="abort">
149
+ &nbsp;
150
+ </div>
151
+ <div class="save">
152
+ <input type="submit" name="done" value="Klaar" id="done-button" data-disable-with="Klaar">
153
+ </div>
154
+ <div class="print">
155
+ <a class="print_button" data-url="/quby/questionnaires/test/answers/c3708384-dd2e-4e11-9368-40bfd88fe451/pdf" href="#" id="print-button">
156
+ <img src="/assets/quby/pdf-f359df32ce6a12283052679fb5f48e210c5441400f1ddee7edca611fdf722864.gif">
157
+ Download als PDF
158
+ </a>
159
+ <div class="hidden" id="ios-download-instruction">
160
+ Er opent een nieuw tabblad waarop de download wordt gestart.
161
+
162
+ Sla het bestand op in Boeken/iBooks. Keer dan terug naar de browser met de knop '&lt; Safari' geheel linksboven.
163
+
164
+ Ga in de browser terug met de terug knop '&lt;' en druk op 'Klaar' om je invulling vast te leggen.
165
+ </div>
166
+ </div>
167
+
168
+ </div>
169
+ </fieldset>
170
+ <!-- End _panel.html.haml -->
171
+
172
+ </form>
173
+
174
+ <script>
175
+ $(function() {
176
+ Quby.init({
177
+ questionnaire_key: "test",
178
+ answer_value: {"v_1":"a2"},
179
+ flag_definitions: {},
180
+ flag_values: {},
181
+ textvars: {}
182
+ });
183
+
184
+ // Initialize all panels in bulk, activate first panel otherwise
185
+ if(isBulkOrSinglePage) {
186
+ initShowsHides("all_panels");
187
+ } else {
188
+ activatePanel($(".panel:first"), true);
189
+ }
190
+ });
191
+ </script>
192
+
193
+ <div class="hidden" id="modalFrameDialog">
194
+ <iframe id="modalFrame"></iframe>
195
+ </div>
196
+
197
+
198
+ <div class="flash">
199
+ </div>
200
+ </div>
201
+ <div class="x_container"></div>
202
+ <noscript>
203
+ <div id='noscript-warning'>Deze vragenlijst heeft ondersteuning voor JavaScript nodig.</div>
204
+ </noscript>
205
+
206
+
207
+ </body></html>