{"action":"created","comment":{"url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/pulls/comments/140497352","pull_request_review_id":64579322,"id":140497352,"diff_hunk":"@@ -1,37 +1,51 @@\n-<div class=\"flex-header static\">\n+<div class=\"flex-header\">\n   <div class=\"bhima-title\">\n     <ol class=\"headercrumb\">\n       <li class=\"static\">{{ \"TREE.FINANCE\" | translate }}</li>\n       <li class=\"title\">{{ \"ACCOUNT.TITLE\" | translate }}</li>\n     </ol>\n \n-   <div class=\"toolbar\">\n+    <div class=\"toolbar\">\n+      <fieldset ng-disabled=\"AccountsCtrl.transactions.isEditing()\">\n+        <div class=\"toolbar-item\">\n+          <div uib-dropdown dropdown-append-to-body data-action=\"open-tools\">\n+            <a class=\"btn btn-default\" uib-dropdown-toggle>\n+              <span class=\"fa fa-bars\"></span> <span class=\"hidden-xs\" translate>FORM.LABELS.MENU</span> <span class=\"caret\"></span>\n+            </a>\n+            <ul uib-dropdown-menu role=\"menu\" class=\"dropdown-menu-right\">\n+              <li role=\"menuitem\">\n+                <a ng-href=\"/reports/finance/accounts/chart/?{{ AccountsCtrl.Accounts.download('pdf') }}\" download=\"{{ 'ACCOUNT.TITLE' | translate }}\">\n+                  <span class=\"fa fa-file-pdf-o\"></span> <span translate>DOWNLOADS.PDF</span>\n+                </a>\n+              </li>\n+              <li role=\"separator\" class=\"divider\"></li>\n \n-     <div class=\"toolbar-item\">\n-\n-       <button\n-         class=\"btn btn-default\"\n-         ng-class=\"{'btn-info' : AccountsCtrl.gridOptions.enableFiltering}\"\n-         data-method=\"filter\" ng-click=\"AccountsCtrl.toggleInlineFilter()\">\n-        <i class=\"fa fa-filter\"></i>\n-       </button>\n-\n-       <a class=\"btn btn-default text-capitalize\" data-method=\"create\" ui-sref=\"accounts.create\">\n-         <i class=\"fa fa-plus\"></i>\n-         <span translate> ACCOUNT.ADD </span>\n-       </a>\n-       <bh-pdf-print\n-        pdf-url=\"/reports/finance/accounts/chart\"\n-        options=\"AccountsCtrl.parameter\">\n-      </bh-pdf-print>\n+              <li role=\"menuitem\">\n+                <a ng-href=\"/reports/finance/accounts/chart/?{{ AccountsCtrl.Accounts.download('csv') }}\" download=\"{{ 'ACCOUNT.TITLE' | translate }}\">","path":"client/src/modules/accounts/accounts.html","position":43,"original_position":43,"commit_id":"e786f0cb5e69c5de44a662d25913ac84189ecf03","original_commit_id":"e786f0cb5e69c5de44a662d25913ac84189ecf03","user":{"login":"jniles","id":896472,"avatar_url":"https://avatars0.githubusercontent.com/u/896472?v=4","gravatar_id":"","url":"https://api.github.com/users/jniles","html_url":"https://github.com/jniles","followers_url":"https://api.github.com/users/jniles/followers","following_url":"https://api.github.com/users/jniles/following{/other_user}","gists_url":"https://api.github.com/users/jniles/gists{/gist_id}","starred_url":"https://api.github.com/users/jniles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jniles/subscriptions","organizations_url":"https://api.github.com/users/jniles/orgs","repos_url":"https://api.github.com/users/jniles/repos","events_url":"https://api.github.com/users/jniles/events{/privacy}","received_events_url":"https://api.github.com/users/jniles/received_events","type":"User","site_admin":false},"body":"@lomamech, while you are at it, @jeremielodi recently added downloading as Excel (https://github.com/IMA-WorldHealth/bhima-2.X/pull/2106).  Could you add that feature into this list as well?","created_at":"2017-09-22T13:45:48Z","updated_at":"2017-09-22T13:46:35Z","html_url":"https://github.com/IMA-WorldHealth/bhima-2.X/pull/2125#discussion_r140497352","pull_request_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/pulls/2125","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/pulls/comments/140497352"},"html":{"href":"https://github.com/IMA-WorldHealth/bhima-2.X/pull/2125#discussion_r140497352"},"pull_request":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/pulls/2125"}}},"pull_request":{"url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/pulls/2125","id":142579501,"html_url":"https://github.com/IMA-WorldHealth/bhima-2.X/pull/2125","diff_url":"https://github.com/IMA-WorldHealth/bhima-2.X/pull/2125.diff","patch_url":"https://github.com/IMA-WorldHealth/bhima-2.X/pull/2125.patch","issue_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/2125","number":2125,"state":"open","locked":false,"title":"refactor(Account Management)","user":{"login":"lomamech","id":8035588,"avatar_url":"https://avatars0.githubusercontent.com/u/8035588?v=4","gravatar_id":"","url":"https://api.github.com/users/lomamech","html_url":"https://github.com/lomamech","followers_url":"https://api.github.com/users/lomamech/followers","following_url":"https://api.github.com/users/lomamech/following{/other_user}","gists_url":"https://api.github.com/users/lomamech/gists{/gist_id}","starred_url":"https://api.github.com/users/lomamech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lomamech/subscriptions","organizations_url":"https://api.github.com/users/lomamech/orgs","repos_url":"https://api.github.com/users/lomamech/repos","events_url":"https://api.github.com/users/lomamech/events{/privacy}","received_events_url":"https://api.github.com/users/lomamech/received_events","type":"User","site_admin":false},"body":"- Upgrate Account management module us Dropdown Menus\r\n- Remove bhRenderDropDown\r\n- Improve chart handlebars\r\n- Add function download in AccountGridService\r\n\r\ncloses #1914 ","created_at":"2017-09-22T13:29:20Z","updated_at":"2017-09-22T13:46:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76b71e27a4a8c6b5ebf9c5aa89911380f251e504","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/pulls/2125/commits","review_comments_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/pulls/2125/comments","review_comment_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/2125/comments","statuses_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/statuses/e786f0cb5e69c5de44a662d25913ac84189ecf03","head":{"label":"lomamech:refactorAccountManagement","ref":"refactorAccountManagement","sha":"e786f0cb5e69c5de44a662d25913ac84189ecf03","user":{"login":"lomamech","id":8035588,"avatar_url":"https://avatars0.githubusercontent.com/u/8035588?v=4","gravatar_id":"","url":"https://api.github.com/users/lomamech","html_url":"https://github.com/lomamech","followers_url":"https://api.github.com/users/lomamech/followers","following_url":"https://api.github.com/users/lomamech/following{/other_user}","gists_url":"https://api.github.com/users/lomamech/gists{/gist_id}","starred_url":"https://api.github.com/users/lomamech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lomamech/subscriptions","organizations_url":"https://api.github.com/users/lomamech/orgs","repos_url":"https://api.github.com/users/lomamech/repos","events_url":"https://api.github.com/users/lomamech/events{/privacy}","received_events_url":"https://api.github.com/users/lomamech/received_events","type":"User","site_admin":false},"repo":{"id":49122796,"name":"bhima-2.X","full_name":"lomamech/bhima-2.X","owner":{"login":"lomamech","id":8035588,"avatar_url":"https://avatars0.githubusercontent.com/u/8035588?v=4","gravatar_id":"","url":"https://api.github.com/users/lomamech","html_url":"https://github.com/lomamech","followers_url":"https://api.github.com/users/lomamech/followers","following_url":"https://api.github.com/users/lomamech/following{/other_user}","gists_url":"https://api.github.com/users/lomamech/gists{/gist_id}","starred_url":"https://api.github.com/users/lomamech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lomamech/subscriptions","organizations_url":"https://api.github.com/users/lomamech/orgs","repos_url":"https://api.github.com/users/lomamech/repos","events_url":"https://api.github.com/users/lomamech/events{/privacy}","received_events_url":"https://api.github.com/users/lomamech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lomamech/bhima-2.X","description":"A fresh start for bhima to remove large commits","fork":true,"url":"https://api.github.com/repos/lomamech/bhima-2.X","forks_url":"https://api.github.com/repos/lomamech/bhima-2.X/forks","keys_url":"https://api.github.com/repos/lomamech/bhima-2.X/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lomamech/bhima-2.X/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lomamech/bhima-2.X/teams","hooks_url":"https://api.github.com/repos/lomamech/bhima-2.X/hooks","issue_events_url":"https://api.github.com/repos/lomamech/bhima-2.X/issues/events{/number}","events_url":"https://api.github.com/repos/lomamech/bhima-2.X/events","assignees_url":"https://api.github.com/repos/lomamech/bhima-2.X/assignees{/user}","branches_url":"https://api.github.com/repos/lomamech/bhima-2.X/branches{/branch}","tags_url":"https://api.github.com/repos/lomamech/bhima-2.X/tags","blobs_url":"https://api.github.com/repos/lomamech/bhima-2.X/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lomamech/bhima-2.X/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lomamech/bhima-2.X/git/refs{/sha}","trees_url":"https://api.github.com/repos/lomamech/bhima-2.X/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lomamech/bhima-2.X/statuses/{sha}","languages_url":"https://api.github.com/repos/lomamech/bhima-2.X/languages","stargazers_url":"https://api.github.com/repos/lomamech/bhima-2.X/stargazers","contributors_url":"https://api.github.com/repos/lomamech/bhima-2.X/contributors","subscribers_url":"https://api.github.com/repos/lomamech/bhima-2.X/subscribers","subscription_url":"https://api.github.com/repos/lomamech/bhima-2.X/subscription","commits_url":"https://api.github.com/repos/lomamech/bhima-2.X/commits{/sha}","git_commits_url":"https://api.github.com/repos/lomamech/bhima-2.X/git/commits{/sha}","comments_url":"https://api.github.com/repos/lomamech/bhima-2.X/comments{/number}","issue_comment_url":"https://api.github.com/repos/lomamech/bhima-2.X/issues/comments{/number}","contents_url":"https://api.github.com/repos/lomamech/bhima-2.X/contents/{+path}","compare_url":"https://api.github.com/repos/lomamech/bhima-2.X/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lomamech/bhima-2.X/merges","archive_url":"https://api.github.com/repos/lomamech/bhima-2.X/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lomamech/bhima-2.X/downloads","issues_url":"https://api.github.com/repos/lomamech/bhima-2.X/issues{/number}","pulls_url":"https://api.github.com/repos/lomamech/bhima-2.X/pulls{/number}","milestones_url":"https://api.github.com/repos/lomamech/bhima-2.X/milestones{/number}","notifications_url":"https://api.github.com/repos/lomamech/bhima-2.X/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lomamech/bhima-2.X/labels{/name}","releases_url":"https://api.github.com/repos/lomamech/bhima-2.X/releases{/id}","deployments_url":"https://api.github.com/repos/lomamech/bhima-2.X/deployments","created_at":"2016-01-06T08:25:17Z","updated_at":"2016-01-06T08:25:20Z","pushed_at":"2017-09-22T13:31:53Z","git_url":"git://github.com/lomamech/bhima-2.X.git","ssh_url":"git@github.com:lomamech/bhima-2.X.git","clone_url":"https://github.com/lomamech/bhima-2.X.git","svn_url":"https://github.com/lomamech/bhima-2.X","homepage":null,"size":11361,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"IMA-WorldHealth:master","ref":"master","sha":"a5d31b47fbbf2ae8dcffc03d8d391487c97a9e8b","user":{"login":"IMA-WorldHealth","id":5330583,"avatar_url":"https://avatars1.githubusercontent.com/u/5330583?v=4","gravatar_id":"","url":"https://api.github.com/users/IMA-WorldHealth","html_url":"https://github.com/IMA-WorldHealth","followers_url":"https://api.github.com/users/IMA-WorldHealth/followers","following_url":"https://api.github.com/users/IMA-WorldHealth/following{/other_user}","gists_url":"https://api.github.com/users/IMA-WorldHealth/gists{/gist_id}","starred_url":"https://api.github.com/users/IMA-WorldHealth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IMA-WorldHealth/subscriptions","organizations_url":"https://api.github.com/users/IMA-WorldHealth/orgs","repos_url":"https://api.github.com/users/IMA-WorldHealth/repos","events_url":"https://api.github.com/users/IMA-WorldHealth/events{/privacy}","received_events_url":"https://api.github.com/users/IMA-WorldHealth/received_events","type":"Organization","site_admin":false},"repo":{"id":49052669,"name":"bhima-2.X","full_name":"IMA-WorldHealth/bhima-2.X","owner":{"login":"IMA-WorldHealth","id":5330583,"avatar_url":"https://avatars1.githubusercontent.com/u/5330583?v=4","gravatar_id":"","url":"https://api.github.com/users/IMA-WorldHealth","html_url":"https://github.com/IMA-WorldHealth","followers_url":"https://api.github.com/users/IMA-WorldHealth/followers","following_url":"https://api.github.com/users/IMA-WorldHealth/following{/other_user}","gists_url":"https://api.github.com/users/IMA-WorldHealth/gists{/gist_id}","starred_url":"https://api.github.com/users/IMA-WorldHealth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IMA-WorldHealth/subscriptions","organizations_url":"https://api.github.com/users/IMA-WorldHealth/orgs","repos_url":"https://api.github.com/users/IMA-WorldHealth/repos","events_url":"https://api.github.com/users/IMA-WorldHealth/events{/privacy}","received_events_url":"https://api.github.com/users/IMA-WorldHealth/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IMA-WorldHealth/bhima-2.X","description":"A hospital information management application for rural Congolese hospitals","fork":false,"url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X","forks_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/forks","keys_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/teams","hooks_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/hooks","issue_events_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/events{/number}","events_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/events","assignees_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/assignees{/user}","branches_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/branches{/branch}","tags_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/tags","blobs_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/git/refs{/sha}","trees_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/statuses/{sha}","languages_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/languages","stargazers_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/stargazers","contributors_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/contributors","subscribers_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/subscribers","subscription_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/subscription","commits_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/commits{/sha}","git_commits_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/git/commits{/sha}","comments_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/comments{/number}","issue_comment_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/comments{/number}","contents_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/contents/{+path}","compare_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/merges","archive_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/downloads","issues_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues{/number}","pulls_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/pulls{/number}","milestones_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/milestones{/number}","notifications_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/labels{/name}","releases_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/releases{/id}","deployments_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/deployments","created_at":"2016-01-05T08:30:30Z","updated_at":"2017-09-20T06:44:51Z","pushed_at":"2017-09-22T13:44:47Z","git_url":"git://github.com/IMA-WorldHealth/bhima-2.X.git","ssh_url":"git@github.com:IMA-WorldHealth/bhima-2.X.git","clone_url":"https://github.com/IMA-WorldHealth/bhima-2.X.git","svn_url":"https://github.com/IMA-WorldHealth/bhima-2.X","homepage":"","size":11444,"stargazers_count":51,"watchers_count":51,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":309,"forks":26,"open_issues":309,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/pulls/2125"},"html":{"href":"https://github.com/IMA-WorldHealth/bhima-2.X/pull/2125"},"issue":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/2125"},"comments":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/2125/comments"},"review_comments":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/pulls/2125/comments"},"review_comment":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/pulls/2125/commits"},"statuses":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/statuses/e786f0cb5e69c5de44a662d25913ac84189ecf03"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jniles"}}