GitHub PullRequestReviewCommentEvent at 2014-10-31 17:49:43
Repository: votr
Actor: TomiBelan
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/fmfi-svt/votr/pulls/comments/19682010","id":19682010,"diff_hunk":"@@ -0,0 +1,173 @@\n+/** @jsx React.DOM */\n+\n+(function () {\n+\n+\n+Votr.RegisterOsobColumns = [\n+  [\"Plne meno\", 'plne_meno', Votr.sortAs.personName],\n+  [\"Email\", 'email']\n+];\n+Votr.RegisterOsobColumns.defaultOrder = 'a0';\n+\n+Votr.RegisterOsobForm = React.createClass({\n+  getInitialState: function () {\n+    var query = this.props.query;\n+    return {\n+      meno: query.meno,\n+      priezvisko: query.priezvisko,\n+      absolvent: query.absolvent,\n+      student: query.student,\n+      zamestnanec: query.zamestnanec,\n+      akademickyRok: query.akademickyRok || Votr.currentAcademicYear(),\n+      fakulta: query.fakulta,\n+      skratka_sp: query.skratka_sp,\n+      uchadzaci: query.uchadzaci == 'true' ? true : false,\n+      prvy_rocnik: query.prvy_rocnik == 'true' ? true : false,\n+      druhy_rocnik: query.druhy_rocnik == 'true' ? true : false,\n+      treti_rocnik: query.treti_rocnik == 'true' ? true : false,\n+      stvrty_rocnik: query.stvrty_rocnik == 'true' ? true : false,\n+      piaty_rocnik: query.piaty_rocnik == 'true' ? true : false,\n+      siesty_rocnik: query.siesty_rocnik == 'true' ? true : false,\n+      siedmy_rocnik: query.siedmy_rocnik == 'true' ? true : false,\n+      osmy_rocnik: query.osmy_rocnik == 'true' ? true : false,\n+      absolventi: query.absolventi == 'true' ? true : false\n+    };\n+  },\n+\n+  handleFieldChange: function (event) {\n+    this.setState(_.zipObject([[event.target.name, event.target.value]]));\n+  },\n+\n+  handleCheckBoxChange: function (event) {\n+    this.setState(_.zipObject([[event.target.name, event.target.checked]]));\n+  },\n+\n+  handleSubmit: function(event) {\n+    event.preventDefault();\n+    Votr.navigate(_.assign({ action: 'registerOsob' }, this.state));\n+  },\n+\n+  renderTextInput: function(label, name, focus) {\n+    return <Votr.FormItem label={label}>\n+      <input className=\"form-item-control\" name={name} autoFocus={focus} value={this.state[name]} type=\"text\" onChange={this.handleFieldChange} />\n+    </Votr.FormItem>;\n+  },\n+\n+  renderSelect: function(label, name, items, cache) {\n+    return <Votr.FormItem label={label}>\n+      {items ?\n+        <select className=\"form-item-control\" name={name} value={this.state[name]} onChange={this.handleFieldChange}>\n+          {items.map((item) =>\n+            <option key={item.id} value={item.id}>{item.title}</option>\n+          )}\n+        </select> : <Votr.Loading requests={cache.missing} />}\n+    </Votr.FormItem>;\n+  },\n+\n+  renderCheckbox: function(label, name) {\n+    return <Votr.FormItem label={label}>\n+      <input className=\"form-item-control\" name={name} checked={this.state[name]} type=\"checkbox\" onChange={this.handleCheckBoxChange} />","path":"votrfront/static/src/RegisterOsob.js","position":69,"original_position":69,"commit_id":"095d74b53fd412ce91a08ab6d6f3da0ff9ca810e","original_commit_id":"095d74b53fd412ce91a08ab6d6f3da0ff9ca810e","user":{"login":"TomiBelan","id":1022278,"avatar_url":"https://avatars.githubusercontent.com/u/1022278?v=2","gravatar_id":"","url":"https://api.github.com/users/TomiBelan","html_url":"https://github.com/TomiBelan","followers_url":"https://api.github.com/users/TomiBelan/followers","following_url":"https://api.github.com/users/TomiBelan/following{/other_user}","gists_url":"https://api.github.com/users/TomiBelan/gists{/gist_id}","starred_url":"https://api.github.com/users/TomiBelan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomiBelan/subscriptions","organizations_url":"https://api.github.com/users/TomiBelan/orgs","repos_url":"https://api.github.com/users/TomiBelan/repos","events_url":"https://api.github.com/users/TomiBelan/events{/privacy}","received_events_url":"https://api.github.com/users/TomiBelan/received_events","type":"User","site_admin":false},"body":"Radsej FormItemu daj `label=\"\"` ale za `<input>` daj label (a nizsie daj aby zacinali medzerou a nekoncili dvojbodkou). Idea je aby checkbox bol vlavo od textu, ale stale zarovno s text inputmi.","created_at":"2014-10-31T17:49:43Z","updated_at":"2014-10-31T17:49:43Z","html_url":"https://github.com/fmfi-svt/votr/pull/49#discussion_r19682010","pull_request_url":"https://api.github.com/repos/fmfi-svt/votr/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/fmfi-svt/votr/pulls/comments/19682010"},"html":{"href":"https://github.com/fmfi-svt/votr/pull/49#discussion_r19682010"},"pull_request":{"href":"https://api.github.com/repos/fmfi-svt/votr/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/fmfi-svt/votr/pulls/49","id":23657119,"html_url":"https://github.com/fmfi-svt/votr/pull/49","diff_url":"https://github.com/fmfi-svt/votr/pull/49.diff","patch_url":"https://github.com/fmfi-svt/votr/pull/49.patch","issue_url":"https://api.github.com/repos/fmfi-svt/votr/issues/49","number":49,"state":"open","locked":false,"title":"Dusan/register osob","user":{"login":"ddeath","id":2537379,"avatar_url":"https://avatars.githubusercontent.com/u/2537379?v=2","gravatar_id":"","url":"https://api.github.com/users/ddeath","html_url":"https://github.com/ddeath","followers_url":"https://api.github.com/users/ddeath/followers","following_url":"https://api.github.com/users/ddeath/following{/other_user}","gists_url":"https://api.github.com/users/ddeath/gists{/gist_id}","starred_url":"https://api.github.com/users/ddeath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddeath/subscriptions","organizations_url":"https://api.github.com/users/ddeath/orgs","repos_url":"https://api.github.com/users/ddeath/repos","events_url":"https://api.github.com/users/ddeath/events{/privacy}","received_events_url":"https://api.github.com/users/ddeath/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-10-31T05:28:50Z","updated_at":"2014-10-31T17:49:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d0938076050a2ad6501f5e4f61aab851c851136","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fmfi-svt/votr/pulls/49/commits","review_comments_url":"https://api.github.com/repos/fmfi-svt/votr/pulls/49/comments","review_comment_url":"https://api.github.com/repos/fmfi-svt/votr/pulls/comments/{number}","comments_url":"https://api.github.com/repos/fmfi-svt/votr/issues/49/comments","statuses_url":"https://api.github.com/repos/fmfi-svt/votr/statuses/095d74b53fd412ce91a08ab6d6f3da0ff9ca810e","head":{"label":"fmfi-svt:Dusan/register-osob","ref":"Dusan/register-osob","sha":"095d74b53fd412ce91a08ab6d6f3da0ff9ca810e","user":{"login":"fmfi-svt","id":1397617,"avatar_url":"https://avatars.githubusercontent.com/u/1397617?v=2","gravatar_id":"","url":"https://api.github.com/users/fmfi-svt","html_url":"https://github.com/fmfi-svt","followers_url":"https://api.github.com/users/fmfi-svt/followers","following_url":"https://api.github.com/users/fmfi-svt/following{/other_user}","gists_url":"https://api.github.com/users/fmfi-svt/gists{/gist_id}","starred_url":"https://api.github.com/users/fmfi-svt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmfi-svt/subscriptions","organizations_url":"https://api.github.com/users/fmfi-svt/orgs","repos_url":"https://api.github.com/users/fmfi-svt/repos","events_url":"https://api.github.com/users/fmfi-svt/events{/privacy}","received_events_url":"https://api.github.com/users/fmfi-svt/received_events","type":"Organization","site_admin":false},"repo":{"id":19556056,"name":"votr","full_name":"fmfi-svt/votr","owner":{"login":"fmfi-svt","id":1397617,"avatar_url":"https://avatars.githubusercontent.com/u/1397617?v=2","gravatar_id":"","url":"https://api.github.com/users/fmfi-svt","html_url":"https://github.com/fmfi-svt","followers_url":"https://api.github.com/users/fmfi-svt/followers","following_url":"https://api.github.com/users/fmfi-svt/following{/other_user}","gists_url":"https://api.github.com/users/fmfi-svt/gists{/gist_id}","starred_url":"https://api.github.com/users/fmfi-svt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmfi-svt/subscriptions","organizations_url":"https://api.github.com/users/fmfi-svt/orgs","repos_url":"https://api.github.com/users/fmfi-svt/repos","events_url":"https://api.github.com/users/fmfi-svt/events{/privacy}","received_events_url":"https://api.github.com/users/fmfi-svt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fmfi-svt/votr","description":"Next generation AIS frontend","fork":false,"url":"https://api.github.com/repos/fmfi-svt/votr","forks_url":"https://api.github.com/repos/fmfi-svt/votr/forks","keys_url":"https://api.github.com/repos/fmfi-svt/votr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fmfi-svt/votr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fmfi-svt/votr/teams","hooks_url":"https://api.github.com/repos/fmfi-svt/votr/hooks","issue_events_url":"https://api.github.com/repos/fmfi-svt/votr/issues/events{/number}","events_url":"https://api.github.com/repos/fmfi-svt/votr/events","assignees_url":"https://api.github.com/repos/fmfi-svt/votr/assignees{/user}","branches_url":"https://api.github.com/repos/fmfi-svt/votr/branches{/branch}","tags_url":"https://api.github.com/repos/fmfi-svt/votr/tags","blobs_url":"https://api.github.com/repos/fmfi-svt/votr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fmfi-svt/votr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fmfi-svt/votr/git/refs{/sha}","trees_url":"https://api.github.com/repos/fmfi-svt/votr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fmfi-svt/votr/statuses/{sha}","languages_url":"https://api.github.com/repos/fmfi-svt/votr/languages","stargazers_url":"https://api.github.com/repos/fmfi-svt/votr/stargazers","contributors_url":"https://api.github.com/repos/fmfi-svt/votr/contributors","subscribers_url":"https://api.github.com/repos/fmfi-svt/votr/subscribers","subscription_url":"https://api.github.com/repos/fmfi-svt/votr/subscription","commits_url":"https://api.github.com/repos/fmfi-svt/votr/commits{/sha}","git_commits_url":"https://api.github.com/repos/fmfi-svt/votr/git/commits{/sha}","comments_url":"https://api.github.com/repos/fmfi-svt/votr/comments{/number}","issue_comment_url":"https://api.github.com/repos/fmfi-svt/votr/issues/comments/{number}","contents_url":"https://api.github.com/repos/fmfi-svt/votr/contents/{+path}","compare_url":"https://api.github.com/repos/fmfi-svt/votr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fmfi-svt/votr/merges","archive_url":"https://api.github.com/repos/fmfi-svt/votr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fmfi-svt/votr/downloads","issues_url":"https://api.github.com/repos/fmfi-svt/votr/issues{/number}","pulls_url":"https://api.github.com/repos/fmfi-svt/votr/pulls{/number}","milestones_url":"https://api.github.com/repos/fmfi-svt/votr/milestones{/number}","notifications_url":"https://api.github.com/repos/fmfi-svt/votr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fmfi-svt/votr/labels{/name}","releases_url":"https://api.github.com/repos/fmfi-svt/votr/releases{/id}","created_at":"2014-05-08T01:09:03Z","updated_at":"2014-10-29T07:24:58Z","pushed_at":"2014-10-31T16:56:50Z","git_url":"git://github.com/fmfi-svt/votr.git","ssh_url":"git@github.com:fmfi-svt/votr.git","clone_url":"https://github.com/fmfi-svt/votr.git","svn_url":"https://github.com/fmfi-svt/votr","homepage":null,"size":2908,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":3,"default_branch":"master"}},"base":{"label":"fmfi-svt:master","ref":"master","sha":"8d0a9334b3415b5e61c233bed8f182ada7180718","user":{"login":"fmfi-svt","id":1397617,"avatar_url":"https://avatars.githubusercontent.com/u/1397617?v=2","gravatar_id":"","url":"https://api.github.com/users/fmfi-svt","html_url":"https://github.com/fmfi-svt","followers_url":"https://api.github.com/users/fmfi-svt/followers","following_url":"https://api.github.com/users/fmfi-svt/following{/other_user}","gists_url":"https://api.github.com/users/fmfi-svt/gists{/gist_id}","starred_url":"https://api.github.com/users/fmfi-svt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmfi-svt/subscriptions","organizations_url":"https://api.github.com/users/fmfi-svt/orgs","repos_url":"https://api.github.com/users/fmfi-svt/repos","events_url":"https://api.github.com/users/fmfi-svt/events{/privacy}","received_events_url":"https://api.github.com/users/fmfi-svt/received_events","type":"Organization","site_admin":false},"repo":{"id":19556056,"name":"votr","full_name":"fmfi-svt/votr","owner":{"login":"fmfi-svt","id":1397617,"avatar_url":"https://avatars.githubusercontent.com/u/1397617?v=2","gravatar_id":"","url":"https://api.github.com/users/fmfi-svt","html_url":"https://github.com/fmfi-svt","followers_url":"https://api.github.com/users/fmfi-svt/followers","following_url":"https://api.github.com/users/fmfi-svt/following{/other_user}","gists_url":"https://api.github.com/users/fmfi-svt/gists{/gist_id}","starred_url":"https://api.github.com/users/fmfi-svt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmfi-svt/subscriptions","organizations_url":"https://api.github.com/users/fmfi-svt/orgs","repos_url":"https://api.github.com/users/fmfi-svt/repos","events_url":"https://api.github.com/users/fmfi-svt/events{/privacy}","received_events_url":"https://api.github.com/users/fmfi-svt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fmfi-svt/votr","description":"Next generation AIS frontend","fork":false,"url":"https://api.github.com/repos/fmfi-svt/votr","forks_url":"https://api.github.com/repos/fmfi-svt/votr/forks","keys_url":"https://api.github.com/repos/fmfi-svt/votr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fmfi-svt/votr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fmfi-svt/votr/teams","hooks_url":"https://api.github.com/repos/fmfi-svt/votr/hooks","issue_events_url":"https://api.github.com/repos/fmfi-svt/votr/issues/events{/number}","events_url":"https://api.github.com/repos/fmfi-svt/votr/events","assignees_url":"https://api.github.com/repos/fmfi-svt/votr/assignees{/user}","branches_url":"https://api.github.com/repos/fmfi-svt/votr/branches{/branch}","tags_url":"https://api.github.com/repos/fmfi-svt/votr/tags","blobs_url":"https://api.github.com/repos/fmfi-svt/votr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fmfi-svt/votr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fmfi-svt/votr/git/refs{/sha}","trees_url":"https://api.github.com/repos/fmfi-svt/votr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fmfi-svt/votr/statuses/{sha}","languages_url":"https://api.github.com/repos/fmfi-svt/votr/languages","stargazers_url":"https://api.github.com/repos/fmfi-svt/votr/stargazers","contributors_url":"https://api.github.com/repos/fmfi-svt/votr/contributors","subscribers_url":"https://api.github.com/repos/fmfi-svt/votr/subscribers","subscription_url":"https://api.github.com/repos/fmfi-svt/votr/subscription","commits_url":"https://api.github.com/repos/fmfi-svt/votr/commits{/sha}","git_commits_url":"https://api.github.com/repos/fmfi-svt/votr/git/commits{/sha}","comments_url":"https://api.github.com/repos/fmfi-svt/votr/comments{/number}","issue_comment_url":"https://api.github.com/repos/fmfi-svt/votr/issues/comments/{number}","contents_url":"https://api.github.com/repos/fmfi-svt/votr/contents/{+path}","compare_url":"https://api.github.com/repos/fmfi-svt/votr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fmfi-svt/votr/merges","archive_url":"https://api.github.com/repos/fmfi-svt/votr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fmfi-svt/votr/downloads","issues_url":"https://api.github.com/repos/fmfi-svt/votr/issues{/number}","pulls_url":"https://api.github.com/repos/fmfi-svt/votr/pulls{/number}","milestones_url":"https://api.github.com/repos/fmfi-svt/votr/milestones{/number}","notifications_url":"https://api.github.com/repos/fmfi-svt/votr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fmfi-svt/votr/labels{/name}","releases_url":"https://api.github.com/repos/fmfi-svt/votr/releases{/id}","created_at":"2014-05-08T01:09:03Z","updated_at":"2014-10-29T07:24:58Z","pushed_at":"2014-10-31T16:56:50Z","git_url":"git://github.com/fmfi-svt/votr.git","ssh_url":"git@github.com:fmfi-svt/votr.git","clone_url":"https://github.com/fmfi-svt/votr.git","svn_url":"https://github.com/fmfi-svt/votr","homepage":null,"size":2908,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fmfi-svt/votr/pulls/49"},"html":{"href":"https://github.com/fmfi-svt/votr/pull/49"},"issue":{"href":"https://api.github.com/repos/fmfi-svt/votr/issues/49"},"comments":{"href":"https://api.github.com/repos/fmfi-svt/votr/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/fmfi-svt/votr/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/fmfi-svt/votr/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/fmfi-svt/votr/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/fmfi-svt/votr/statuses/095d74b53fd412ce91a08ab6d6f3da0ff9ca810e"}}}}