{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fts_70/pulls/comments/82736244","pull_request_review_id":3622101,"id":82736244,"diff_hunk":"@@ -0,0 +1,46 @@\n+<div class=\"modal-dialog\">\n+  <div class=\"modal-content\" id=\"question\">\n+    <div class=\"modal-header\"><h1><%= yield(:modal_title) %></h1></div>\n+    <%= form_for [:admin, @subject, @question] do |f| %>\n+      <div class=\"modal-body\">\n+        <div class=\"form_errors\">\n+          <%= render \"shared/error_messages\", object: @question %>\n+        </div>\n+        <div class=\"form-group\">\n+          <%= f.label :subject_id %>\n+          <%= text_field_tag :subject_name, @subject.name, disabled: true %>\n+          <%= f.hidden_field :subject_id, value: @subject.id %>\n+        </div>\n+        <div class=\"form-group\">\n+          <%= f.label :content %>\n+          <%= f.text_field :content, placeholder: t(\".question_content\"),\n+            error: t(\".question_content_error\") %>\n+        </div>\n+        <div class=\"form-group\">\n+          <%= f.label :type %>\n+          <%= f.select :answer_type, Question.answer_types.keys.to_a, {},\n+          {class: \"form-control\"} %>\n+        </div>\n+        <div id =\"answers_field\">\n+          <%= f.fields_for :answers do |answer_builder| %>\n+            <%= render \"answer_fields\", f: answer_builder %>\n+          <% end %>\n+          <div id =\"answer_field\">\n+          </div>\n+          <div class=\"add_fields\">\n+            <%= link_to_add_fields t(\".add_answer\"), f, :answers %>\n+          </div>\n+        </div>\n+      </div>\n+      <div class=\"modal-footer\">\n+        <span class=\"pull-right\">\n+          <%= f.submit yield(:submit_button), class: \"btn btn-primary\" %>","path":"app/views/admin/questions/_form.html.erb","position":37,"original_position":37,"commit_id":"af3324c6ca395e589085c30af49831e603b5f95d","original_commit_id":"af3324c6ca395e589085c30af49831e603b5f95d","user":{"login":"nhunght","id":14239703,"avatar_url":"https://avatars.githubusercontent.com/u/14239703?v=3","gravatar_id":"","url":"https://api.github.com/users/nhunght","html_url":"https://github.com/nhunght","followers_url":"https://api.github.com/users/nhunght/followers","following_url":"https://api.github.com/users/nhunght/following{/other_user}","gists_url":"https://api.github.com/users/nhunght/gists{/gist_id}","starred_url":"https://api.github.com/users/nhunght/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhunght/subscriptions","organizations_url":"https://api.github.com/users/nhunght/orgs","repos_url":"https://api.github.com/users/nhunght/repos","events_url":"https://api.github.com/users/nhunght/events{/privacy}","received_events_url":"https://api.github.com/users/nhunght/received_events","type":"User","site_admin":false},"body":"remove ()","created_at":"2016-10-11T07:25:02Z","updated_at":"2016-10-11T07:25:02Z","html_url":"https://github.com/framgia/fts_70/pull/21#discussion_r82736244","pull_request_url":"https://api.github.com/repos/framgia/fts_70/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/framgia/fts_70/pulls/comments/82736244"},"html":{"href":"https://github.com/framgia/fts_70/pull/21#discussion_r82736244"},"pull_request":{"href":"https://api.github.com/repos/framgia/fts_70/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fts_70/pulls/21","id":88777196,"html_url":"https://github.com/framgia/fts_70/pull/21","diff_url":"https://github.com/framgia/fts_70/pull/21.diff","patch_url":"https://github.com/framgia/fts_70/pull/21.patch","issue_url":"https://api.github.com/repos/framgia/fts_70/issues/21","number":21,"state":"open","locked":false,"title":"Admin_create/edit/delete/show_questions ","user":{"login":"nguyenroot","id":22046809,"avatar_url":"https://avatars.githubusercontent.com/u/22046809?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenroot","html_url":"https://github.com/nguyenroot","followers_url":"https://api.github.com/users/nguyenroot/followers","following_url":"https://api.github.com/users/nguyenroot/following{/other_user}","gists_url":"https://api.github.com/users/nguyenroot/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenroot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenroot/subscriptions","organizations_url":"https://api.github.com/users/nguyenroot/orgs","repos_url":"https://api.github.com/users/nguyenroot/repos","events_url":"https://api.github.com/users/nguyenroot/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenroot/received_events","type":"User","site_admin":false},"body":"ok","created_at":"2016-10-11T06:26:14Z","updated_at":"2016-10-11T07:25:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fts_70/pulls/21/commits","review_comments_url":"https://api.github.com/repos/framgia/fts_70/pulls/21/comments","review_comment_url":"https://api.github.com/repos/framgia/fts_70/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fts_70/issues/21/comments","statuses_url":"https://api.github.com/repos/framgia/fts_70/statuses/af3324c6ca395e589085c30af49831e603b5f95d","head":{"label":"nguyenroot:question","ref":"question","sha":"af3324c6ca395e589085c30af49831e603b5f95d","user":{"login":"nguyenroot","id":22046809,"avatar_url":"https://avatars.githubusercontent.com/u/22046809?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenroot","html_url":"https://github.com/nguyenroot","followers_url":"https://api.github.com/users/nguyenroot/followers","following_url":"https://api.github.com/users/nguyenroot/following{/other_user}","gists_url":"https://api.github.com/users/nguyenroot/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenroot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenroot/subscriptions","organizations_url":"https://api.github.com/users/nguyenroot/orgs","repos_url":"https://api.github.com/users/nguyenroot/repos","events_url":"https://api.github.com/users/nguyenroot/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenroot/received_events","type":"User","site_admin":false},"repo":{"id":69876260,"name":"fts_70","full_name":"nguyenroot/fts_70","owner":{"login":"nguyenroot","id":22046809,"avatar_url":"https://avatars.githubusercontent.com/u/22046809?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenroot","html_url":"https://github.com/nguyenroot","followers_url":"https://api.github.com/users/nguyenroot/followers","following_url":"https://api.github.com/users/nguyenroot/following{/other_user}","gists_url":"https://api.github.com/users/nguyenroot/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenroot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenroot/subscriptions","organizations_url":"https://api.github.com/users/nguyenroot/orgs","repos_url":"https://api.github.com/users/nguyenroot/repos","events_url":"https://api.github.com/users/nguyenroot/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenroot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenroot/fts_70","description":"Framgia Test System (training)","fork":true,"url":"https://api.github.com/repos/nguyenroot/fts_70","forks_url":"https://api.github.com/repos/nguyenroot/fts_70/forks","keys_url":"https://api.github.com/repos/nguyenroot/fts_70/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenroot/fts_70/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenroot/fts_70/teams","hooks_url":"https://api.github.com/repos/nguyenroot/fts_70/hooks","issue_events_url":"https://api.github.com/repos/nguyenroot/fts_70/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenroot/fts_70/events","assignees_url":"https://api.github.com/repos/nguyenroot/fts_70/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenroot/fts_70/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenroot/fts_70/tags","blobs_url":"https://api.github.com/repos/nguyenroot/fts_70/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenroot/fts_70/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenroot/fts_70/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenroot/fts_70/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenroot/fts_70/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenroot/fts_70/languages","stargazers_url":"https://api.github.com/repos/nguyenroot/fts_70/stargazers","contributors_url":"https://api.github.com/repos/nguyenroot/fts_70/contributors","subscribers_url":"https://api.github.com/repos/nguyenroot/fts_70/subscribers","subscription_url":"https://api.github.com/repos/nguyenroot/fts_70/subscription","commits_url":"https://api.github.com/repos/nguyenroot/fts_70/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenroot/fts_70/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenroot/fts_70/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenroot/fts_70/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenroot/fts_70/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenroot/fts_70/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenroot/fts_70/merges","archive_url":"https://api.github.com/repos/nguyenroot/fts_70/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenroot/fts_70/downloads","issues_url":"https://api.github.com/repos/nguyenroot/fts_70/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenroot/fts_70/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenroot/fts_70/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenroot/fts_70/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenroot/fts_70/labels{/name}","releases_url":"https://api.github.com/repos/nguyenroot/fts_70/releases{/id}","deployments_url":"https://api.github.com/repos/nguyenroot/fts_70/deployments","created_at":"2016-10-03T14:02:46Z","updated_at":"2016-09-27T09:11:02Z","pushed_at":"2016-10-11T07:14:57Z","git_url":"git://github.com/nguyenroot/fts_70.git","ssh_url":"git@github.com:nguyenroot/fts_70.git","clone_url":"https://github.com/nguyenroot/fts_70.git","svn_url":"https://github.com/nguyenroot/fts_70","homepage":null,"size":50,"stargazers_count":0,"watchers_count":0,"language":null,"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":"framgia:develop","ref":"develop","sha":"bacb73b25b5b86560f0a7ddabcc7e6d88513aff2","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":69339175,"name":"fts_70","full_name":"framgia/fts_70","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fts_70","description":"Framgia Test System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fts_70","forks_url":"https://api.github.com/repos/framgia/fts_70/forks","keys_url":"https://api.github.com/repos/framgia/fts_70/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fts_70/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fts_70/teams","hooks_url":"https://api.github.com/repos/framgia/fts_70/hooks","issue_events_url":"https://api.github.com/repos/framgia/fts_70/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fts_70/events","assignees_url":"https://api.github.com/repos/framgia/fts_70/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fts_70/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fts_70/tags","blobs_url":"https://api.github.com/repos/framgia/fts_70/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fts_70/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fts_70/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fts_70/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fts_70/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fts_70/languages","stargazers_url":"https://api.github.com/repos/framgia/fts_70/stargazers","contributors_url":"https://api.github.com/repos/framgia/fts_70/contributors","subscribers_url":"https://api.github.com/repos/framgia/fts_70/subscribers","subscription_url":"https://api.github.com/repos/framgia/fts_70/subscription","commits_url":"https://api.github.com/repos/framgia/fts_70/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fts_70/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fts_70/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fts_70/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fts_70/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fts_70/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fts_70/merges","archive_url":"https://api.github.com/repos/framgia/fts_70/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fts_70/downloads","issues_url":"https://api.github.com/repos/framgia/fts_70/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fts_70/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fts_70/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fts_70/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fts_70/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fts_70/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fts_70/deployments","created_at":"2016-09-27T09:11:02Z","updated_at":"2016-09-27T09:11:02Z","pushed_at":"2016-10-11T07:14:57Z","git_url":"git://github.com/framgia/fts_70.git","ssh_url":"git@github.com:framgia/fts_70.git","clone_url":"https://github.com/framgia/fts_70.git","svn_url":"https://github.com/framgia/fts_70","homepage":null,"size":95,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fts_70/pulls/21"},"html":{"href":"https://github.com/framgia/fts_70/pull/21"},"issue":{"href":"https://api.github.com/repos/framgia/fts_70/issues/21"},"comments":{"href":"https://api.github.com/repos/framgia/fts_70/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fts_70/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fts_70/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fts_70/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fts_70/statuses/af3324c6ca395e589085c30af49831e603b5f95d"}}}}
{"actor":{"display_login":"nhunght"}}