{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_16/pulls/comments/36409382","id":36409382,"diff_hunk":"@@ -0,0 +1,39 @@\n+<%= form_for [:admin, @book], html: {multipart: true} do |f| %>\n+  <%= render \"shared/form_errors\", object: @book %>\n+  <div class=\"form-group\">\n+    <%= f.label :title %>\n+    <%= f.text_field :title, class: \"form-control\" %>\n+  </div>\n+  <div class=\"form-group\">\n+    <%= f.label :author %>\n+    <%= f.text_field :author, class: \"form-control\" %>\n+  </div>\n+  <div class=\"form-group\">\n+    <%= f.label :published_date %>\n+    <%= f.text_field :published_date, class: \"form-control\", id: \"datepicker\" %>\n+  </div>\n+  <div class=\"form-group\">\n+    <%= f.label :number_of_page %>\n+    <%= f.number_field :number_of_page, class: \"form-control\", min: 1, max: 65000 %>\n+  </div>\n+  <div class=\"form-group\">\n+    <%= f.label :description %>\n+    <%= f.bootsy_area :description, class: \"form-control\", rows: 10 %>\n+  </div>\n+  <div class=\"form-group\">\n+    <%= f.label :category %>\n+    <%= collection_select :book, :category_id, Category.all, :id, :name,\n+      prompt: true, class: \"form-control\" %>\n+  </div>\n+  <div class=\"form-group image-container\">\n+    <%= f.label :image %>\n+    <%= f.file_field :image %>\n+    <div class=\"preview pull-right\">\n+      <%= image_tag @book.image.thumb.url, class: \"img-responsive\",\n+        size: \"180x150\", alt:\"Preview\", id: \"preview_cover\" %>","path":"app/views/admin/books/_form.html.erb","position":33,"original_position":33,"commit_id":"b25d59ad057e95dd67d06762ae784bff9afda478","original_commit_id":"b25d59ad057e95dd67d06762ae784bff9afda478","user":{"login":"ThuBM","id":5279620,"avatar_url":"https://avatars.githubusercontent.com/u/5279620?v=3","gravatar_id":"","url":"https://api.github.com/users/ThuBM","html_url":"https://github.com/ThuBM","followers_url":"https://api.github.com/users/ThuBM/followers","following_url":"https://api.github.com/users/ThuBM/following{/other_user}","gists_url":"https://api.github.com/users/ThuBM/gists{/gist_id}","starred_url":"https://api.github.com/users/ThuBM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThuBM/subscriptions","organizations_url":"https://api.github.com/users/ThuBM/orgs","repos_url":"https://api.github.com/users/ThuBM/repos","events_url":"https://api.github.com/users/ThuBM/events{/privacy}","received_events_url":"https://api.github.com/users/ThuBM/received_events","type":"User","site_admin":false},"body":"size -> Settings","created_at":"2015-08-06T12:47:17Z","updated_at":"2015-08-06T12:47:17Z","html_url":"https://github.com/framgia/brs_16/pull/9#discussion_r36409382","pull_request_url":"https://api.github.com/repos/framgia/brs_16/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_16/pulls/comments/36409382"},"html":{"href":"https://github.com/framgia/brs_16/pull/9#discussion_r36409382"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_16/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_16/pulls/9","id":41764434,"html_url":"https://github.com/framgia/brs_16/pull/9","diff_url":"https://github.com/framgia/brs_16/pull/9.diff","patch_url":"https://github.com/framgia/brs_16/pull/9.patch","issue_url":"https://api.github.com/repos/framgia/brs_16/issues/9","number":9,"state":"open","locked":false,"title":"36639 - Edit and destroy book","user":{"login":"luongvietdung","id":13132796,"avatar_url":"https://avatars.githubusercontent.com/u/13132796?v=3","gravatar_id":"","url":"https://api.github.com/users/luongvietdung","html_url":"https://github.com/luongvietdung","followers_url":"https://api.github.com/users/luongvietdung/followers","following_url":"https://api.github.com/users/luongvietdung/following{/other_user}","gists_url":"https://api.github.com/users/luongvietdung/gists{/gist_id}","starred_url":"https://api.github.com/users/luongvietdung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luongvietdung/subscriptions","organizations_url":"https://api.github.com/users/luongvietdung/orgs","repos_url":"https://api.github.com/users/luongvietdung/repos","events_url":"https://api.github.com/users/luongvietdung/events{/privacy}","received_events_url":"https://api.github.com/users/luongvietdung/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-06T08:46:00Z","updated_at":"2015-08-06T12:47:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d2b186446afafd82f57854fb5d4d8bbfb1477f6e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_16/pulls/9/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_16/pulls/9/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_16/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_16/issues/9/comments","statuses_url":"https://api.github.com/repos/framgia/brs_16/statuses/b25d59ad057e95dd67d06762ae784bff9afda478","head":{"label":"luongvietdung:edit-and-destroy-book","ref":"edit-and-destroy-book","sha":"b25d59ad057e95dd67d06762ae784bff9afda478","user":{"login":"luongvietdung","id":13132796,"avatar_url":"https://avatars.githubusercontent.com/u/13132796?v=3","gravatar_id":"","url":"https://api.github.com/users/luongvietdung","html_url":"https://github.com/luongvietdung","followers_url":"https://api.github.com/users/luongvietdung/followers","following_url":"https://api.github.com/users/luongvietdung/following{/other_user}","gists_url":"https://api.github.com/users/luongvietdung/gists{/gist_id}","starred_url":"https://api.github.com/users/luongvietdung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luongvietdung/subscriptions","organizations_url":"https://api.github.com/users/luongvietdung/orgs","repos_url":"https://api.github.com/users/luongvietdung/repos","events_url":"https://api.github.com/users/luongvietdung/events{/privacy}","received_events_url":"https://api.github.com/users/luongvietdung/received_events","type":"User","site_admin":false},"repo":{"id":40176242,"name":"brs_16","full_name":"luongvietdung/brs_16","owner":{"login":"luongvietdung","id":13132796,"avatar_url":"https://avatars.githubusercontent.com/u/13132796?v=3","gravatar_id":"","url":"https://api.github.com/users/luongvietdung","html_url":"https://github.com/luongvietdung","followers_url":"https://api.github.com/users/luongvietdung/followers","following_url":"https://api.github.com/users/luongvietdung/following{/other_user}","gists_url":"https://api.github.com/users/luongvietdung/gists{/gist_id}","starred_url":"https://api.github.com/users/luongvietdung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luongvietdung/subscriptions","organizations_url":"https://api.github.com/users/luongvietdung/orgs","repos_url":"https://api.github.com/users/luongvietdung/repos","events_url":"https://api.github.com/users/luongvietdung/events{/privacy}","received_events_url":"https://api.github.com/users/luongvietdung/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/luongvietdung/brs_16","description":"Book Reviewing System (training)","fork":true,"url":"https://api.github.com/repos/luongvietdung/brs_16","forks_url":"https://api.github.com/repos/luongvietdung/brs_16/forks","keys_url":"https://api.github.com/repos/luongvietdung/brs_16/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luongvietdung/brs_16/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luongvietdung/brs_16/teams","hooks_url":"https://api.github.com/repos/luongvietdung/brs_16/hooks","issue_events_url":"https://api.github.com/repos/luongvietdung/brs_16/issues/events{/number}","events_url":"https://api.github.com/repos/luongvietdung/brs_16/events","assignees_url":"https://api.github.com/repos/luongvietdung/brs_16/assignees{/user}","branches_url":"https://api.github.com/repos/luongvietdung/brs_16/branches{/branch}","tags_url":"https://api.github.com/repos/luongvietdung/brs_16/tags","blobs_url":"https://api.github.com/repos/luongvietdung/brs_16/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luongvietdung/brs_16/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luongvietdung/brs_16/git/refs{/sha}","trees_url":"https://api.github.com/repos/luongvietdung/brs_16/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luongvietdung/brs_16/statuses/{sha}","languages_url":"https://api.github.com/repos/luongvietdung/brs_16/languages","stargazers_url":"https://api.github.com/repos/luongvietdung/brs_16/stargazers","contributors_url":"https://api.github.com/repos/luongvietdung/brs_16/contributors","subscribers_url":"https://api.github.com/repos/luongvietdung/brs_16/subscribers","subscription_url":"https://api.github.com/repos/luongvietdung/brs_16/subscription","commits_url":"https://api.github.com/repos/luongvietdung/brs_16/commits{/sha}","git_commits_url":"https://api.github.com/repos/luongvietdung/brs_16/git/commits{/sha}","comments_url":"https://api.github.com/repos/luongvietdung/brs_16/comments{/number}","issue_comment_url":"https://api.github.com/repos/luongvietdung/brs_16/issues/comments{/number}","contents_url":"https://api.github.com/repos/luongvietdung/brs_16/contents/{+path}","compare_url":"https://api.github.com/repos/luongvietdung/brs_16/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luongvietdung/brs_16/merges","archive_url":"https://api.github.com/repos/luongvietdung/brs_16/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luongvietdung/brs_16/downloads","issues_url":"https://api.github.com/repos/luongvietdung/brs_16/issues{/number}","pulls_url":"https://api.github.com/repos/luongvietdung/brs_16/pulls{/number}","milestones_url":"https://api.github.com/repos/luongvietdung/brs_16/milestones{/number}","notifications_url":"https://api.github.com/repos/luongvietdung/brs_16/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luongvietdung/brs_16/labels{/name}","releases_url":"https://api.github.com/repos/luongvietdung/brs_16/releases{/id}","created_at":"2015-08-04T09:42:11Z","updated_at":"2015-08-04T09:31:59Z","pushed_at":"2015-08-06T09:05:05Z","git_url":"git://github.com/luongvietdung/brs_16.git","ssh_url":"git@github.com:luongvietdung/brs_16.git","clone_url":"https://github.com/luongvietdung/brs_16.git","svn_url":"https://github.com/luongvietdung/brs_16","homepage":null,"size":141,"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":"bb01d579d414c413d47c75b520bbcb631ed862a4","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":40175714,"name":"brs_16","full_name":"framgia/brs_16","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/brs_16","description":"Book Reviewing System (training)","fork":false,"url":"https://api.github.com/repos/framgia/brs_16","forks_url":"https://api.github.com/repos/framgia/brs_16/forks","keys_url":"https://api.github.com/repos/framgia/brs_16/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_16/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_16/teams","hooks_url":"https://api.github.com/repos/framgia/brs_16/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_16/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_16/events","assignees_url":"https://api.github.com/repos/framgia/brs_16/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_16/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_16/tags","blobs_url":"https://api.github.com/repos/framgia/brs_16/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_16/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_16/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_16/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_16/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_16/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_16/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_16/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_16/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_16/subscription","commits_url":"https://api.github.com/repos/framgia/brs_16/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_16/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_16/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_16/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_16/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_16/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_16/merges","archive_url":"https://api.github.com/repos/framgia/brs_16/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_16/downloads","issues_url":"https://api.github.com/repos/framgia/brs_16/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_16/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_16/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_16/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_16/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_16/releases{/id}","created_at":"2015-08-04T09:31:59Z","updated_at":"2015-08-04T09:31:59Z","pushed_at":"2015-08-06T09:13:01Z","git_url":"git://github.com/framgia/brs_16.git","ssh_url":"git@github.com:framgia/brs_16.git","clone_url":"https://github.com/framgia/brs_16.git","svn_url":"https://github.com/framgia/brs_16","homepage":null,"size":294,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_16/pulls/9"},"html":{"href":"https://github.com/framgia/brs_16/pull/9"},"issue":{"href":"https://api.github.com/repos/framgia/brs_16/issues/9"},"comments":{"href":"https://api.github.com/repos/framgia/brs_16/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_16/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_16/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_16/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_16/statuses/b25d59ad057e95dd67d06762ae784bff9afda478"}}}}