{"action":"created","comment":{"url":"https://api.github.com/repos/marmelab/react-admin/pulls/comments/31706056","id":31706056,"diff_hunk":"@@ -0,0 +1,69 @@\n+import React from 'react';\n+\n+import EditActions from '../../Actions/EditActions';\n+import { InputField } from '../Field';\n+\n+class FormFields extends React.Component {\n+    buildFields(entry) {\n+        let fields = [];\n+\n+        for (let i in this.props.fields) {\n+            let field = this.props.fields[i];\n+            let fieldName = field.name();\n+            let renderedField;\n+            let value = this.props.values.get(fieldName);\n+            let className = 'show-value react-admin-field-' + field.name() + ' ' +\n+                (field.getCssClasses(entry) || 'col-sm-10 col-md-8 col-lg-7');\n+\n+            switch (field.type()) {\n+                case 'string':\n+                    renderedField = <InputField type={'text'} name={fieldName} value={value} updateField={this.props.updateField} />;","path":"app/Component/Form/FormFields.js","position":20,"original_position":20,"commit_id":"9286678dc4108f71255306cdb4fb8b2e7bd454aa","original_commit_id":"45188b5e40f0f48fe19e45c989c8115e411c20ce","user":{"login":"fzaninotto","id":99944,"avatar_url":"https://avatars.githubusercontent.com/u/99944?v=3","gravatar_id":"","url":"https://api.github.com/users/fzaninotto","html_url":"https://github.com/fzaninotto","followers_url":"https://api.github.com/users/fzaninotto/followers","following_url":"https://api.github.com/users/fzaninotto/following{/other_user}","gists_url":"https://api.github.com/users/fzaninotto/gists{/gist_id}","starred_url":"https://api.github.com/users/fzaninotto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fzaninotto/subscriptions","organizations_url":"https://api.github.com/users/fzaninotto/orgs","repos_url":"https://api.github.com/users/fzaninotto/repos","events_url":"https://api.github.com/users/fzaninotto/events{/privacy}","received_events_url":"https://api.github.com/users/fzaninotto/received_events","type":"User","site_admin":false},"body":"Gotcha","created_at":"2015-06-04T09:37:19Z","updated_at":"2015-06-04T09:37:19Z","html_url":"https://github.com/marmelab/react-admin/pull/30#discussion_r31706056","pull_request_url":"https://api.github.com/repos/marmelab/react-admin/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/marmelab/react-admin/pulls/comments/31706056"},"html":{"href":"https://github.com/marmelab/react-admin/pull/30#discussion_r31706056"},"pull_request":{"href":"https://api.github.com/repos/marmelab/react-admin/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/marmelab/react-admin/pulls/30","id":36916530,"html_url":"https://github.com/marmelab/react-admin/pull/30","diff_url":"https://github.com/marmelab/react-admin/pull/30.diff","patch_url":"https://github.com/marmelab/react-admin/pull/30.patch","issue_url":"https://api.github.com/repos/marmelab/react-admin/issues/30","number":30,"state":"open","locked":false,"title":"[WIP] Implement edit view","user":{"login":"jeromemacias","id":582446,"avatar_url":"https://avatars.githubusercontent.com/u/582446?v=3","gravatar_id":"","url":"https://api.github.com/users/jeromemacias","html_url":"https://github.com/jeromemacias","followers_url":"https://api.github.com/users/jeromemacias/followers","following_url":"https://api.github.com/users/jeromemacias/following{/other_user}","gists_url":"https://api.github.com/users/jeromemacias/gists{/gist_id}","starred_url":"https://api.github.com/users/jeromemacias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeromemacias/subscriptions","organizations_url":"https://api.github.com/users/jeromemacias/orgs","repos_url":"https://api.github.com/users/jeromemacias/repos","events_url":"https://api.github.com/users/jeromemacias/events{/privacy}","received_events_url":"https://api.github.com/users/jeromemacias/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-06-04T09:26:39Z","updated_at":"2015-06-04T09:37:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2912758367d687e37c27bb3b980b2266f7919eca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/marmelab/react-admin/pulls/30/commits","review_comments_url":"https://api.github.com/repos/marmelab/react-admin/pulls/30/comments","review_comment_url":"https://api.github.com/repos/marmelab/react-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marmelab/react-admin/issues/30/comments","statuses_url":"https://api.github.com/repos/marmelab/react-admin/statuses/9286678dc4108f71255306cdb4fb8b2e7bd454aa","head":{"label":"marmelab:implement_edit","ref":"implement_edit","sha":"9286678dc4108f71255306cdb4fb8b2e7bd454aa","user":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"repo":{"id":32005368,"name":"react-admin","full_name":"marmelab/react-admin","owner":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/marmelab/react-admin","description":"Add a ReactJS admin GUI to any RESTful API. Based on ng-admin.","fork":false,"url":"https://api.github.com/repos/marmelab/react-admin","forks_url":"https://api.github.com/repos/marmelab/react-admin/forks","keys_url":"https://api.github.com/repos/marmelab/react-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marmelab/react-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marmelab/react-admin/teams","hooks_url":"https://api.github.com/repos/marmelab/react-admin/hooks","issue_events_url":"https://api.github.com/repos/marmelab/react-admin/issues/events{/number}","events_url":"https://api.github.com/repos/marmelab/react-admin/events","assignees_url":"https://api.github.com/repos/marmelab/react-admin/assignees{/user}","branches_url":"https://api.github.com/repos/marmelab/react-admin/branches{/branch}","tags_url":"https://api.github.com/repos/marmelab/react-admin/tags","blobs_url":"https://api.github.com/repos/marmelab/react-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marmelab/react-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marmelab/react-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/marmelab/react-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marmelab/react-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/marmelab/react-admin/languages","stargazers_url":"https://api.github.com/repos/marmelab/react-admin/stargazers","contributors_url":"https://api.github.com/repos/marmelab/react-admin/contributors","subscribers_url":"https://api.github.com/repos/marmelab/react-admin/subscribers","subscription_url":"https://api.github.com/repos/marmelab/react-admin/subscription","commits_url":"https://api.github.com/repos/marmelab/react-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/marmelab/react-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/marmelab/react-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/marmelab/react-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/marmelab/react-admin/contents/{+path}","compare_url":"https://api.github.com/repos/marmelab/react-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marmelab/react-admin/merges","archive_url":"https://api.github.com/repos/marmelab/react-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marmelab/react-admin/downloads","issues_url":"https://api.github.com/repos/marmelab/react-admin/issues{/number}","pulls_url":"https://api.github.com/repos/marmelab/react-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/marmelab/react-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/marmelab/react-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marmelab/react-admin/labels{/name}","releases_url":"https://api.github.com/repos/marmelab/react-admin/releases{/id}","created_at":"2015-03-11T08:00:53Z","updated_at":"2015-06-03T04:48:18Z","pushed_at":"2015-06-04T09:34:15Z","git_url":"git://github.com/marmelab/react-admin.git","ssh_url":"git@github.com:marmelab/react-admin.git","clone_url":"https://github.com/marmelab/react-admin.git","svn_url":"https://github.com/marmelab/react-admin","homepage":"","size":1279,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":18,"default_branch":"master"}},"base":{"label":"marmelab:master","ref":"master","sha":"c97a7c67c5d6ca22b80ecf502f3c9f22b285c823","user":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"repo":{"id":32005368,"name":"react-admin","full_name":"marmelab/react-admin","owner":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/marmelab/react-admin","description":"Add a ReactJS admin GUI to any RESTful API. Based on ng-admin.","fork":false,"url":"https://api.github.com/repos/marmelab/react-admin","forks_url":"https://api.github.com/repos/marmelab/react-admin/forks","keys_url":"https://api.github.com/repos/marmelab/react-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marmelab/react-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marmelab/react-admin/teams","hooks_url":"https://api.github.com/repos/marmelab/react-admin/hooks","issue_events_url":"https://api.github.com/repos/marmelab/react-admin/issues/events{/number}","events_url":"https://api.github.com/repos/marmelab/react-admin/events","assignees_url":"https://api.github.com/repos/marmelab/react-admin/assignees{/user}","branches_url":"https://api.github.com/repos/marmelab/react-admin/branches{/branch}","tags_url":"https://api.github.com/repos/marmelab/react-admin/tags","blobs_url":"https://api.github.com/repos/marmelab/react-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marmelab/react-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marmelab/react-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/marmelab/react-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marmelab/react-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/marmelab/react-admin/languages","stargazers_url":"https://api.github.com/repos/marmelab/react-admin/stargazers","contributors_url":"https://api.github.com/repos/marmelab/react-admin/contributors","subscribers_url":"https://api.github.com/repos/marmelab/react-admin/subscribers","subscription_url":"https://api.github.com/repos/marmelab/react-admin/subscription","commits_url":"https://api.github.com/repos/marmelab/react-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/marmelab/react-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/marmelab/react-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/marmelab/react-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/marmelab/react-admin/contents/{+path}","compare_url":"https://api.github.com/repos/marmelab/react-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marmelab/react-admin/merges","archive_url":"https://api.github.com/repos/marmelab/react-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marmelab/react-admin/downloads","issues_url":"https://api.github.com/repos/marmelab/react-admin/issues{/number}","pulls_url":"https://api.github.com/repos/marmelab/react-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/marmelab/react-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/marmelab/react-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marmelab/react-admin/labels{/name}","releases_url":"https://api.github.com/repos/marmelab/react-admin/releases{/id}","created_at":"2015-03-11T08:00:53Z","updated_at":"2015-06-03T04:48:18Z","pushed_at":"2015-06-04T09:34:15Z","git_url":"git://github.com/marmelab/react-admin.git","ssh_url":"git@github.com:marmelab/react-admin.git","clone_url":"https://github.com/marmelab/react-admin.git","svn_url":"https://github.com/marmelab/react-admin","homepage":"","size":1279,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marmelab/react-admin/pulls/30"},"html":{"href":"https://github.com/marmelab/react-admin/pull/30"},"issue":{"href":"https://api.github.com/repos/marmelab/react-admin/issues/30"},"comments":{"href":"https://api.github.com/repos/marmelab/react-admin/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/marmelab/react-admin/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/marmelab/react-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marmelab/react-admin/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/marmelab/react-admin/statuses/9286678dc4108f71255306cdb4fb8b2e7bd454aa"}}}}