{"action":"created","comment":{"url":"https://api.github.com/repos/calblueprint/worldreader/pulls/comments/25127402","id":25127402,"diff_hunk":"@@ -240,6 +257,111 @@ var PartnerDisplay = React.createClass({\n   }\n });\n \n+var AddPartnerDisplay = React.createClass({\n+  componentDidMount: function () {\n+    $('.selectpicker').selectpicker();\n+  },\n+  createUser: function() {\n+    var success = this.props.success;\n+    var user = {\n+      email: $('#newUserEmail').val(),\n+      password: $('#newUserPassword').val(),\n+      password_confirmation: $('#newUserConfirmPassword').val(),\n+      organization: $('#newUserOrganization').val(),\n+      levels: $('#newUserLevels').val(),\n+      languages: $('#newUserLanguages').val(),\n+      countries: $('#newUserCountries').val()\n+    };\n+    $.ajax({\n+      type: \"POST\",\n+      url: \"/users\",\n+      data: {\n+        authenticity_token: gon.auth_token,\n+        user: user\n+      },\n+      success: function (data) {\n+        toastr.success(data.message);\n+        success(data.user);\n+      },\n+      error: function(xhr, status, err) {\n+        var errors = xhr.responseJSON.errors;\n+        for (var error of errors) {","path":"app/assets/javascripts/react_components/admin_dashboard/admin_dashboard.js.jsx","position":105,"original_position":105,"commit_id":"63eb78d41d231845da3ca8c6a10ad6b0a2fc76f0","original_commit_id":"63eb78d41d231845da3ca8c6a10ad6b0a2fc76f0","user":{"login":"varunrau","id":1448222,"avatar_url":"https://avatars.githubusercontent.com/u/1448222?v=3","gravatar_id":"","url":"https://api.github.com/users/varunrau","html_url":"https://github.com/varunrau","followers_url":"https://api.github.com/users/varunrau/followers","following_url":"https://api.github.com/users/varunrau/following{/other_user}","gists_url":"https://api.github.com/users/varunrau/gists{/gist_id}","starred_url":"https://api.github.com/users/varunrau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varunrau/subscriptions","organizations_url":"https://api.github.com/users/varunrau/orgs","repos_url":"https://api.github.com/users/varunrau/repos","events_url":"https://api.github.com/users/varunrau/events{/privacy}","received_events_url":"https://api.github.com/users/varunrau/received_events","type":"User","site_admin":false},"body":"`for (var error : errors) {`","created_at":"2015-02-22T00:16:38Z","updated_at":"2015-02-22T00:16:38Z","html_url":"https://github.com/calblueprint/worldreader/pull/200#discussion_r25127402","pull_request_url":"https://api.github.com/repos/calblueprint/worldreader/pulls/200","_links":{"self":{"href":"https://api.github.com/repos/calblueprint/worldreader/pulls/comments/25127402"},"html":{"href":"https://github.com/calblueprint/worldreader/pull/200#discussion_r25127402"},"pull_request":{"href":"https://api.github.com/repos/calblueprint/worldreader/pulls/200"}}},"pull_request":{"url":"https://api.github.com/repos/calblueprint/worldreader/pulls/200","id":29228864,"html_url":"https://github.com/calblueprint/worldreader/pull/200","diff_url":"https://github.com/calblueprint/worldreader/pull/200.diff","patch_url":"https://github.com/calblueprint/worldreader/pull/200.patch","issue_url":"https://api.github.com/repos/calblueprint/worldreader/issues/200","number":200,"state":"closed","locked":false,"title":"Nikhil/create users","user":{"login":"nnarayen","id":1946683,"avatar_url":"https://avatars.githubusercontent.com/u/1946683?v=3","gravatar_id":"","url":"https://api.github.com/users/nnarayen","html_url":"https://github.com/nnarayen","followers_url":"https://api.github.com/users/nnarayen/followers","following_url":"https://api.github.com/users/nnarayen/following{/other_user}","gists_url":"https://api.github.com/users/nnarayen/gists{/gist_id}","starred_url":"https://api.github.com/users/nnarayen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnarayen/subscriptions","organizations_url":"https://api.github.com/users/nnarayen/orgs","repos_url":"https://api.github.com/users/nnarayen/repos","events_url":"https://api.github.com/users/nnarayen/events{/privacy}","received_events_url":"https://api.github.com/users/nnarayen/received_events","type":"User","site_admin":false},"body":"Moving create_users page to main dashboard page\r\nAdded 3 join tables for users with countries, languages, and levels\r\nAfter save validation to make sure all fields aren't blank","created_at":"2015-02-12T23:59:09Z","updated_at":"2015-02-22T00:16:38Z","closed_at":"2015-02-18T01:10:37Z","merged_at":"2015-02-18T01:10:37Z","merge_commit_sha":"ad126c47e200337c77cb5f7dc6d0378264759212","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/calblueprint/worldreader/pulls/200/commits","review_comments_url":"https://api.github.com/repos/calblueprint/worldreader/pulls/200/comments","review_comment_url":"https://api.github.com/repos/calblueprint/worldreader/pulls/comments/{number}","comments_url":"https://api.github.com/repos/calblueprint/worldreader/issues/200/comments","statuses_url":"https://api.github.com/repos/calblueprint/worldreader/statuses/63eb78d41d231845da3ca8c6a10ad6b0a2fc76f0","head":{"label":"calblueprint:nikhil/create_users","ref":"nikhil/create_users","sha":"63eb78d41d231845da3ca8c6a10ad6b0a2fc76f0","user":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","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":23782466,"name":"worldreader","full_name":"calblueprint/worldreader","owner":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","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/worldreader","description":"Delivering relevant e-books to students in sub-Saharan Africa","fork":false,"url":"https://api.github.com/repos/calblueprint/worldreader","forks_url":"https://api.github.com/repos/calblueprint/worldreader/forks","keys_url":"https://api.github.com/repos/calblueprint/worldreader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calblueprint/worldreader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calblueprint/worldreader/teams","hooks_url":"https://api.github.com/repos/calblueprint/worldreader/hooks","issue_events_url":"https://api.github.com/repos/calblueprint/worldreader/issues/events{/number}","events_url":"https://api.github.com/repos/calblueprint/worldreader/events","assignees_url":"https://api.github.com/repos/calblueprint/worldreader/assignees{/user}","branches_url":"https://api.github.com/repos/calblueprint/worldreader/branches{/branch}","tags_url":"https://api.github.com/repos/calblueprint/worldreader/tags","blobs_url":"https://api.github.com/repos/calblueprint/worldreader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calblueprint/worldreader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calblueprint/worldreader/git/refs{/sha}","trees_url":"https://api.github.com/repos/calblueprint/worldreader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calblueprint/worldreader/statuses/{sha}","languages_url":"https://api.github.com/repos/calblueprint/worldreader/languages","stargazers_url":"https://api.github.com/repos/calblueprint/worldreader/stargazers","contributors_url":"https://api.github.com/repos/calblueprint/worldreader/contributors","subscribers_url":"https://api.github.com/repos/calblueprint/worldreader/subscribers","subscription_url":"https://api.github.com/repos/calblueprint/worldreader/subscription","commits_url":"https://api.github.com/repos/calblueprint/worldreader/commits{/sha}","git_commits_url":"https://api.github.com/repos/calblueprint/worldreader/git/commits{/sha}","comments_url":"https://api.github.com/repos/calblueprint/worldreader/comments{/number}","issue_comment_url":"https://api.github.com/repos/calblueprint/worldreader/issues/comments{/number}","contents_url":"https://api.github.com/repos/calblueprint/worldreader/contents/{+path}","compare_url":"https://api.github.com/repos/calblueprint/worldreader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calblueprint/worldreader/merges","archive_url":"https://api.github.com/repos/calblueprint/worldreader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calblueprint/worldreader/downloads","issues_url":"https://api.github.com/repos/calblueprint/worldreader/issues{/number}","pulls_url":"https://api.github.com/repos/calblueprint/worldreader/pulls{/number}","milestones_url":"https://api.github.com/repos/calblueprint/worldreader/milestones{/number}","notifications_url":"https://api.github.com/repos/calblueprint/worldreader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calblueprint/worldreader/labels{/name}","releases_url":"https://api.github.com/repos/calblueprint/worldreader/releases{/id}","created_at":"2014-09-08T07:26:29Z","updated_at":"2015-02-21T03:48:39Z","pushed_at":"2015-02-21T03:48:42Z","git_url":"git://github.com/calblueprint/worldreader.git","ssh_url":"git@github.com:calblueprint/worldreader.git","clone_url":"https://github.com/calblueprint/worldreader.git","svn_url":"https://github.com/calblueprint/worldreader","homepage":"","size":2252,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":36,"forks":0,"open_issues":36,"watchers":5,"default_branch":"master"}},"base":{"label":"calblueprint:master","ref":"master","sha":"8743ea70ef42a0a17f9df2322a1b3ce75bc2ea31","user":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","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":23782466,"name":"worldreader","full_name":"calblueprint/worldreader","owner":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","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/worldreader","description":"Delivering relevant e-books to students in sub-Saharan Africa","fork":false,"url":"https://api.github.com/repos/calblueprint/worldreader","forks_url":"https://api.github.com/repos/calblueprint/worldreader/forks","keys_url":"https://api.github.com/repos/calblueprint/worldreader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calblueprint/worldreader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calblueprint/worldreader/teams","hooks_url":"https://api.github.com/repos/calblueprint/worldreader/hooks","issue_events_url":"https://api.github.com/repos/calblueprint/worldreader/issues/events{/number}","events_url":"https://api.github.com/repos/calblueprint/worldreader/events","assignees_url":"https://api.github.com/repos/calblueprint/worldreader/assignees{/user}","branches_url":"https://api.github.com/repos/calblueprint/worldreader/branches{/branch}","tags_url":"https://api.github.com/repos/calblueprint/worldreader/tags","blobs_url":"https://api.github.com/repos/calblueprint/worldreader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calblueprint/worldreader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calblueprint/worldreader/git/refs{/sha}","trees_url":"https://api.github.com/repos/calblueprint/worldreader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calblueprint/worldreader/statuses/{sha}","languages_url":"https://api.github.com/repos/calblueprint/worldreader/languages","stargazers_url":"https://api.github.com/repos/calblueprint/worldreader/stargazers","contributors_url":"https://api.github.com/repos/calblueprint/worldreader/contributors","subscribers_url":"https://api.github.com/repos/calblueprint/worldreader/subscribers","subscription_url":"https://api.github.com/repos/calblueprint/worldreader/subscription","commits_url":"https://api.github.com/repos/calblueprint/worldreader/commits{/sha}","git_commits_url":"https://api.github.com/repos/calblueprint/worldreader/git/commits{/sha}","comments_url":"https://api.github.com/repos/calblueprint/worldreader/comments{/number}","issue_comment_url":"https://api.github.com/repos/calblueprint/worldreader/issues/comments{/number}","contents_url":"https://api.github.com/repos/calblueprint/worldreader/contents/{+path}","compare_url":"https://api.github.com/repos/calblueprint/worldreader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calblueprint/worldreader/merges","archive_url":"https://api.github.com/repos/calblueprint/worldreader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calblueprint/worldreader/downloads","issues_url":"https://api.github.com/repos/calblueprint/worldreader/issues{/number}","pulls_url":"https://api.github.com/repos/calblueprint/worldreader/pulls{/number}","milestones_url":"https://api.github.com/repos/calblueprint/worldreader/milestones{/number}","notifications_url":"https://api.github.com/repos/calblueprint/worldreader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calblueprint/worldreader/labels{/name}","releases_url":"https://api.github.com/repos/calblueprint/worldreader/releases{/id}","created_at":"2014-09-08T07:26:29Z","updated_at":"2015-02-21T03:48:39Z","pushed_at":"2015-02-21T03:48:42Z","git_url":"git://github.com/calblueprint/worldreader.git","ssh_url":"git@github.com:calblueprint/worldreader.git","clone_url":"https://github.com/calblueprint/worldreader.git","svn_url":"https://github.com/calblueprint/worldreader","homepage":"","size":2252,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":36,"forks":0,"open_issues":36,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/calblueprint/worldreader/pulls/200"},"html":{"href":"https://github.com/calblueprint/worldreader/pull/200"},"issue":{"href":"https://api.github.com/repos/calblueprint/worldreader/issues/200"},"comments":{"href":"https://api.github.com/repos/calblueprint/worldreader/issues/200/comments"},"review_comments":{"href":"https://api.github.com/repos/calblueprint/worldreader/pulls/200/comments"},"review_comment":{"href":"https://api.github.com/repos/calblueprint/worldreader/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/calblueprint/worldreader/pulls/200/commits"},"statuses":{"href":"https://api.github.com/repos/calblueprint/worldreader/statuses/63eb78d41d231845da3ca8c6a10ad6b0a2fc76f0"}}}}