{"action":"created","comment":{"url":"https://api.github.com/repos/eregs/regulations-site/pulls/comments/61134633","id":61134633,"diff_hunk":"@@ -62,41 +62,48 @@ <h4 class=\"preview-button\" disabled>Building your PDF...</h4>\n \n       </div>\n \n-      <div class=\"additional-info\">\n-        <h4>Include your information (Optional)</h4>\n+      <form action=\"{% url 'comment_submit' doc_number=doc_number %}\" method=\"post\">\n+        {% csrf_token %}\n \n-        <fieldset>\n-          <legend>Your name</legend>\n-          <span>First and last name of the person submitting the comment.</span>\n-          <input type=\"text\" class=\"your-name\">\n-        </fieldset>\n+        <input type=\"hidden\" name=\"comments\" />\n \n-        <fieldset>\n-          <input type=\"checkbox\" class=\"org-submit\">\n-          <label for=\"org-submit\">I am submitting on behalf of an organization.</label>\n-        </fieldset>\n+        <div class=\"additional-info\">\n+          <h4>Include your information (Optional)</h4>\n \n-        <fieldset>\n-          <input type=\"checkbox\" class=\"agency-submit\">\n-          <label for=\"agency-submit\">I am submitting on behalf of a government agency.</label>\n-        </fieldset>\n+          <fieldset>\n+            <legend>Your name</legend>\n+            <span>First and last name of the person submitting the comment.</span>\n+            <input type=\"text\" class=\"your-name\">\n+          </fieldset>\n \n-      </div>\n+          <fieldset>\n+            <input type=\"checkbox\" class=\"org-submit\">\n+            <label for=\"org-submit\">I am submitting on behalf of an organization.</label>\n+          </fieldset>\n \n-      <div class=\"statement\">\n-        <p>You are filling a document into an official docket.\n-        Any personal information entered on this form may be publicly viewable on the web.\n-        </p>\n+          <fieldset>\n+            <input type=\"checkbox\" class=\"agency-submit\">\n+            <label for=\"agency-submit\">I am submitting on behalf of a government agency.</label>\n+          </fieldset>\n \n-        <input type=\"checkbox\" class=\"agree\">\n-        <label for=\"agree\">\n-          I read and understand the statement above.\n-          <span class=\"required\">(Required to submit.)</span>\n-        </label>\n-      </div>\n+        </div>\n+\n+        <div class=\"statement\">\n+          <p>You are filling a document into an official docket.\n+          Any personal information entered on this form may be publicly viewable on the web.\n+          </p>\n+\n+          <input type=\"checkbox\" class=\"agree\">\n+          <label for=\"agree\">\n+            I read and understand the statement above.\n+            <span class=\"required\">(Required to submit.)</span>\n+          </label>\n+        </div>\n+\n+        <button class=\"submit-button\" disabled>Submit your comment</button>\n+        <div class=\"status\"></div>","path":"regulations/templates/regulations/comment-review-chrome.html","position":69,"original_position":69,"commit_id":"e9c4f5f93f9aed3cd702eaf3d590119b7fd30c5a","original_commit_id":"e9c4f5f93f9aed3cd702eaf3d590119b7fd30c5a","user":{"login":"cmc333333","id":326918,"avatar_url":"https://avatars.githubusercontent.com/u/326918?v=3","gravatar_id":"","url":"https://api.github.com/users/cmc333333","html_url":"https://github.com/cmc333333","followers_url":"https://api.github.com/users/cmc333333/followers","following_url":"https://api.github.com/users/cmc333333/following{/other_user}","gists_url":"https://api.github.com/users/cmc333333/gists{/gist_id}","starred_url":"https://api.github.com/users/cmc333333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmc333333/subscriptions","organizations_url":"https://api.github.com/users/cmc333333/orgs","repos_url":"https://api.github.com/users/cmc333333/repos","events_url":"https://api.github.com/users/cmc333333/events{/privacy}","received_events_url":"https://api.github.com/users/cmc333333/received_events","type":"User","site_admin":false},"body":"Is this div still needed?","created_at":"2016-04-26T18:03:05Z","updated_at":"2016-04-26T18:03:05Z","html_url":"https://github.com/eregs/regulations-site/pull/291#discussion_r61134633","pull_request_url":"https://api.github.com/repos/eregs/regulations-site/pulls/291","_links":{"self":{"href":"https://api.github.com/repos/eregs/regulations-site/pulls/comments/61134633"},"html":{"href":"https://github.com/eregs/regulations-site/pull/291#discussion_r61134633"},"pull_request":{"href":"https://api.github.com/repos/eregs/regulations-site/pulls/291"}}},"pull_request":{"url":"https://api.github.com/repos/eregs/regulations-site/pulls/291","id":67749828,"html_url":"https://github.com/eregs/regulations-site/pull/291","diff_url":"https://github.com/eregs/regulations-site/pull/291.diff","patch_url":"https://github.com/eregs/regulations-site/pull/291.patch","issue_url":"https://api.github.com/repos/eregs/regulations-site/issues/291","number":291,"state":"open","locked":false,"title":"[WIP] Begin comment confirm page.","user":{"login":"jmcarp","id":1633460,"avatar_url":"https://avatars.githubusercontent.com/u/1633460?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcarp","html_url":"https://github.com/jmcarp","followers_url":"https://api.github.com/users/jmcarp/followers","following_url":"https://api.github.com/users/jmcarp/following{/other_user}","gists_url":"https://api.github.com/users/jmcarp/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcarp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcarp/subscriptions","organizations_url":"https://api.github.com/users/jmcarp/orgs","repos_url":"https://api.github.com/users/jmcarp/repos","events_url":"https://api.github.com/users/jmcarp/events{/privacy}","received_events_url":"https://api.github.com/users/jmcarp/received_events","type":"User","site_admin":false},"body":"* Submit comments via synchronous POST\r\n* Add skeleton of comment confirm page\r\n* Add comment confirm view\r\n\r\nThere's plenty left to do here, but the basics are working, and I think the approach should be clear enough to review if folks want to take a look.","created_at":"2016-04-25T16:33:47Z","updated_at":"2016-04-26T18:03:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"242dbb419908163d379280360f8eec5c24db35eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eregs/regulations-site/pulls/291/commits","review_comments_url":"https://api.github.com/repos/eregs/regulations-site/pulls/291/comments","review_comment_url":"https://api.github.com/repos/eregs/regulations-site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eregs/regulations-site/issues/291/comments","statuses_url":"https://api.github.com/repos/eregs/regulations-site/statuses/e9c4f5f93f9aed3cd702eaf3d590119b7fd30c5a","head":{"label":"jmcarp:confirm-page","ref":"confirm-page","sha":"e9c4f5f93f9aed3cd702eaf3d590119b7fd30c5a","user":{"login":"jmcarp","id":1633460,"avatar_url":"https://avatars.githubusercontent.com/u/1633460?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcarp","html_url":"https://github.com/jmcarp","followers_url":"https://api.github.com/users/jmcarp/followers","following_url":"https://api.github.com/users/jmcarp/following{/other_user}","gists_url":"https://api.github.com/users/jmcarp/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcarp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcarp/subscriptions","organizations_url":"https://api.github.com/users/jmcarp/orgs","repos_url":"https://api.github.com/users/jmcarp/repos","events_url":"https://api.github.com/users/jmcarp/events{/privacy}","received_events_url":"https://api.github.com/users/jmcarp/received_events","type":"User","site_admin":false},"repo":{"id":51460162,"name":"regulations-site","full_name":"jmcarp/regulations-site","owner":{"login":"jmcarp","id":1633460,"avatar_url":"https://avatars.githubusercontent.com/u/1633460?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcarp","html_url":"https://github.com/jmcarp","followers_url":"https://api.github.com/users/jmcarp/followers","following_url":"https://api.github.com/users/jmcarp/following{/other_user}","gists_url":"https://api.github.com/users/jmcarp/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcarp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcarp/subscriptions","organizations_url":"https://api.github.com/users/jmcarp/orgs","repos_url":"https://api.github.com/users/jmcarp/repos","events_url":"https://api.github.com/users/jmcarp/events{/privacy}","received_events_url":"https://api.github.com/users/jmcarp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmcarp/regulations-site","description":"All the code to present display regulations on the web. ","fork":true,"url":"https://api.github.com/repos/jmcarp/regulations-site","forks_url":"https://api.github.com/repos/jmcarp/regulations-site/forks","keys_url":"https://api.github.com/repos/jmcarp/regulations-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmcarp/regulations-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmcarp/regulations-site/teams","hooks_url":"https://api.github.com/repos/jmcarp/regulations-site/hooks","issue_events_url":"https://api.github.com/repos/jmcarp/regulations-site/issues/events{/number}","events_url":"https://api.github.com/repos/jmcarp/regulations-site/events","assignees_url":"https://api.github.com/repos/jmcarp/regulations-site/assignees{/user}","branches_url":"https://api.github.com/repos/jmcarp/regulations-site/branches{/branch}","tags_url":"https://api.github.com/repos/jmcarp/regulations-site/tags","blobs_url":"https://api.github.com/repos/jmcarp/regulations-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmcarp/regulations-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmcarp/regulations-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmcarp/regulations-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmcarp/regulations-site/statuses/{sha}","languages_url":"https://api.github.com/repos/jmcarp/regulations-site/languages","stargazers_url":"https://api.github.com/repos/jmcarp/regulations-site/stargazers","contributors_url":"https://api.github.com/repos/jmcarp/regulations-site/contributors","subscribers_url":"https://api.github.com/repos/jmcarp/regulations-site/subscribers","subscription_url":"https://api.github.com/repos/jmcarp/regulations-site/subscription","commits_url":"https://api.github.com/repos/jmcarp/regulations-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmcarp/regulations-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmcarp/regulations-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmcarp/regulations-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmcarp/regulations-site/contents/{+path}","compare_url":"https://api.github.com/repos/jmcarp/regulations-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmcarp/regulations-site/merges","archive_url":"https://api.github.com/repos/jmcarp/regulations-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmcarp/regulations-site/downloads","issues_url":"https://api.github.com/repos/jmcarp/regulations-site/issues{/number}","pulls_url":"https://api.github.com/repos/jmcarp/regulations-site/pulls{/number}","milestones_url":"https://api.github.com/repos/jmcarp/regulations-site/milestones{/number}","notifications_url":"https://api.github.com/repos/jmcarp/regulations-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmcarp/regulations-site/labels{/name}","releases_url":"https://api.github.com/repos/jmcarp/regulations-site/releases{/id}","deployments_url":"https://api.github.com/repos/jmcarp/regulations-site/deployments","created_at":"2016-02-10T18:03:48Z","updated_at":"2016-02-10T18:03:50Z","pushed_at":"2016-04-26T17:43:21Z","git_url":"git://github.com/jmcarp/regulations-site.git","ssh_url":"git@github.com:jmcarp/regulations-site.git","clone_url":"https://github.com/jmcarp/regulations-site.git","svn_url":"https://github.com/jmcarp/regulations-site","homepage":null,"size":15776,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"eregs:master","ref":"master","sha":"56525c72992946e539d8cba8b7128d6c6c2bcc21","user":{"login":"eregs","id":4005681,"avatar_url":"https://avatars.githubusercontent.com/u/4005681?v=3","gravatar_id":"","url":"https://api.github.com/users/eregs","html_url":"https://github.com/eregs","followers_url":"https://api.github.com/users/eregs/followers","following_url":"https://api.github.com/users/eregs/following{/other_user}","gists_url":"https://api.github.com/users/eregs/gists{/gist_id}","starred_url":"https://api.github.com/users/eregs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eregs/subscriptions","organizations_url":"https://api.github.com/users/eregs/orgs","repos_url":"https://api.github.com/users/eregs/repos","events_url":"https://api.github.com/users/eregs/events{/privacy}","received_events_url":"https://api.github.com/users/eregs/received_events","type":"Organization","site_admin":false},"repo":{"id":27612781,"name":"regulations-site","full_name":"eregs/regulations-site","owner":{"login":"eregs","id":4005681,"avatar_url":"https://avatars.githubusercontent.com/u/4005681?v=3","gravatar_id":"","url":"https://api.github.com/users/eregs","html_url":"https://github.com/eregs","followers_url":"https://api.github.com/users/eregs/followers","following_url":"https://api.github.com/users/eregs/following{/other_user}","gists_url":"https://api.github.com/users/eregs/gists{/gist_id}","starred_url":"https://api.github.com/users/eregs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eregs/subscriptions","organizations_url":"https://api.github.com/users/eregs/orgs","repos_url":"https://api.github.com/users/eregs/repos","events_url":"https://api.github.com/users/eregs/events{/privacy}","received_events_url":"https://api.github.com/users/eregs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eregs/regulations-site","description":"Web interface for viewing U.S. federal regulations and other regulatory information","fork":false,"url":"https://api.github.com/repos/eregs/regulations-site","forks_url":"https://api.github.com/repos/eregs/regulations-site/forks","keys_url":"https://api.github.com/repos/eregs/regulations-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eregs/regulations-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eregs/regulations-site/teams","hooks_url":"https://api.github.com/repos/eregs/regulations-site/hooks","issue_events_url":"https://api.github.com/repos/eregs/regulations-site/issues/events{/number}","events_url":"https://api.github.com/repos/eregs/regulations-site/events","assignees_url":"https://api.github.com/repos/eregs/regulations-site/assignees{/user}","branches_url":"https://api.github.com/repos/eregs/regulations-site/branches{/branch}","tags_url":"https://api.github.com/repos/eregs/regulations-site/tags","blobs_url":"https://api.github.com/repos/eregs/regulations-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eregs/regulations-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eregs/regulations-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/eregs/regulations-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eregs/regulations-site/statuses/{sha}","languages_url":"https://api.github.com/repos/eregs/regulations-site/languages","stargazers_url":"https://api.github.com/repos/eregs/regulations-site/stargazers","contributors_url":"https://api.github.com/repos/eregs/regulations-site/contributors","subscribers_url":"https://api.github.com/repos/eregs/regulations-site/subscribers","subscription_url":"https://api.github.com/repos/eregs/regulations-site/subscription","commits_url":"https://api.github.com/repos/eregs/regulations-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/eregs/regulations-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/eregs/regulations-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/eregs/regulations-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/eregs/regulations-site/contents/{+path}","compare_url":"https://api.github.com/repos/eregs/regulations-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eregs/regulations-site/merges","archive_url":"https://api.github.com/repos/eregs/regulations-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eregs/regulations-site/downloads","issues_url":"https://api.github.com/repos/eregs/regulations-site/issues{/number}","pulls_url":"https://api.github.com/repos/eregs/regulations-site/pulls{/number}","milestones_url":"https://api.github.com/repos/eregs/regulations-site/milestones{/number}","notifications_url":"https://api.github.com/repos/eregs/regulations-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eregs/regulations-site/labels{/name}","releases_url":"https://api.github.com/repos/eregs/regulations-site/releases{/id}","deployments_url":"https://api.github.com/repos/eregs/regulations-site/deployments","created_at":"2014-12-05T22:22:40Z","updated_at":"2016-04-05T20:03:13Z","pushed_at":"2016-04-26T17:44:12Z","git_url":"git://github.com/eregs/regulations-site.git","ssh_url":"git@github.com:eregs/regulations-site.git","clone_url":"https://github.com/eregs/regulations-site.git","svn_url":"https://github.com/eregs/regulations-site","homepage":"","size":15981,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":14,"forks":21,"open_issues":14,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eregs/regulations-site/pulls/291"},"html":{"href":"https://github.com/eregs/regulations-site/pull/291"},"issue":{"href":"https://api.github.com/repos/eregs/regulations-site/issues/291"},"comments":{"href":"https://api.github.com/repos/eregs/regulations-site/issues/291/comments"},"review_comments":{"href":"https://api.github.com/repos/eregs/regulations-site/pulls/291/comments"},"review_comment":{"href":"https://api.github.com/repos/eregs/regulations-site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eregs/regulations-site/pulls/291/commits"},"statuses":{"href":"https://api.github.com/repos/eregs/regulations-site/statuses/e9c4f5f93f9aed3cd702eaf3d590119b7fd30c5a"}}}}