{"action":"created","comment":{"url":"https://api.github.com/repos/hmrc/play-ui/pulls/comments/59553402","id":59553402,"diff_hunk":"@@ -0,0 +1,58 @@\n+@*\n+* Copyright 2016 HM Revenue & Customs\n+*\n+* Licensed under the Apache License, Version 2.0 (the \"License\");\n+* you may not use this file except in compliance with the License.\n+* You may obtain a copy of the License at\n+*\n+*   http://www.apache.org/licenses/LICENSE-2.0\n+*\n+* Unless required by applicable law or agreed to in writing, software\n+* distributed under the License is distributed on an \"AS IS\" BASIS,\n+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+* See the License for the specific language governing permissions and\n+* limitations under the License.\n+*@\n+@(formItem:Form[_], fieldName: String, args: (Symbol,Any)*)(implicit lang: play.api.i18n.Lang)\n+\n+@import uk.gov.hmrc.play.mappers.DateFields._\n+@import play.api.i18n._\n+@import uk.gov.hmrc.play.mappers.DateFormatSymbols._\n+\n+\n+\n+@fieldsetClasses = @{if(formItem(fieldName).hasErrors) \"form-field--error\" else \"\" }\n+\n+<fieldset class=\"form-group form-date @fieldsetClasses\" id=\"@fieldName-fieldset\">\n+\n+    @formItem(fieldName).errors.map { error => <span class=\"error-notification\">@Messages(error.message)</span>}\n+\n+    @input(\n+        formItem(s\"${fieldName}.day\"),\n+        '_label -> Messages(\"date.fields.day\"),\n+        '_labelClass -> \"form-group form-group-day label--inlineTextinput form-field--inline-text-input\",","path":"src/main/twirl/uk/gov/hmrc/play/views/helpers/dateFieldsFreeInline.scala.html","position":33,"original_position":33,"commit_id":"06849de1002359091835d176af2b8713e2bf5333","original_commit_id":"06849de1002359091835d176af2b8713e2bf5333","user":{"login":"rpowis","id":1752124,"avatar_url":"https://avatars.githubusercontent.com/u/1752124?v=3","gravatar_id":"","url":"https://api.github.com/users/rpowis","html_url":"https://github.com/rpowis","followers_url":"https://api.github.com/users/rpowis/followers","following_url":"https://api.github.com/users/rpowis/following{/other_user}","gists_url":"https://api.github.com/users/rpowis/gists{/gist_id}","starred_url":"https://api.github.com/users/rpowis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpowis/subscriptions","organizations_url":"https://api.github.com/users/rpowis/orgs","repos_url":"https://api.github.com/users/rpowis/repos","events_url":"https://api.github.com/users/rpowis/events{/privacy}","received_events_url":"https://api.github.com/users/rpowis/received_events","type":"User","site_admin":false},"body":"`form-field--inline-text-input` also isn't needed for outputting this. It'll also avoid the need for `margin: 0` in https://github.com/hmrc/assets-frontend/pull/534","created_at":"2016-04-13T14:05:38Z","updated_at":"2016-04-13T14:05:38Z","html_url":"https://github.com/hmrc/play-ui/pull/44#discussion_r59553402","pull_request_url":"https://api.github.com/repos/hmrc/play-ui/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/hmrc/play-ui/pulls/comments/59553402"},"html":{"href":"https://github.com/hmrc/play-ui/pull/44#discussion_r59553402"},"pull_request":{"href":"https://api.github.com/repos/hmrc/play-ui/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/hmrc/play-ui/pulls/44","id":66179591,"html_url":"https://github.com/hmrc/play-ui/pull/44","diff_url":"https://github.com/hmrc/play-ui/pull/44.diff","patch_url":"https://github.com/hmrc/play-ui/pull/44.patch","issue_url":"https://api.github.com/repos/hmrc/play-ui/issues/44","number":44,"state":"open","locked":false,"title":"Add dateFieldsFreeInline tag for freetext date entry","user":{"login":"gianick","id":8497852,"avatar_url":"https://avatars.githubusercontent.com/u/8497852?v=3","gravatar_id":"","url":"https://api.github.com/users/gianick","html_url":"https://github.com/gianick","followers_url":"https://api.github.com/users/gianick/followers","following_url":"https://api.github.com/users/gianick/following{/other_user}","gists_url":"https://api.github.com/users/gianick/gists{/gist_id}","starred_url":"https://api.github.com/users/gianick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gianick/subscriptions","organizations_url":"https://api.github.com/users/gianick/orgs","repos_url":"https://api.github.com/users/gianick/repos","events_url":"https://api.github.com/users/gianick/events{/privacy}","received_events_url":"https://api.github.com/users/gianick/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-12T15:37:50Z","updated_at":"2016-04-13T14:05:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8ad647414332f0b87a386d90befbdd157c997a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hmrc/play-ui/pulls/44/commits","review_comments_url":"https://api.github.com/repos/hmrc/play-ui/pulls/44/comments","review_comment_url":"https://api.github.com/repos/hmrc/play-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmrc/play-ui/issues/44/comments","statuses_url":"https://api.github.com/repos/hmrc/play-ui/statuses/06849de1002359091835d176af2b8713e2bf5333","head":{"label":"gianick:master","ref":"master","sha":"06849de1002359091835d176af2b8713e2bf5333","user":{"login":"gianick","id":8497852,"avatar_url":"https://avatars.githubusercontent.com/u/8497852?v=3","gravatar_id":"","url":"https://api.github.com/users/gianick","html_url":"https://github.com/gianick","followers_url":"https://api.github.com/users/gianick/followers","following_url":"https://api.github.com/users/gianick/following{/other_user}","gists_url":"https://api.github.com/users/gianick/gists{/gist_id}","starred_url":"https://api.github.com/users/gianick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gianick/subscriptions","organizations_url":"https://api.github.com/users/gianick/orgs","repos_url":"https://api.github.com/users/gianick/repos","events_url":"https://api.github.com/users/gianick/events{/privacy}","received_events_url":"https://api.github.com/users/gianick/received_events","type":"User","site_admin":false},"repo":{"id":51503470,"name":"play-ui","full_name":"gianick/play-ui","owner":{"login":"gianick","id":8497852,"avatar_url":"https://avatars.githubusercontent.com/u/8497852?v=3","gravatar_id":"","url":"https://api.github.com/users/gianick","html_url":"https://github.com/gianick","followers_url":"https://api.github.com/users/gianick/followers","following_url":"https://api.github.com/users/gianick/following{/other_user}","gists_url":"https://api.github.com/users/gianick/gists{/gist_id}","starred_url":"https://api.github.com/users/gianick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gianick/subscriptions","organizations_url":"https://api.github.com/users/gianick/orgs","repos_url":"https://api.github.com/users/gianick/repos","events_url":"https://api.github.com/users/gianick/events{/privacy}","received_events_url":"https://api.github.com/users/gianick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gianick/play-ui","description":"Core for HMRC's UI, incl. formatters, validators, mappers and helper templates","fork":true,"url":"https://api.github.com/repos/gianick/play-ui","forks_url":"https://api.github.com/repos/gianick/play-ui/forks","keys_url":"https://api.github.com/repos/gianick/play-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gianick/play-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gianick/play-ui/teams","hooks_url":"https://api.github.com/repos/gianick/play-ui/hooks","issue_events_url":"https://api.github.com/repos/gianick/play-ui/issues/events{/number}","events_url":"https://api.github.com/repos/gianick/play-ui/events","assignees_url":"https://api.github.com/repos/gianick/play-ui/assignees{/user}","branches_url":"https://api.github.com/repos/gianick/play-ui/branches{/branch}","tags_url":"https://api.github.com/repos/gianick/play-ui/tags","blobs_url":"https://api.github.com/repos/gianick/play-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gianick/play-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gianick/play-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/gianick/play-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gianick/play-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/gianick/play-ui/languages","stargazers_url":"https://api.github.com/repos/gianick/play-ui/stargazers","contributors_url":"https://api.github.com/repos/gianick/play-ui/contributors","subscribers_url":"https://api.github.com/repos/gianick/play-ui/subscribers","subscription_url":"https://api.github.com/repos/gianick/play-ui/subscription","commits_url":"https://api.github.com/repos/gianick/play-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/gianick/play-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/gianick/play-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/gianick/play-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/gianick/play-ui/contents/{+path}","compare_url":"https://api.github.com/repos/gianick/play-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gianick/play-ui/merges","archive_url":"https://api.github.com/repos/gianick/play-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gianick/play-ui/downloads","issues_url":"https://api.github.com/repos/gianick/play-ui/issues{/number}","pulls_url":"https://api.github.com/repos/gianick/play-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/gianick/play-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/gianick/play-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gianick/play-ui/labels{/name}","releases_url":"https://api.github.com/repos/gianick/play-ui/releases{/id}","deployments_url":"https://api.github.com/repos/gianick/play-ui/deployments","created_at":"2016-02-11T08:54:18Z","updated_at":"2016-02-11T08:54:19Z","pushed_at":"2016-04-13T09:45:54Z","git_url":"git://github.com/gianick/play-ui.git","ssh_url":"git@github.com:gianick/play-ui.git","clone_url":"https://github.com/gianick/play-ui.git","svn_url":"https://github.com/gianick/play-ui","homepage":"","size":100,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"hmrc:master","ref":"master","sha":"2d017ec4e925b2d29e880e9ec664925b42adacf1","user":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"repo":{"id":31957132,"name":"play-ui","full_name":"hmrc/play-ui","owner":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmrc/play-ui","description":"Core for HMRC's UI, incl. formatters, validators, mappers and helper templates","fork":false,"url":"https://api.github.com/repos/hmrc/play-ui","forks_url":"https://api.github.com/repos/hmrc/play-ui/forks","keys_url":"https://api.github.com/repos/hmrc/play-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmrc/play-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmrc/play-ui/teams","hooks_url":"https://api.github.com/repos/hmrc/play-ui/hooks","issue_events_url":"https://api.github.com/repos/hmrc/play-ui/issues/events{/number}","events_url":"https://api.github.com/repos/hmrc/play-ui/events","assignees_url":"https://api.github.com/repos/hmrc/play-ui/assignees{/user}","branches_url":"https://api.github.com/repos/hmrc/play-ui/branches{/branch}","tags_url":"https://api.github.com/repos/hmrc/play-ui/tags","blobs_url":"https://api.github.com/repos/hmrc/play-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmrc/play-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmrc/play-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmrc/play-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmrc/play-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/hmrc/play-ui/languages","stargazers_url":"https://api.github.com/repos/hmrc/play-ui/stargazers","contributors_url":"https://api.github.com/repos/hmrc/play-ui/contributors","subscribers_url":"https://api.github.com/repos/hmrc/play-ui/subscribers","subscription_url":"https://api.github.com/repos/hmrc/play-ui/subscription","commits_url":"https://api.github.com/repos/hmrc/play-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmrc/play-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmrc/play-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmrc/play-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmrc/play-ui/contents/{+path}","compare_url":"https://api.github.com/repos/hmrc/play-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmrc/play-ui/merges","archive_url":"https://api.github.com/repos/hmrc/play-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmrc/play-ui/downloads","issues_url":"https://api.github.com/repos/hmrc/play-ui/issues{/number}","pulls_url":"https://api.github.com/repos/hmrc/play-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/hmrc/play-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/hmrc/play-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmrc/play-ui/labels{/name}","releases_url":"https://api.github.com/repos/hmrc/play-ui/releases{/id}","deployments_url":"https://api.github.com/repos/hmrc/play-ui/deployments","created_at":"2015-03-10T12:51:13Z","updated_at":"2016-04-11T08:59:01Z","pushed_at":"2016-04-13T09:45:54Z","git_url":"git://github.com/hmrc/play-ui.git","ssh_url":"git@github.com:hmrc/play-ui.git","clone_url":"https://github.com/hmrc/play-ui.git","svn_url":"https://github.com/hmrc/play-ui","homepage":"","size":113,"stargazers_count":3,"watchers_count":3,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":9,"forks":26,"open_issues":9,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmrc/play-ui/pulls/44"},"html":{"href":"https://github.com/hmrc/play-ui/pull/44"},"issue":{"href":"https://api.github.com/repos/hmrc/play-ui/issues/44"},"comments":{"href":"https://api.github.com/repos/hmrc/play-ui/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/hmrc/play-ui/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/hmrc/play-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmrc/play-ui/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/hmrc/play-ui/statuses/06849de1002359091835d176af2b8713e2bf5333"}}}}