{"action":"created","issue":{"url":"https://api.github.com/repos/symphonycms/symphony-2/issues/2322","labels_url":"https://api.github.com/repos/symphonycms/symphony-2/issues/2322/labels{/name}","comments_url":"https://api.github.com/repos/symphonycms/symphony-2/issues/2322/comments","events_url":"https://api.github.com/repos/symphonycms/symphony-2/issues/2322/events","html_url":"https://github.com/symphonycms/symphony-2/issues/2322","id":54552701,"number":2322,"title":"Association Filters + Nested Drawers","user":{"login":"jonmifsud","id":859775,"avatar_url":"https://avatars.githubusercontent.com/u/859775?v=3","gravatar_id":"","url":"https://api.github.com/users/jonmifsud","html_url":"https://github.com/jonmifsud","followers_url":"https://api.github.com/users/jonmifsud/followers","following_url":"https://api.github.com/users/jonmifsud/following{/other_user}","gists_url":"https://api.github.com/users/jonmifsud/gists{/gist_id}","starred_url":"https://api.github.com/users/jonmifsud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonmifsud/subscriptions","organizations_url":"https://api.github.com/users/jonmifsud/orgs","repos_url":"https://api.github.com/users/jonmifsud/repos","events_url":"https://api.github.com/users/jonmifsud/events{/privacy}","received_events_url":"https://api.github.com/users/jonmifsud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-01-16T08:52:15Z","updated_at":"2015-01-26T17:13:53Z","closed_at":null,"body":"I'm not exactly sure if this should be in the core but raising it here as I am noticing a few core related things. There's a [related ticket in the Associations Field](https://github.com/symphonists/association_field/issues/12) itself.\r\n\r\nI would like to add filters for the Associations UI, I made some modifications to the extension itself and it can support filtering in the same way symphony publish pages do pretty easily. What I'd like some input on is two things: UI + core related modifications.\r\n\r\nFrom what I can see so far the Associations Interface is made available using `appendAssociationInterfaceSelect` within the core `class.field.php` and checks if there is an Associations Interface and editor before showing the related options which is great, so in theory I think if the Associations Interface UI supported filters the UI has to be added in here theoretically.\r\n\r\nNow coming to the UI related issue, I was hopping to basically drop in the same interface we have added for Publish Filtering in the core within the publish page. The screenshot below is a representation of how this would look like if dropped in \"as is\". Other than requiring an override of some css for the nested drawer + js to make the suggestions/autocomplete work it seems to work, except when you try to remove an object within the embedded drawer, as it closes the main drawer too, I think this is minor JS to avoid bubbling of the drawer events. What I think would be nice is to extract this filtering UI out of the publish page and making it re-usable. \r\n\r\n![screen shot 2015-01-16 at 09 37 48](https://cloud.githubusercontent.com/assets/859775/5773506/a7cf3562-9d63-11e4-9930-843fab66c193.png)\r\n\r\nI'd appreciate some feedback as I will am hoping to wrap up this functionality in a couple of weeks."},"comment":{"url":"https://api.github.com/repos/symphonycms/symphony-2/issues/comments/71497296","html_url":"https://github.com/symphonycms/symphony-2/issues/2322#issuecomment-71497296","issue_url":"https://api.github.com/repos/symphonycms/symphony-2/issues/2322","id":71497296,"user":{"login":"nitriques","id":771169,"avatar_url":"https://avatars.githubusercontent.com/u/771169?v=3","gravatar_id":"","url":"https://api.github.com/users/nitriques","html_url":"https://github.com/nitriques","followers_url":"https://api.github.com/users/nitriques/followers","following_url":"https://api.github.com/users/nitriques/following{/other_user}","gists_url":"https://api.github.com/users/nitriques/gists{/gist_id}","starred_url":"https://api.github.com/users/nitriques/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitriques/subscriptions","organizations_url":"https://api.github.com/users/nitriques/orgs","repos_url":"https://api.github.com/users/nitriques/repos","events_url":"https://api.github.com/users/nitriques/events{/privacy}","received_events_url":"https://api.github.com/users/nitriques/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T17:13:53Z","updated_at":"2015-01-26T17:13:53Z","body":"Awesome, thanks Jonathan!"}}