{"action":"created","comment":{"url":"https://api.github.com/repos/calblueprint/sjc/pulls/comments/152148941","pull_request_review_id":77966540,"id":152148941,"diff_hunk":"@@ -0,0 +1,107 @@\n+class Register extends React.Component {\n+\n+  constructor(props) {\n+    super();\n+    this.state = {\"success\": null};\n+  }\n+\n+  FieldGroup({ id, label, help, ...props }) {\n+    const { Checkbox, Radio, FormGroup, ControlLabel, FormControl, Button, HelpBlock } = ReactBootstrap;\n+    return (\n+      <FormGroup controlId={id}>\n+        <ControlLabel>{label}</ControlLabel>\n+        <FormControl {...props} />\n+        {help && <HelpBlock>{help}</HelpBlock>}\n+      </FormGroup>\n+    );\n+  }\n+\n+  createUser = (evt) => {\n+    evt.preventDefault()\n+    const inputs = evt.target.getElementsByTagName(\"input\");\n+    let upload = \"\";\n+    if (inputs[4].files.length > 0) {\n+      upload = inputs[4].files[0];\n+    }\n+    const payload = {\n+      \"email\": inputs[0].value,\n+      \"password\": inputs[1].value,\n+      \"first_name\": inputs[2].value,\n+      \"last_name\": inputs[3].value,\n+      \"avatar\": upload\n+    };\n+    Requester.post('/api/users', payload).then((data) => {\n+      // Handle success/failure.\n+      if (data[\"message\"] == \"Attorney successfully created!\") {\n+        this.setState({\"success\": 1});","path":"app/assets/javascripts/components/Register.jsx","position":36,"original_position":36,"commit_id":"28fd55ac690d7bfaad4a9b962a69e382140ac52f","original_commit_id":"28fd55ac690d7bfaad4a9b962a69e382140ac52f","user":{"login":"calvind777","id":11811083,"avatar_url":"https://avatars3.githubusercontent.com/u/11811083?v=4","gravatar_id":"","url":"https://api.github.com/users/calvind777","html_url":"https://github.com/calvind777","followers_url":"https://api.github.com/users/calvind777/followers","following_url":"https://api.github.com/users/calvind777/following{/other_user}","gists_url":"https://api.github.com/users/calvind777/gists{/gist_id}","starred_url":"https://api.github.com/users/calvind777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calvind777/subscriptions","organizations_url":"https://api.github.com/users/calvind777/orgs","repos_url":"https://api.github.com/users/calvind777/repos","events_url":"https://api.github.com/users/calvind777/events{/privacy}","received_events_url":"https://api.github.com/users/calvind777/received_events","type":"User","site_admin":false},"body":"we moved off of toastr cuz it requires jquery","created_at":"2017-11-21T00:22:23Z","updated_at":"2017-11-21T00:22:24Z","html_url":"https://github.com/calblueprint/sjc/pull/25#discussion_r152148941","pull_request_url":"https://api.github.com/repos/calblueprint/sjc/pulls/25","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/calblueprint/sjc/pulls/comments/152148941"},"html":{"href":"https://github.com/calblueprint/sjc/pull/25#discussion_r152148941"},"pull_request":{"href":"https://api.github.com/repos/calblueprint/sjc/pulls/25"}},"in_reply_to_id":152148598},"pull_request":{"url":"https://api.github.com/repos/calblueprint/sjc/pulls/25","id":153470862,"html_url":"https://github.com/calblueprint/sjc/pull/25","diff_url":"https://github.com/calblueprint/sjc/pull/25.diff","patch_url":"https://github.com/calblueprint/sjc/pull/25.patch","issue_url":"https://api.github.com/repos/calblueprint/sjc/issues/25","number":25,"state":"open","locked":false,"title":"Neel/attorney creation","user":{"login":"neelsomani","id":7029855,"avatar_url":"https://avatars1.githubusercontent.com/u/7029855?v=4","gravatar_id":"","url":"https://api.github.com/users/neelsomani","html_url":"https://github.com/neelsomani","followers_url":"https://api.github.com/users/neelsomani/followers","following_url":"https://api.github.com/users/neelsomani/following{/other_user}","gists_url":"https://api.github.com/users/neelsomani/gists{/gist_id}","starred_url":"https://api.github.com/users/neelsomani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neelsomani/subscriptions","organizations_url":"https://api.github.com/users/neelsomani/orgs","repos_url":"https://api.github.com/users/neelsomani/repos","events_url":"https://api.github.com/users/neelsomani/events{/privacy}","received_events_url":"https://api.github.com/users/neelsomani/received_events","type":"User","site_admin":false},"body":"### What does this PR do?\r\nAdded a form to let people create attorney accounts. I also added a gem.\r\n\r\n### Status\r\nREADY\r\n\r\n### Migrations\r\nYES\r\n\r\n### Related PRs\r\nList related PRs against other branches:\r\n\r\n### Description of Testing Done\r\n\r\n### Todos\r\n- [ ] Testing\r\n- [ ] Documentation/`annotate`\r\n\r\n### Screenshots\r\n[Insert images here]\r\n\r\nCC: @calvind777\r\n","created_at":"2017-11-18T22:24:25Z","updated_at":"2017-11-21T00:22:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"576b4eecee9621ed2d731bcb4c941642fe3df128","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/calblueprint/sjc/pulls/25/commits","review_comments_url":"https://api.github.com/repos/calblueprint/sjc/pulls/25/comments","review_comment_url":"https://api.github.com/repos/calblueprint/sjc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/calblueprint/sjc/issues/25/comments","statuses_url":"https://api.github.com/repos/calblueprint/sjc/statuses/28fd55ac690d7bfaad4a9b962a69e382140ac52f","head":{"label":"calblueprint:neel/attorney_creation","ref":"neel/attorney_creation","sha":"28fd55ac690d7bfaad4a9b962a69e382140ac52f","user":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars0.githubusercontent.com/u/2729578?v=4","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"repo":{"id":104590631,"name":"sjc","full_name":"calblueprint/sjc","owner":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars0.githubusercontent.com/u/2729578?v=4","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calblueprint/sjc","description":"Social Justice Collaborative","fork":false,"url":"https://api.github.com/repos/calblueprint/sjc","forks_url":"https://api.github.com/repos/calblueprint/sjc/forks","keys_url":"https://api.github.com/repos/calblueprint/sjc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calblueprint/sjc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calblueprint/sjc/teams","hooks_url":"https://api.github.com/repos/calblueprint/sjc/hooks","issue_events_url":"https://api.github.com/repos/calblueprint/sjc/issues/events{/number}","events_url":"https://api.github.com/repos/calblueprint/sjc/events","assignees_url":"https://api.github.com/repos/calblueprint/sjc/assignees{/user}","branches_url":"https://api.github.com/repos/calblueprint/sjc/branches{/branch}","tags_url":"https://api.github.com/repos/calblueprint/sjc/tags","blobs_url":"https://api.github.com/repos/calblueprint/sjc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calblueprint/sjc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calblueprint/sjc/git/refs{/sha}","trees_url":"https://api.github.com/repos/calblueprint/sjc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calblueprint/sjc/statuses/{sha}","languages_url":"https://api.github.com/repos/calblueprint/sjc/languages","stargazers_url":"https://api.github.com/repos/calblueprint/sjc/stargazers","contributors_url":"https://api.github.com/repos/calblueprint/sjc/contributors","subscribers_url":"https://api.github.com/repos/calblueprint/sjc/subscribers","subscription_url":"https://api.github.com/repos/calblueprint/sjc/subscription","commits_url":"https://api.github.com/repos/calblueprint/sjc/commits{/sha}","git_commits_url":"https://api.github.com/repos/calblueprint/sjc/git/commits{/sha}","comments_url":"https://api.github.com/repos/calblueprint/sjc/comments{/number}","issue_comment_url":"https://api.github.com/repos/calblueprint/sjc/issues/comments{/number}","contents_url":"https://api.github.com/repos/calblueprint/sjc/contents/{+path}","compare_url":"https://api.github.com/repos/calblueprint/sjc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calblueprint/sjc/merges","archive_url":"https://api.github.com/repos/calblueprint/sjc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calblueprint/sjc/downloads","issues_url":"https://api.github.com/repos/calblueprint/sjc/issues{/number}","pulls_url":"https://api.github.com/repos/calblueprint/sjc/pulls{/number}","milestones_url":"https://api.github.com/repos/calblueprint/sjc/milestones{/number}","notifications_url":"https://api.github.com/repos/calblueprint/sjc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calblueprint/sjc/labels{/name}","releases_url":"https://api.github.com/repos/calblueprint/sjc/releases{/id}","deployments_url":"https://api.github.com/repos/calblueprint/sjc/deployments","created_at":"2017-09-23T18:42:19Z","updated_at":"2017-09-23T18:46:08Z","pushed_at":"2017-11-20T22:22:24Z","git_url":"git://github.com/calblueprint/sjc.git","ssh_url":"git@github.com:calblueprint/sjc.git","clone_url":"https://github.com/calblueprint/sjc.git","svn_url":"https://github.com/calblueprint/sjc","homepage":null,"size":577,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"calblueprint:master","ref":"master","sha":"002df1c2b5b94ad69b7233ef3d84730fd8b4de1e","user":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars0.githubusercontent.com/u/2729578?v=4","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"repo":{"id":104590631,"name":"sjc","full_name":"calblueprint/sjc","owner":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars0.githubusercontent.com/u/2729578?v=4","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calblueprint/sjc","description":"Social Justice Collaborative","fork":false,"url":"https://api.github.com/repos/calblueprint/sjc","forks_url":"https://api.github.com/repos/calblueprint/sjc/forks","keys_url":"https://api.github.com/repos/calblueprint/sjc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calblueprint/sjc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calblueprint/sjc/teams","hooks_url":"https://api.github.com/repos/calblueprint/sjc/hooks","issue_events_url":"https://api.github.com/repos/calblueprint/sjc/issues/events{/number}","events_url":"https://api.github.com/repos/calblueprint/sjc/events","assignees_url":"https://api.github.com/repos/calblueprint/sjc/assignees{/user}","branches_url":"https://api.github.com/repos/calblueprint/sjc/branches{/branch}","tags_url":"https://api.github.com/repos/calblueprint/sjc/tags","blobs_url":"https://api.github.com/repos/calblueprint/sjc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calblueprint/sjc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calblueprint/sjc/git/refs{/sha}","trees_url":"https://api.github.com/repos/calblueprint/sjc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calblueprint/sjc/statuses/{sha}","languages_url":"https://api.github.com/repos/calblueprint/sjc/languages","stargazers_url":"https://api.github.com/repos/calblueprint/sjc/stargazers","contributors_url":"https://api.github.com/repos/calblueprint/sjc/contributors","subscribers_url":"https://api.github.com/repos/calblueprint/sjc/subscribers","subscription_url":"https://api.github.com/repos/calblueprint/sjc/subscription","commits_url":"https://api.github.com/repos/calblueprint/sjc/commits{/sha}","git_commits_url":"https://api.github.com/repos/calblueprint/sjc/git/commits{/sha}","comments_url":"https://api.github.com/repos/calblueprint/sjc/comments{/number}","issue_comment_url":"https://api.github.com/repos/calblueprint/sjc/issues/comments{/number}","contents_url":"https://api.github.com/repos/calblueprint/sjc/contents/{+path}","compare_url":"https://api.github.com/repos/calblueprint/sjc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calblueprint/sjc/merges","archive_url":"https://api.github.com/repos/calblueprint/sjc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calblueprint/sjc/downloads","issues_url":"https://api.github.com/repos/calblueprint/sjc/issues{/number}","pulls_url":"https://api.github.com/repos/calblueprint/sjc/pulls{/number}","milestones_url":"https://api.github.com/repos/calblueprint/sjc/milestones{/number}","notifications_url":"https://api.github.com/repos/calblueprint/sjc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calblueprint/sjc/labels{/name}","releases_url":"https://api.github.com/repos/calblueprint/sjc/releases{/id}","deployments_url":"https://api.github.com/repos/calblueprint/sjc/deployments","created_at":"2017-09-23T18:42:19Z","updated_at":"2017-09-23T18:46:08Z","pushed_at":"2017-11-20T22:22:24Z","git_url":"git://github.com/calblueprint/sjc.git","ssh_url":"git@github.com:calblueprint/sjc.git","clone_url":"https://github.com/calblueprint/sjc.git","svn_url":"https://github.com/calblueprint/sjc","homepage":null,"size":577,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/calblueprint/sjc/pulls/25"},"html":{"href":"https://github.com/calblueprint/sjc/pull/25"},"issue":{"href":"https://api.github.com/repos/calblueprint/sjc/issues/25"},"comments":{"href":"https://api.github.com/repos/calblueprint/sjc/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/calblueprint/sjc/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/calblueprint/sjc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/calblueprint/sjc/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/calblueprint/sjc/statuses/28fd55ac690d7bfaad4a9b962a69e382140ac52f"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"calvind777"}}