{"action":"created","comment":{"url":"https://api.github.com/repos/thecartercenter/elmo/pulls/comments/26151684","id":26151684,"diff_hunk":"@@ -101,29 +101,16 @@\n       </model>\n     </h:head>\n     <h:body>\n-\n       <%# Regular question form controls. %>\n-      <% @form.visible_questionings.each do |qing| %>\n-        <% qing.subquestions.each do |subq| %>\n-          <%= odk_input_tag(qing, subq) do %>\n-            <label ref=\"jr:itext('<%= subq.odk_code %>:label')\"/>\n-\n-            <%# Commcare doesn't like hints. %>\n-            <% unless @style == 'commcare' %>\n-              <hint ref=\"jr:itext('<%= subq.odk_code %>:hint')\"/>\n-            <% end %>\n-\n-            <%# ODK wants the first-level options here for select questions, so we check if subq is first_rank. %>\n-            <%# Options from other levels go in itemsets.csv. %>\n-            <% if subq.has_options? && subq.first_rank? %>\n-              <% subq.option_set.children.each do |node| %>\n-                <item>\n-                  <label ref=\"jr:itext('on<%= node.id %>')\"/>\n-                  <value>on<%= node.id %></value>\n-                </item>\n-              <% end %>\n-            <% end  %>\n-          <% end %>\n+      <% @form.grouped_questionings.each do |qing| %>\n+        <% if qing.is_a?(Array) %>\n+          <%= render('odk_group', qing: qing, style: @style, options: {}) %>\n+        <% else %>\n+          <%= render('odk_questioning',\n+            qing: qing,\n+            style: @style,\n+            grid_mode: false,\n+            options: {}) unless qing.hidden %>","path":"app/views/forms/show.xml.erb","position":35,"original_position":35,"commit_id":"3cd7a7c53dc147afbd4127287fe8595a353cd42f","original_commit_id":"3cd7a7c53dc147afbd4127287fe8595a353cd42f","user":{"login":"hooverlunch","id":702320,"avatar_url":"https://avatars.githubusercontent.com/u/702320?v=3","gravatar_id":"","url":"https://api.github.com/users/hooverlunch","html_url":"https://github.com/hooverlunch","followers_url":"https://api.github.com/users/hooverlunch/followers","following_url":"https://api.github.com/users/hooverlunch/following{/other_user}","gists_url":"https://api.github.com/users/hooverlunch/gists{/gist_id}","starred_url":"https://api.github.com/users/hooverlunch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hooverlunch/subscriptions","organizations_url":"https://api.github.com/users/hooverlunch/orgs","repos_url":"https://api.github.com/users/hooverlunch/repos","events_url":"https://api.github.com/users/hooverlunch/events{/privacy}","received_events_url":"https://api.github.com/users/hooverlunch/received_events","type":"User","site_admin":false},"body":"I think given the above, these options hashes on 107 and 113 can go away?","created_at":"2015-03-10T18:35:18Z","updated_at":"2015-03-10T18:35:18Z","html_url":"https://github.com/thecartercenter/elmo/pull/47#discussion_r26151684","pull_request_url":"https://api.github.com/repos/thecartercenter/elmo/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/thecartercenter/elmo/pulls/comments/26151684"},"html":{"href":"https://github.com/thecartercenter/elmo/pull/47#discussion_r26151684"},"pull_request":{"href":"https://api.github.com/repos/thecartercenter/elmo/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/thecartercenter/elmo/pulls/47","id":30390841,"html_url":"https://github.com/thecartercenter/elmo/pull/47","diff_url":"https://github.com/thecartercenter/elmo/pull/47.diff","patch_url":"https://github.com/thecartercenter/elmo/pull/47.patch","issue_url":"https://api.github.com/repos/thecartercenter/elmo/issues/47","number":47,"state":"open","locked":false,"title":"1917 odk multiple questions","user":{"login":"mkuklis","id":63545,"avatar_url":"https://avatars.githubusercontent.com/u/63545?v=3","gravatar_id":"","url":"https://api.github.com/users/mkuklis","html_url":"https://github.com/mkuklis","followers_url":"https://api.github.com/users/mkuklis/followers","following_url":"https://api.github.com/users/mkuklis/following{/other_user}","gists_url":"https://api.github.com/users/mkuklis/gists{/gist_id}","starred_url":"https://api.github.com/users/mkuklis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkuklis/subscriptions","organizations_url":"https://api.github.com/users/mkuklis/orgs","repos_url":"https://api.github.com/users/mkuklis/repos","events_url":"https://api.github.com/users/mkuklis/events{/privacy}","received_events_url":"https://api.github.com/users/mkuklis/received_events","type":"User","site_admin":false},"body":"http://redmine.sassafras.coop/issues/1917","created_at":"2015-03-03T16:51:02Z","updated_at":"2015-03-10T18:35:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5d31a907ff149bcc704fd9fdbcb5112962e1697","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thecartercenter/elmo/pulls/47/commits","review_comments_url":"https://api.github.com/repos/thecartercenter/elmo/pulls/47/comments","review_comment_url":"https://api.github.com/repos/thecartercenter/elmo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thecartercenter/elmo/issues/47/comments","statuses_url":"https://api.github.com/repos/thecartercenter/elmo/statuses/3cd7a7c53dc147afbd4127287fe8595a353cd42f","head":{"label":"thecartercenter:1917_ODK_multiple_questions","ref":"1917_ODK_multiple_questions","sha":"3cd7a7c53dc147afbd4127287fe8595a353cd42f","user":{"login":"thecartercenter","id":5075178,"avatar_url":"https://avatars.githubusercontent.com/u/5075178?v=3","gravatar_id":"","url":"https://api.github.com/users/thecartercenter","html_url":"https://github.com/thecartercenter","followers_url":"https://api.github.com/users/thecartercenter/followers","following_url":"https://api.github.com/users/thecartercenter/following{/other_user}","gists_url":"https://api.github.com/users/thecartercenter/gists{/gist_id}","starred_url":"https://api.github.com/users/thecartercenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thecartercenter/subscriptions","organizations_url":"https://api.github.com/users/thecartercenter/orgs","repos_url":"https://api.github.com/users/thecartercenter/repos","events_url":"https://api.github.com/users/thecartercenter/events{/privacy}","received_events_url":"https://api.github.com/users/thecartercenter/received_events","type":"Organization","site_admin":false},"repo":{"id":11615188,"name":"elmo","full_name":"thecartercenter/elmo","owner":{"login":"thecartercenter","id":5075178,"avatar_url":"https://avatars.githubusercontent.com/u/5075178?v=3","gravatar_id":"","url":"https://api.github.com/users/thecartercenter","html_url":"https://github.com/thecartercenter","followers_url":"https://api.github.com/users/thecartercenter/followers","following_url":"https://api.github.com/users/thecartercenter/following{/other_user}","gists_url":"https://api.github.com/users/thecartercenter/gists{/gist_id}","starred_url":"https://api.github.com/users/thecartercenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thecartercenter/subscriptions","organizations_url":"https://api.github.com/users/thecartercenter/orgs","repos_url":"https://api.github.com/users/thecartercenter/repos","events_url":"https://api.github.com/users/thecartercenter/events{/privacy}","received_events_url":"https://api.github.com/users/thecartercenter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thecartercenter/elmo","description":"","fork":false,"url":"https://api.github.com/repos/thecartercenter/elmo","forks_url":"https://api.github.com/repos/thecartercenter/elmo/forks","keys_url":"https://api.github.com/repos/thecartercenter/elmo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thecartercenter/elmo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thecartercenter/elmo/teams","hooks_url":"https://api.github.com/repos/thecartercenter/elmo/hooks","issue_events_url":"https://api.github.com/repos/thecartercenter/elmo/issues/events{/number}","events_url":"https://api.github.com/repos/thecartercenter/elmo/events","assignees_url":"https://api.github.com/repos/thecartercenter/elmo/assignees{/user}","branches_url":"https://api.github.com/repos/thecartercenter/elmo/branches{/branch}","tags_url":"https://api.github.com/repos/thecartercenter/elmo/tags","blobs_url":"https://api.github.com/repos/thecartercenter/elmo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thecartercenter/elmo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thecartercenter/elmo/git/refs{/sha}","trees_url":"https://api.github.com/repos/thecartercenter/elmo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thecartercenter/elmo/statuses/{sha}","languages_url":"https://api.github.com/repos/thecartercenter/elmo/languages","stargazers_url":"https://api.github.com/repos/thecartercenter/elmo/stargazers","contributors_url":"https://api.github.com/repos/thecartercenter/elmo/contributors","subscribers_url":"https://api.github.com/repos/thecartercenter/elmo/subscribers","subscription_url":"https://api.github.com/repos/thecartercenter/elmo/subscription","commits_url":"https://api.github.com/repos/thecartercenter/elmo/commits{/sha}","git_commits_url":"https://api.github.com/repos/thecartercenter/elmo/git/commits{/sha}","comments_url":"https://api.github.com/repos/thecartercenter/elmo/comments{/number}","issue_comment_url":"https://api.github.com/repos/thecartercenter/elmo/issues/comments{/number}","contents_url":"https://api.github.com/repos/thecartercenter/elmo/contents/{+path}","compare_url":"https://api.github.com/repos/thecartercenter/elmo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thecartercenter/elmo/merges","archive_url":"https://api.github.com/repos/thecartercenter/elmo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thecartercenter/elmo/downloads","issues_url":"https://api.github.com/repos/thecartercenter/elmo/issues{/number}","pulls_url":"https://api.github.com/repos/thecartercenter/elmo/pulls{/number}","milestones_url":"https://api.github.com/repos/thecartercenter/elmo/milestones{/number}","notifications_url":"https://api.github.com/repos/thecartercenter/elmo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thecartercenter/elmo/labels{/name}","releases_url":"https://api.github.com/repos/thecartercenter/elmo/releases{/id}","created_at":"2013-07-23T17:56:04Z","updated_at":"2015-03-06T16:53:05Z","pushed_at":"2015-03-10T16:15:42Z","git_url":"git://github.com/thecartercenter/elmo.git","ssh_url":"git@github.com:thecartercenter/elmo.git","clone_url":"https://github.com/thecartercenter/elmo.git","svn_url":"https://github.com/thecartercenter/elmo","homepage":null,"size":36579,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":4,"forks":11,"open_issues":4,"watchers":10,"default_branch":"master"}},"base":{"label":"thecartercenter:develop","ref":"develop","sha":"216d907c89f7a94409feab3b17defecce0e76e61","user":{"login":"thecartercenter","id":5075178,"avatar_url":"https://avatars.githubusercontent.com/u/5075178?v=3","gravatar_id":"","url":"https://api.github.com/users/thecartercenter","html_url":"https://github.com/thecartercenter","followers_url":"https://api.github.com/users/thecartercenter/followers","following_url":"https://api.github.com/users/thecartercenter/following{/other_user}","gists_url":"https://api.github.com/users/thecartercenter/gists{/gist_id}","starred_url":"https://api.github.com/users/thecartercenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thecartercenter/subscriptions","organizations_url":"https://api.github.com/users/thecartercenter/orgs","repos_url":"https://api.github.com/users/thecartercenter/repos","events_url":"https://api.github.com/users/thecartercenter/events{/privacy}","received_events_url":"https://api.github.com/users/thecartercenter/received_events","type":"Organization","site_admin":false},"repo":{"id":11615188,"name":"elmo","full_name":"thecartercenter/elmo","owner":{"login":"thecartercenter","id":5075178,"avatar_url":"https://avatars.githubusercontent.com/u/5075178?v=3","gravatar_id":"","url":"https://api.github.com/users/thecartercenter","html_url":"https://github.com/thecartercenter","followers_url":"https://api.github.com/users/thecartercenter/followers","following_url":"https://api.github.com/users/thecartercenter/following{/other_user}","gists_url":"https://api.github.com/users/thecartercenter/gists{/gist_id}","starred_url":"https://api.github.com/users/thecartercenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thecartercenter/subscriptions","organizations_url":"https://api.github.com/users/thecartercenter/orgs","repos_url":"https://api.github.com/users/thecartercenter/repos","events_url":"https://api.github.com/users/thecartercenter/events{/privacy}","received_events_url":"https://api.github.com/users/thecartercenter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thecartercenter/elmo","description":"","fork":false,"url":"https://api.github.com/repos/thecartercenter/elmo","forks_url":"https://api.github.com/repos/thecartercenter/elmo/forks","keys_url":"https://api.github.com/repos/thecartercenter/elmo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thecartercenter/elmo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thecartercenter/elmo/teams","hooks_url":"https://api.github.com/repos/thecartercenter/elmo/hooks","issue_events_url":"https://api.github.com/repos/thecartercenter/elmo/issues/events{/number}","events_url":"https://api.github.com/repos/thecartercenter/elmo/events","assignees_url":"https://api.github.com/repos/thecartercenter/elmo/assignees{/user}","branches_url":"https://api.github.com/repos/thecartercenter/elmo/branches{/branch}","tags_url":"https://api.github.com/repos/thecartercenter/elmo/tags","blobs_url":"https://api.github.com/repos/thecartercenter/elmo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thecartercenter/elmo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thecartercenter/elmo/git/refs{/sha}","trees_url":"https://api.github.com/repos/thecartercenter/elmo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thecartercenter/elmo/statuses/{sha}","languages_url":"https://api.github.com/repos/thecartercenter/elmo/languages","stargazers_url":"https://api.github.com/repos/thecartercenter/elmo/stargazers","contributors_url":"https://api.github.com/repos/thecartercenter/elmo/contributors","subscribers_url":"https://api.github.com/repos/thecartercenter/elmo/subscribers","subscription_url":"https://api.github.com/repos/thecartercenter/elmo/subscription","commits_url":"https://api.github.com/repos/thecartercenter/elmo/commits{/sha}","git_commits_url":"https://api.github.com/repos/thecartercenter/elmo/git/commits{/sha}","comments_url":"https://api.github.com/repos/thecartercenter/elmo/comments{/number}","issue_comment_url":"https://api.github.com/repos/thecartercenter/elmo/issues/comments{/number}","contents_url":"https://api.github.com/repos/thecartercenter/elmo/contents/{+path}","compare_url":"https://api.github.com/repos/thecartercenter/elmo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thecartercenter/elmo/merges","archive_url":"https://api.github.com/repos/thecartercenter/elmo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thecartercenter/elmo/downloads","issues_url":"https://api.github.com/repos/thecartercenter/elmo/issues{/number}","pulls_url":"https://api.github.com/repos/thecartercenter/elmo/pulls{/number}","milestones_url":"https://api.github.com/repos/thecartercenter/elmo/milestones{/number}","notifications_url":"https://api.github.com/repos/thecartercenter/elmo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thecartercenter/elmo/labels{/name}","releases_url":"https://api.github.com/repos/thecartercenter/elmo/releases{/id}","created_at":"2013-07-23T17:56:04Z","updated_at":"2015-03-06T16:53:05Z","pushed_at":"2015-03-10T16:15:42Z","git_url":"git://github.com/thecartercenter/elmo.git","ssh_url":"git@github.com:thecartercenter/elmo.git","clone_url":"https://github.com/thecartercenter/elmo.git","svn_url":"https://github.com/thecartercenter/elmo","homepage":null,"size":36579,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":4,"forks":11,"open_issues":4,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thecartercenter/elmo/pulls/47"},"html":{"href":"https://github.com/thecartercenter/elmo/pull/47"},"issue":{"href":"https://api.github.com/repos/thecartercenter/elmo/issues/47"},"comments":{"href":"https://api.github.com/repos/thecartercenter/elmo/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/thecartercenter/elmo/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/thecartercenter/elmo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thecartercenter/elmo/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/thecartercenter/elmo/statuses/3cd7a7c53dc147afbd4127287fe8595a353cd42f"}}}}