{"action":"created","issue":{"url":"https://api.github.com/repos/phenotips/phenotips/issues/1908","repository_url":"https://api.github.com/repos/phenotips/phenotips","labels_url":"https://api.github.com/repos/phenotips/phenotips/issues/1908/labels{/name}","comments_url":"https://api.github.com/repos/phenotips/phenotips/issues/1908/comments","events_url":"https://api.github.com/repos/phenotips/phenotips/issues/1908/events","html_url":"https://github.com/phenotips/phenotips/pull/1908","id":112653425,"number":1908,"title":"PT-2013: Date-of-death-unknown checkbox in a very weird place","user":{"login":"antonkatz","id":3529008,"avatar_url":"https://avatars.githubusercontent.com/u/3529008?v=3","gravatar_id":"","url":"https://api.github.com/users/antonkatz","html_url":"https://github.com/antonkatz","followers_url":"https://api.github.com/users/antonkatz/followers","following_url":"https://api.github.com/users/antonkatz/following{/other_user}","gists_url":"https://api.github.com/users/antonkatz/gists{/gist_id}","starred_url":"https://api.github.com/users/antonkatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonkatz/subscriptions","organizations_url":"https://api.github.com/users/antonkatz/orgs","repos_url":"https://api.github.com/users/antonkatz/repos","events_url":"https://api.github.com/users/antonkatz/events{/privacy}","received_events_url":"https://api.github.com/users/antonkatz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"veronikaslc","id":4371097,"avatar_url":"https://avatars.githubusercontent.com/u/4371097?v=3","gravatar_id":"","url":"https://api.github.com/users/veronikaslc","html_url":"https://github.com/veronikaslc","followers_url":"https://api.github.com/users/veronikaslc/followers","following_url":"https://api.github.com/users/veronikaslc/following{/other_user}","gists_url":"https://api.github.com/users/veronikaslc/gists{/gist_id}","starred_url":"https://api.github.com/users/veronikaslc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veronikaslc/subscriptions","organizations_url":"https://api.github.com/users/veronikaslc/orgs","repos_url":"https://api.github.com/users/veronikaslc/repos","events_url":"https://api.github.com/users/veronikaslc/events{/privacy}","received_events_url":"https://api.github.com/users/veronikaslc/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-10-21T18:42:34Z","updated_at":"2016-04-08T21:50:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/phenotips/phenotips/pulls/1908","html_url":"https://github.com/phenotips/phenotips/pull/1908","diff_url":"https://github.com/phenotips/phenotips/pull/1908.diff","patch_url":"https://github.com/phenotips/phenotips/pull/1908.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/phenotips/phenotips/issues/comments/207621388","html_url":"https://github.com/phenotips/phenotips/pull/1908#issuecomment-207621388","issue_url":"https://api.github.com/repos/phenotips/phenotips/issues/1908","id":207621388,"user":{"login":"veronikaslc","id":4371097,"avatar_url":"https://avatars.githubusercontent.com/u/4371097?v=3","gravatar_id":"","url":"https://api.github.com/users/veronikaslc","html_url":"https://github.com/veronikaslc","followers_url":"https://api.github.com/users/veronikaslc/followers","following_url":"https://api.github.com/users/veronikaslc/following{/other_user}","gists_url":"https://api.github.com/users/veronikaslc/gists{/gist_id}","starred_url":"https://api.github.com/users/veronikaslc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veronikaslc/subscriptions","organizations_url":"https://api.github.com/users/veronikaslc/orgs","repos_url":"https://api.github.com/users/veronikaslc/repos","events_url":"https://api.github.com/users/veronikaslc/events{/privacy}","received_events_url":"https://api.github.com/users/veronikaslc/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T21:50:50Z","updated_at":"2016-04-08T21:50:50Z","body":"@buske @sdumitriu Was looking at the issue. I kind of agree with Anton. `Term birth` differs from `Date of Death is Unknown` in a way that `Term birth` checkbox and input under checkbox are one field `gestation` and thus are generated from the PatientTemplate as an html. `controller` and `controlled` CSS class names are used to mark elements that will control the hide/show and those that will be hidden, correspondingly. `Date of Death is Unknown` and `date of death` are two different fields, so we use `UIX_Field__date_of_death.xml` for displaying them. To avoid clicking on the checkbox hides the entire \"Date of death\" section, we need to specify the `date of death` datepicker input as `controlled` and so we can not use `#__displayFormatted` macro that auto generates both label and input as one row. Probably I just do not see a sillier way than explicitly generate label and inputa separately to label them as contoller and controlled, but I made corrections to Anton's code, it should work as expected."}}