forms - How to render prototype with Sonata's FormMapper? -


i'm using sonataadmin manage entities crud. need render prototype formtype collection, collection rendered sonata's collectiontype (not native-collection symfony).

so code looks follows: (entity 1:n sub-entity)

// entityadmin  public function configureformfields(formmapper $formmapper) {     // ... fields      /* sonata\corebundle\form\type\collectiontype, rendering subentityadmin */     ->add(         'subentity',           null,           ['label' => false, 'required' => false],           ['edit' => 'inline', 'inline' => 'standard']     )      // ...  } 

what want achieve rendering new prototype-form field in symfony\component\form\extension\core\type\collectiontype stylings given sonata's form-mapping.

i didn't found in sonata's repo, nor on internet on how use prototype here (yes, instead of append-form-field functionality via ajax). somehow possible? need add new elements (custom) via javascript (on client side) maintaining maximum compatibility , re-usability of formmapper.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -