{"action":"created","comment":{"url":"https://api.github.com/repos/influunt/influunt/pulls/comments/87864286","pull_request_review_id":8445070,"id":87864286,"diff_hunk":"@@ -312,101 +339,173 @@\n               <div class='row'>\n                 <div class='col-sm-12'>\n                   <div class='row'>\n-                    <div class='col-sm-3'>\n-                      <h4>{{ 'simulacao.problema' | translate }}</h4>\n+                    <div class='col-sm-5'>\n+                      <h4>{{ 'simulacao.alarme' | translate }}</h4>\n                     </div>\n-                    <div class='col-sm-2'>\n-                      <h4>{{ 'simulacao.falhas' | translate }}</h4>\n+                    <div class='col-sm-3'>\n+                      <h4>{{ 'simulacao.dataAlarme' | translate }}</h4>\n                     </div>\n                     <div class='col-sm-3'>\n-                      <h4>{{ 'simulacao.data' | translate }}</h4>\n+                      <h4>{{ 'simulacao.horarioAlarme' | translate }}</h4>\n                     </div>\n-                    <div class='col-sm-4'>\n-                      <h4>{{ 'simulacao.horario' | translate }}</h4>\n+                  </div>\n+\n+                  <div class='row' data-ng-repeat=\"alarmeControlador in parametrosSimulacao.alarmesControlador\">\n+                    <div class='col-sm-5'>\n+                      <select class='form-control m-b'\n+                              name='plano'\n+                              data-ng-disabled=\"!alarmes\"\n+                              data-ng-options=\"alarme as alarme.descricao for alarme in alarmes\"\n+                              data-ng-model=\"alarmeControlador.alarme\"></select>\n+                    </div>\n+                    <div data-ng-show=\"alarmeControlador.alarme\">\n+                      <div class='col-sm-3' data-ng-class=\"{ 'has-error': errors.alarmes[$index].disparo }\">\n+                        <input type=\"text\"\n+                               class=\"form-control text-center\"\n+                               uib-datepicker-popup=\"dd/MM/yyyy\"\n+                               ng-model=\"alarmesControlador.alarmes[$index].date\"\n+                               ng-click=\"alarmesControlador.alarmes[$index].opened = true\"\n+                               is-open=\"alarmesControlador.alarmes[$index].opened\"\n+                               datepicker-options=\"dateOptions\"\n+                               ng-required=\"true\"\n+                               close-text=\"{{ 'simulacao.datepicker.fechar' | translate }}\"\n+                               clear-text=\"{{ 'simulacao.datepicker.limpar' | translate }}\"\n+                               current-text=\"{{ 'simulacao.datepicker.hoje' | translate }}\">\n+                        <p class=\"help-block error-msg\" data-ng-repeat=\"error in errors.alarmes[$index].disparo\">{{ error }}</p>\n+                      </div>\n+                      <div class='col-sm-1' data-ng-class=\"{ 'has-error': errors.alarmes[$index].disparo }\">\n+                        <select class='form-control m-b' name='account' data-ng-model=\"alarmesControlador.alarmes[$index].hora\">\n+                          <option data-ng-repeat=\"hora in horas track by $index\" value=\"{{$index}}\">{{ hora }}</option>\n+                        </select>\n+                        <p class=\"help-block error-msg simulacao-horario-error\" data-ng-repeat=\"error in errors.alarmes[$index].disparo\">{{ error }}</p>\n+                      </div>\n+                      <div class='col-sm-1' data-ng-class=\"{ 'has-error': errors.alarmes[$index].disparo }\">\n+                        <select class='form-control m-b' name='account' data-ng-model=\"alarmesControlador.alarmes[$index].minuto\">\n+                          <option data-ng-repeat=\"minuto in minutos track by $index\" value=\"{{$index}}\">{{ minuto }}</option>\n+                        </select>\n+                      </div>\n+                      <div class='col-sm-1' data-ng-class=\"{ 'has-error': errors.alarmes[$index].disparo }\">\n+                        <select class='form-control m-b' name='account' data-ng-model=\"alarmesControlador.alarmes[$index].segundo\">\n+                          <option data-ng-repeat=\"segundo in segundos track by $index\" value=\"{{$index}}\">{{ segundo }}</option>\n+                        </select>\n+                      </div>","path":"influunt-app/app/views/simulacao/index.html","position":217,"original_position":217,"commit_id":"e41ce1687c66143b358bbdbb6897231aa09c20d2","original_commit_id":"e41ce1687c66143b358bbdbb6897231aa09c20d2","user":{"login":"pauloFernandes","id":2263368,"avatar_url":"https://avatars.githubusercontent.com/u/2263368?v=3","gravatar_id":"","url":"https://api.github.com/users/pauloFernandes","html_url":"https://github.com/pauloFernandes","followers_url":"https://api.github.com/users/pauloFernandes/followers","following_url":"https://api.github.com/users/pauloFernandes/following{/other_user}","gists_url":"https://api.github.com/users/pauloFernandes/gists{/gist_id}","starred_url":"https://api.github.com/users/pauloFernandes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauloFernandes/subscriptions","organizations_url":"https://api.github.com/users/pauloFernandes/orgs","repos_url":"https://api.github.com/users/pauloFernandes/repos","events_url":"https://api.github.com/users/pauloFernandes/events{/privacy}","received_events_url":"https://api.github.com/users/pauloFernandes/received_events","type":"User","site_admin":false},"body":"atenção aos has-error acima","created_at":"2016-11-14T18:41:02Z","updated_at":"2016-11-14T18:44:26Z","html_url":"https://github.com/influunt/influunt/pull/1416#discussion_r87864286","pull_request_url":"https://api.github.com/repos/influunt/influunt/pulls/1416","_links":{"self":{"href":"https://api.github.com/repos/influunt/influunt/pulls/comments/87864286"},"html":{"href":"https://github.com/influunt/influunt/pull/1416#discussion_r87864286"},"pull_request":{"href":"https://api.github.com/repos/influunt/influunt/pulls/1416"}}},"pull_request":{"url":"https://api.github.com/repos/influunt/influunt/pulls/1416","id":93608059,"html_url":"https://github.com/influunt/influunt/pull/1416","diff_url":"https://github.com/influunt/influunt/pull/1416.diff","patch_url":"https://github.com/influunt/influunt/pull/1416.patch","issue_url":"https://api.github.com/repos/influunt/influunt/issues/1416","number":1416,"state":"open","locked":false,"title":"1303 alertas e erros","user":{"login":"leonardoherbert","id":1890706,"avatar_url":"https://avatars.githubusercontent.com/u/1890706?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardoherbert","html_url":"https://github.com/leonardoherbert","followers_url":"https://api.github.com/users/leonardoherbert/followers","following_url":"https://api.github.com/users/leonardoherbert/following{/other_user}","gists_url":"https://api.github.com/users/leonardoherbert/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardoherbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardoherbert/subscriptions","organizations_url":"https://api.github.com/users/leonardoherbert/orgs","repos_url":"https://api.github.com/users/leonardoherbert/repos","events_url":"https://api.github.com/users/leonardoherbert/events{/privacy}","received_events_url":"https://api.github.com/users/leonardoherbert/received_events","type":"User","site_admin":false},"body":"close #1303","created_at":"2016-11-14T17:15:27Z","updated_at":"2016-11-14T18:44:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae2d45729e20cfcd46dde8b09828f2de3fa6fc19","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/influunt/influunt/pulls/1416/commits","review_comments_url":"https://api.github.com/repos/influunt/influunt/pulls/1416/comments","review_comment_url":"https://api.github.com/repos/influunt/influunt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/influunt/influunt/issues/1416/comments","statuses_url":"https://api.github.com/repos/influunt/influunt/statuses/e41ce1687c66143b358bbdbb6897231aa09c20d2","head":{"label":"influunt:1303-alertas_e_erros","ref":"1303-alertas_e_erros","sha":"e41ce1687c66143b358bbdbb6897231aa09c20d2","user":{"login":"influunt","id":19677350,"avatar_url":"https://avatars.githubusercontent.com/u/19677350?v=3","gravatar_id":"","url":"https://api.github.com/users/influunt","html_url":"https://github.com/influunt","followers_url":"https://api.github.com/users/influunt/followers","following_url":"https://api.github.com/users/influunt/following{/other_user}","gists_url":"https://api.github.com/users/influunt/gists{/gist_id}","starred_url":"https://api.github.com/users/influunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influunt/subscriptions","organizations_url":"https://api.github.com/users/influunt/orgs","repos_url":"https://api.github.com/users/influunt/repos","events_url":"https://api.github.com/users/influunt/events{/privacy}","received_events_url":"https://api.github.com/users/influunt/received_events","type":"Organization","site_admin":false},"repo":{"id":60134030,"name":"influunt","full_name":"influunt/influunt","owner":{"login":"influunt","id":19677350,"avatar_url":"https://avatars.githubusercontent.com/u/19677350?v=3","gravatar_id":"","url":"https://api.github.com/users/influunt","html_url":"https://github.com/influunt","followers_url":"https://api.github.com/users/influunt/followers","following_url":"https://api.github.com/users/influunt/following{/other_user}","gists_url":"https://api.github.com/users/influunt/gists{/gist_id}","starred_url":"https://api.github.com/users/influunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influunt/subscriptions","organizations_url":"https://api.github.com/users/influunt/orgs","repos_url":"https://api.github.com/users/influunt/repos","events_url":"https://api.github.com/users/influunt/events{/privacy}","received_events_url":"https://api.github.com/users/influunt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influunt/influunt","description":null,"fork":false,"url":"https://api.github.com/repos/influunt/influunt","forks_url":"https://api.github.com/repos/influunt/influunt/forks","keys_url":"https://api.github.com/repos/influunt/influunt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influunt/influunt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influunt/influunt/teams","hooks_url":"https://api.github.com/repos/influunt/influunt/hooks","issue_events_url":"https://api.github.com/repos/influunt/influunt/issues/events{/number}","events_url":"https://api.github.com/repos/influunt/influunt/events","assignees_url":"https://api.github.com/repos/influunt/influunt/assignees{/user}","branches_url":"https://api.github.com/repos/influunt/influunt/branches{/branch}","tags_url":"https://api.github.com/repos/influunt/influunt/tags","blobs_url":"https://api.github.com/repos/influunt/influunt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influunt/influunt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influunt/influunt/git/refs{/sha}","trees_url":"https://api.github.com/repos/influunt/influunt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influunt/influunt/statuses/{sha}","languages_url":"https://api.github.com/repos/influunt/influunt/languages","stargazers_url":"https://api.github.com/repos/influunt/influunt/stargazers","contributors_url":"https://api.github.com/repos/influunt/influunt/contributors","subscribers_url":"https://api.github.com/repos/influunt/influunt/subscribers","subscription_url":"https://api.github.com/repos/influunt/influunt/subscription","commits_url":"https://api.github.com/repos/influunt/influunt/commits{/sha}","git_commits_url":"https://api.github.com/repos/influunt/influunt/git/commits{/sha}","comments_url":"https://api.github.com/repos/influunt/influunt/comments{/number}","issue_comment_url":"https://api.github.com/repos/influunt/influunt/issues/comments{/number}","contents_url":"https://api.github.com/repos/influunt/influunt/contents/{+path}","compare_url":"https://api.github.com/repos/influunt/influunt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influunt/influunt/merges","archive_url":"https://api.github.com/repos/influunt/influunt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influunt/influunt/downloads","issues_url":"https://api.github.com/repos/influunt/influunt/issues{/number}","pulls_url":"https://api.github.com/repos/influunt/influunt/pulls{/number}","milestones_url":"https://api.github.com/repos/influunt/influunt/milestones{/number}","notifications_url":"https://api.github.com/repos/influunt/influunt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influunt/influunt/labels{/name}","releases_url":"https://api.github.com/repos/influunt/influunt/releases{/id}","deployments_url":"https://api.github.com/repos/influunt/influunt/deployments","created_at":"2016-06-01T00:55:14Z","updated_at":"2016-10-24T11:58:12Z","pushed_at":"2016-11-14T17:15:27Z","git_url":"git://github.com/influunt/influunt.git","ssh_url":"git@github.com:influunt/influunt.git","clone_url":"https://github.com/influunt/influunt.git","svn_url":"https://github.com/influunt/influunt","homepage":null,"size":81236,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":78,"forks":0,"open_issues":78,"watchers":0,"default_branch":"staging"}},"base":{"label":"influunt:staging","ref":"staging","sha":"48e7e44852195795638e97b04ba9fea2401cde5a","user":{"login":"influunt","id":19677350,"avatar_url":"https://avatars.githubusercontent.com/u/19677350?v=3","gravatar_id":"","url":"https://api.github.com/users/influunt","html_url":"https://github.com/influunt","followers_url":"https://api.github.com/users/influunt/followers","following_url":"https://api.github.com/users/influunt/following{/other_user}","gists_url":"https://api.github.com/users/influunt/gists{/gist_id}","starred_url":"https://api.github.com/users/influunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influunt/subscriptions","organizations_url":"https://api.github.com/users/influunt/orgs","repos_url":"https://api.github.com/users/influunt/repos","events_url":"https://api.github.com/users/influunt/events{/privacy}","received_events_url":"https://api.github.com/users/influunt/received_events","type":"Organization","site_admin":false},"repo":{"id":60134030,"name":"influunt","full_name":"influunt/influunt","owner":{"login":"influunt","id":19677350,"avatar_url":"https://avatars.githubusercontent.com/u/19677350?v=3","gravatar_id":"","url":"https://api.github.com/users/influunt","html_url":"https://github.com/influunt","followers_url":"https://api.github.com/users/influunt/followers","following_url":"https://api.github.com/users/influunt/following{/other_user}","gists_url":"https://api.github.com/users/influunt/gists{/gist_id}","starred_url":"https://api.github.com/users/influunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influunt/subscriptions","organizations_url":"https://api.github.com/users/influunt/orgs","repos_url":"https://api.github.com/users/influunt/repos","events_url":"https://api.github.com/users/influunt/events{/privacy}","received_events_url":"https://api.github.com/users/influunt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influunt/influunt","description":null,"fork":false,"url":"https://api.github.com/repos/influunt/influunt","forks_url":"https://api.github.com/repos/influunt/influunt/forks","keys_url":"https://api.github.com/repos/influunt/influunt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influunt/influunt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influunt/influunt/teams","hooks_url":"https://api.github.com/repos/influunt/influunt/hooks","issue_events_url":"https://api.github.com/repos/influunt/influunt/issues/events{/number}","events_url":"https://api.github.com/repos/influunt/influunt/events","assignees_url":"https://api.github.com/repos/influunt/influunt/assignees{/user}","branches_url":"https://api.github.com/repos/influunt/influunt/branches{/branch}","tags_url":"https://api.github.com/repos/influunt/influunt/tags","blobs_url":"https://api.github.com/repos/influunt/influunt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influunt/influunt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influunt/influunt/git/refs{/sha}","trees_url":"https://api.github.com/repos/influunt/influunt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influunt/influunt/statuses/{sha}","languages_url":"https://api.github.com/repos/influunt/influunt/languages","stargazers_url":"https://api.github.com/repos/influunt/influunt/stargazers","contributors_url":"https://api.github.com/repos/influunt/influunt/contributors","subscribers_url":"https://api.github.com/repos/influunt/influunt/subscribers","subscription_url":"https://api.github.com/repos/influunt/influunt/subscription","commits_url":"https://api.github.com/repos/influunt/influunt/commits{/sha}","git_commits_url":"https://api.github.com/repos/influunt/influunt/git/commits{/sha}","comments_url":"https://api.github.com/repos/influunt/influunt/comments{/number}","issue_comment_url":"https://api.github.com/repos/influunt/influunt/issues/comments{/number}","contents_url":"https://api.github.com/repos/influunt/influunt/contents/{+path}","compare_url":"https://api.github.com/repos/influunt/influunt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influunt/influunt/merges","archive_url":"https://api.github.com/repos/influunt/influunt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influunt/influunt/downloads","issues_url":"https://api.github.com/repos/influunt/influunt/issues{/number}","pulls_url":"https://api.github.com/repos/influunt/influunt/pulls{/number}","milestones_url":"https://api.github.com/repos/influunt/influunt/milestones{/number}","notifications_url":"https://api.github.com/repos/influunt/influunt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influunt/influunt/labels{/name}","releases_url":"https://api.github.com/repos/influunt/influunt/releases{/id}","deployments_url":"https://api.github.com/repos/influunt/influunt/deployments","created_at":"2016-06-01T00:55:14Z","updated_at":"2016-10-24T11:58:12Z","pushed_at":"2016-11-14T17:15:27Z","git_url":"git://github.com/influunt/influunt.git","ssh_url":"git@github.com:influunt/influunt.git","clone_url":"https://github.com/influunt/influunt.git","svn_url":"https://github.com/influunt/influunt","homepage":null,"size":81236,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":78,"forks":0,"open_issues":78,"watchers":0,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/influunt/influunt/pulls/1416"},"html":{"href":"https://github.com/influunt/influunt/pull/1416"},"issue":{"href":"https://api.github.com/repos/influunt/influunt/issues/1416"},"comments":{"href":"https://api.github.com/repos/influunt/influunt/issues/1416/comments"},"review_comments":{"href":"https://api.github.com/repos/influunt/influunt/pulls/1416/comments"},"review_comment":{"href":"https://api.github.com/repos/influunt/influunt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/influunt/influunt/pulls/1416/commits"},"statuses":{"href":"https://api.github.com/repos/influunt/influunt/statuses/e41ce1687c66143b358bbdbb6897231aa09c20d2"}}}}
{"actor":{"display_login":"pauloFernandes"}}