{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2672","repository_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2672/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2672/comments","events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2672/events","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/2672","id":54176205,"number":2672,"title":"Use custom form template for each different form","user":{"login":"nielvrom","id":2797731,"avatar_url":"https://avatars.githubusercontent.com/u/2797731?v=3","gravatar_id":"","url":"https://api.github.com/users/nielvrom","html_url":"https://github.com/nielvrom","followers_url":"https://api.github.com/users/nielvrom/followers","following_url":"https://api.github.com/users/nielvrom/following{/other_user}","gists_url":"https://api.github.com/users/nielvrom/gists{/gist_id}","starred_url":"https://api.github.com/users/nielvrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nielvrom/subscriptions","organizations_url":"https://api.github.com/users/nielvrom/orgs","repos_url":"https://api.github.com/users/nielvrom/repos","events_url":"https://api.github.com/users/nielvrom/events{/privacy}","received_events_url":"https://api.github.com/users/nielvrom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-01-13T10:37:09Z","updated_at":"2016-08-13T05:49:40Z","closed_at":"2016-08-13T05:49:40Z","body":"What I would like to do is:\r\n\r\nadd some text before a label in my form. I have a form like this:\r\n<pre>\r\nprotected function configureFormFields(FormMapper $formMapper)\r\n{\r\n     $formMapper\r\n         ->add('locale', 'choice', array(\r\n             'choices'   => array('nl' => 'NL', 'en' => 'EN'),\r\n             'required'  => true,\r\n         ))\r\n         ->add('pageid.tag', 'text', array('label' => 'Tag'))\r\n         ->add('description', 'text', array('label' => 'Beschrijving'))\r\n         ->add('content', 'textarea', array('label' => 'Tekst', 'attr' => array('class' => 'ckeditor')))\r\n         ->add('files', 'file', array('required' => false, 'multiple' => true))\r\n    ;\r\n}\r\n</pre>\r\n\r\nNow I would like to add some text before my files field. What I've done now is:\r\nAdd this to my config.yml (overload the templates/form configuration option):\r\n<pre>\r\nsonata_doctrine_orm_admin:\r\n    # default value is null, so doctrine uses the value defined in the configuration\r\n    entity_manager: ~\r\n\r\n    templates:\r\n        form:\r\n            - MurisBundle:PageAdmin:form_admin_fields.html.twig\r\n</pre>\r\n\r\nBut this will be used for every form, can't I set specific form templates for specific forms?"},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/comments/239604184","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/2672#issuecomment-239604184","issue_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/2672","id":239604184,"user":{"login":"core23","id":3440437,"avatar_url":"https://avatars.githubusercontent.com/u/3440437?v=3","gravatar_id":"","url":"https://api.github.com/users/core23","html_url":"https://github.com/core23","followers_url":"https://api.github.com/users/core23/followers","following_url":"https://api.github.com/users/core23/following{/other_user}","gists_url":"https://api.github.com/users/core23/gists{/gist_id}","starred_url":"https://api.github.com/users/core23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/core23/subscriptions","organizations_url":"https://api.github.com/users/core23/orgs","repos_url":"https://api.github.com/users/core23/repos","events_url":"https://api.github.com/users/core23/events{/privacy}","received_events_url":"https://api.github.com/users/core23/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T05:49:40Z","updated_at":"2016-08-13T05:49:40Z","body":"We try to keep github issues for feature requests and bugs only. \r\n\r\nPlease use [StackOverflow](http://stackoverflow.com/questions/tagged/sonata) for general support and questions."}}
{"actor":{"display_login":"core23"}}